you might need a different class depending on the type of resource you
chose.
For example with the mySQL 3.1 driver and a connection pool data source we
use com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource.
On Mon, Mar 24, 2008 at 11:05 AM, Johnny Tolliver <jxt_at_ornl.gov> 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
>
>