tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ישראל מלאכי <alayc...@gmail.com>
Subject Re: mySQL connector error
Date Mon, 18 Nov 2013 00:54:06 GMT
Hi Phil
try to add Class.forName("com.mysql.jdbc.Driver");
to your code

Israel


On Sun, Nov 17, 2013 at 8:56 PM, Philipp Kraus <
philipp.kraus@tu-clausthal.de> wrote:

> Hello,
>
> I'm new with Tomcat, so I hope for some help. I try to run
> www.icescrum.org on my Tomcat 7 on Ubuntu 12.04 with OpenJDK.
> I have installed Tomcat with apt-get and also I have installed the
> libmysql-java package. On starting Tomcat it reports on
> a stacktrace log, that the mySQL connector is not found
> (java.lang.ClassNotFoundException: "com.mysql.jdbc.Driver").
> So I have try to create a symlink in Tomcats lib dir to the jar file and
> try to modify the properties of the search paths:
>
>
> 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 two 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
>
> How can I create a working IceScrum with mySQL and a shared mySQL
> connector?
>
> Thanks a lot
>
> Phil
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message