Philipp Kraus
2013-11-16 07:25:56 UTC
Hello,
I try to install in an Ubuntu 12.04 a Tomcat7 with mySQL JDBC. So I
have run apt-install for tomcat and libmysql-java, but I get always:
java.lang.ClassNotFoundException: "com.mysql.jdbc.Driver"
in my logs. In the catalina.properties the loading pathes are defined with
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/var/lib/tomcat7/common/classes,/var/lib/tomcat7/common/*.jar
server.loader=/var/lib/tomcat7/server/classes,/var/lib/tomcat7/server/*.jar
shared.loader=/var/lib/tomcat7/shared/classes,/var/lib/tomcat7/shared/*.jar
The JDBC mySQL Jar is stored under /usr/share/java with twi symlinks, I
have tried to create a symlink from Tomcats lib dir
(/usr/share/tomcat7/lib) to ../../java/mysql.jar
but the mySQL is also not loaded.
The CATALINA_HOME is set to /usr/share/tomcat7 and the CATALINA_BASE is
/var/lib/tomcat7, so imho it should be worked
I try to run http://www.icescrum.org/ with mySQL support.
Can anybody help me please with a useful idea to create a working mySQL
JDBC driver in my Tomcat7?
Thanks a lot
Phil
I try to install in an Ubuntu 12.04 a Tomcat7 with mySQL JDBC. So I
have run apt-install for tomcat and libmysql-java, but I get always:
java.lang.ClassNotFoundException: "com.mysql.jdbc.Driver"
in my logs. In the catalina.properties the loading pathes are defined with
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar,/var/lib/tomcat7/common/classes,/var/lib/tomcat7/common/*.jar
server.loader=/var/lib/tomcat7/server/classes,/var/lib/tomcat7/server/*.jar
shared.loader=/var/lib/tomcat7/shared/classes,/var/lib/tomcat7/shared/*.jar
The JDBC mySQL Jar is stored under /usr/share/java with twi symlinks, I
have tried to create a symlink from Tomcats lib dir
(/usr/share/tomcat7/lib) to ../../java/mysql.jar
but the mySQL is also not loaded.
The CATALINA_HOME is set to /usr/share/tomcat7 and the CATALINA_BASE is
/var/lib/tomcat7, so imho it should be worked
I try to run http://www.icescrum.org/ with mySQL support.
Can anybody help me please with a useful idea to create a working mySQL
JDBC driver in my Tomcat7?
Thanks a lot
Phil