Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!cyclone01.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!eweka.nl!lightspeed.eweka.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail From: Philipp Kraus Newsgroups: comp.lang.java.help Subject: Tomcat7 on Ubuntu 12.04 does not load mySQL JDBC Connector Date: Sat, 16 Nov 2013 08:25:56 +0100 Organization: 1&1 Internet AG Lines: 81 Message-ID: NNTP-Posting-Host: p4fc62f5e.dip0.t-ipconnect.de Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=--------------1958923958044040597 X-Trace: online.de 1384586756 11426 79.198.47.94 (16 Nov 2013 07:25:56 GMT) X-Complaints-To: abuse@einsundeins.com NNTP-Posting-Date: Sat, 16 Nov 2013 07:25:56 +0000 (UTC) User-Agent: Unison/2.1.10 X-Received-Bytes: 4592 X-Received-Body-CRC: 2974561144 Xref: csiph.com comp.lang.java.help:2853 This is a multi-part message in MIME format. ----------------1958923958044040597 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 ----------------1958923958044040597 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

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

----------------1958923958044040597--