1 Reply Latest reply on May 27, 2003 10:56 AM by jonlee

    Problem with mysql connection in Jboss

    daemon

      Hi,I am a newbie and try to learn j2ee.I use Jbuilder7 ,Jboss and Mysql as my environment,when i wrote my first example and deployed it on jboos,ther was no error,but when i start the client ,exception was thrown,jboss said could not find "org.gjt.mm.mysql.driver".I have copied the mysql-ms.xml to $JBOSS_HOME\server\default\deploy.and copied mm.mysql-2.0.11-bin.jar to $JBOSS_HOME\lib and $JBOSS_HOME\server\default\lib . how can i do?

      Thanks for your help!!

        • 1. Re: Problem with mysql connection in Jboss
          jonlee

          You only need the driver jar in one place - I'd suggest putting it in the instance lib rather than the master lib e.g. put it in server/default/lib.

          I hope you named the datasource file mysql-ds.xml and this was just a typo. JBoss 3.2.x will only interpret a file as a datasource configuration if named *-ds.xml.

          Other than that the driver should be:
          org.gjt.mm.mysql.Driver
          not:
          org.gjt.mm.mysql.driver

          Because Case really does matter. ;)