After adding a connection pool through the background management interface, access or have a problem finally discovered that it is a global resource to connect global resources to this context. This will not find the driver and URL E: / Tomcat/conf/catalina/localhost/myweb.xml to modify resourceLink as: XML Version = '1.0' encoding = 'UTF-8'?> -> context> Initializing the connection pool in Bean -------------------------------------------------- --------------------------------- / ** * Initialization Datasource * / private void init () {inputStream InputStream = getClass (). getResourceAsStream ("./ system.properties"); Properties Properties = new property ();
Try {Properties.Load (InputStream);} catch ("" "" "