Tomcat BasicDataSourceFactory class not found due to incompatible location in libcommons-dbcp-java
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libcommons-dbcp-java (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: libcommons-
Disclaimer: I'm pretty much a Java/Tomcat newb (go easy on me ;).
Ubuntu 8.10's libcommons-
org.apache.
However, Ubuntu 8.10's Tomcat 6 doesn't find the class as it is looking here:
org.apache.
Here is the relavant warning that appears in the catalina log file on a default Tomcat 6 install on Ubuntu 8.10.
org.apache.
WARNING: Failed to register in JMX: javax.naming.
Trying to add a JDBC datasource in the conf/context.xml file doesn't work and produces only more of the above warning. So the default Tomcat 6 install on Ubuntu 8.10 is effectively broken in its current state.
Distro/package versions:
Ubuntu - 8.10
libcommons-
tomcat6* - 6.0.18-0ubuntu3
libtomcat6-java - 6.0.18-0ubuntu3
libservlet2.5-java - 6.0.18-0ubuntu3
Thanks and let me know if I can provide further details.
Eric P
For a quick work-around, extract tomcat-dbcp.jar from the base Tomcat 6.0.18 distribution from Apache, and place it under /usr/share/ tomcat6/ lib. Also remove the symbolic links to commons-dbcp.jar and commons-pool.jar from this directory. tomcat6/ lib directory for it to be found, NOT, as you would think, in the /var/lib/ tomcat6/ lib directory. It seems like the 8.10 Tomcat6 distribution ignores this directory when building the classpath!
Please note that the Ubuntu 8.10 Tomcat6 distribution is completely hosed; you must place the JDBC driver jar into /usr/share/