ubutuntu tomcat db connection pool
Posted on 2009-02-10
I have a struts 2, hibernate, spring, tomcat 5, Mysql test application. After I deploy it in Linxu unbuntu, I got following waring in the catalina.log file:
WARNING: Failed to register in JMX: javax.naming.NamingException: Could not load
resource factory class [Root exception is java.lang.ClassNotFoundException: org
Tomcat is installed by apt-get install tomcat...
I have put mysql-connector-java-3.1.10-bin, commons-dbcp-1.2.2.jar into /usr/share/tomcat5.5/common/lib/. I also change access right two both jars as 777 (Wow, it is too much!).
Though tomcat is installed /var/lib/tomcat5.5.
Why do I get warning message since I have put jars in the lib directory? Isn't tomcat will automatically load all jars in usr/share/tomcat5.5/common/lib/ directory?