On Aug 21, 2013, at 5:32 PM, Nick Williams wrote: > I have latest-ish from trunk (< 2 days old) and compiled without issue. When > I tried to run it, however, console output indicates a serious issue creating > DataSource resources: > > 21-Aug-2013 17:18:30.800 WARNING [localhost-startStop-1] > org.apache.catalina.core.NamingContextListener.addResource Failed to register > in JMX: javax.naming.NamingException: Could not create resource factory > instance [Root exception is java.lang.ClassNotFoundException: > org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory] > 21-Aug-2013 17:18:30.800 WARNING [localhost-startStop-1] > org.apache.catalina.core.NamingContextListener.addResource Failed to register > in JMX: javax.naming.NamingException: Could not create resource factory > instance [Root exception is java.lang.ClassNotFoundException: > org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory] > 21-Aug-2013 17:18:30.801 WARNING [localhost-startStop-1] > org.apache.catalina.core.NamingContextListener.addResource Failed to register > in JMX: javax.naming.NamingException: Could not create resource factory > instance [Root exception is java.lang.ClassNotFoundException: > org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory] > 21-Aug-2013 17:18:30.802 WARNING [localhost-startStop-1] > org.apache.catalina.core.NamingContextListener.addResource Failed to register > in JMX: javax.naming.NamingException: Could not create resource factory > instance [Root exception is java.lang.ClassNotFoundException: > org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory] > > Looks like it can't find the new org.apache.tomcat.dbcp.dbcp2 classes. I > looked in the tomcat-dbcp JAR and the package in it is > org.apache.tomcat.dbcp.dbcp, not org.apache.tomcat.dbcp.dbcp2. I figured it > was just a problem with not building cleanly enough. So a ran `ant clean` and > then deleted all the external dependencies that it had downloaded > (commons-dbcp, commons-pool, ejc, etc.). I ran ant again to build and it got > almost to the very end of the build process and blurted out this: > >> build-manifests: >> [mkdir] Created dir: C:\Tomcat-Build\Source\output\manifests >> [copy] Copying 19 files to C:\Tomcat-Build\Source\output\manifests >> >> build-tomcat-dbcp: >> >> BUILD FAILED >> C:\Tomcat-Build\Source\build.xml:2581: >> C:\Tomcat-Build\Base\commons-pool-1.5.7-src\src\main does not exist. >> >> Total time: 46 seconds > > I confirmed that it DID re-download Commons DBCP and Commons Pool. It > re-downloaded all of its dependencies. However, Commons DBCP wasn't 2.0 like > I expected it to be. It was 1.4. And the > C:\Tomcat-Build\Base\commons-pool-1.5.7-src\src\main directory indeed does > not exist, but C:\Tomcat-Build\Base\commons-pool-1.5.7-src\src\java does. > > I have built Tomcat hundreds of times in the last eight months (admittedly > not once since RC1 came out). This is the first time I've seen this error or > anything like it. Am I missing something obvious here? Or is something badly > broken in the build? Looks like a big problem with the new DBCP2 stuff.
Nevermind, please disregard. I had leftover build properties files that I hadn't refreshed in a while. Learned that lesson the hard way... Nick --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org