users@glassfish.java.net

Re: Mysql on GFv2 on linux -- can't load driver

From: Sahoo <Sahoo_at_Sun.COM>
Date: Mon, 24 Mar 2008 21:55:40 +0530

I believe the server.log contains the list of jars added to server
classpath. Please check the log to ensure that your driver jar is indeed
picked up by server.

Sahoo

Johnny Tolliver wrote:
> I have what is surely a simple problem. I've been developing a simple web
> app with Netbeans on Glassfish on localhost. Now I need to move it to
> the real host, a Linux machine.
>
> I'm using MySQL and plain JDBC calls. On my development machine, I put the
> mysql-connector-java-5.1.5-bin.jar in the Glassfish /lib directory and all
> was well.
>
> Unfortunately, when I put that same jar in the Glassfish /lib directory on
> my real server machine and restart glassfish (with stop-domain,
> start-domain) I keep getting ClassNotFoundExceptions for
> com.mysql.jdbc.Driver. Here's the top of the stacktrace:
>
> ...java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> <at my code that calls Class.forName()>
>
> What simple and dumb thing am I missing? Thanks.
>
> Johnny S. Tolliver
> Oak Ridge National Laboratory
> tolliverjs_at_ornl.gov, 865-574-1305
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>