1 Reply Latest reply on Feb 16, 2006 5:55 AM by cjc

    Where to place JDBC mysgl-connector-java-x.x.x.-bin.jar?

    mr.burns

      Hello,

      I have a webarchieve, with the mysql-connector-java-3.1.7-bin.jar in the
      WEB-INF/lib folder.

      If I deploy this webarchive to standalone Tomcat, my apllication works fine.
      If I deploy it to JBoss it gives me an error message:

      java.lang.NullPointerException

      Following line of my JAVA source causes the eception:
      Class.forName("com.mysql.jdbc.Driver");

      The same exception I had also before with Tomcat, but solved by placing the mysql-connector-java-3.1.7-bin.jar in the WEB-INF/lib folder and
      re-deploying. So it seems that the JBoss cannot find my
      mysql-connector-java-3.1.7-bin.jar?

      Where is the right place in my Web-Archive or JBoss server to store the
      mysql-connector-java-3.1.7-bin.jar?
      I thought all necessary *.jar should be placed in my application archive in
      the WEB-INF/lib folder and thats it!?!

      I also copied an exploded war from my appl.war (got from Tomcat after
      doploying) and deployed it to JBoss, the mysql-connector-java-3.1.7-bin.jar was to find under the WEB-INF/lib folder, but no success, even no success by updating the manifest.mf and the classpath with the path to the
      mysql-connector-java-3.1.7-bin.jar.

      So whats the right way to make the mysql-connector-java-3.1.7-bin.jar
      accessible for JBoss as well?

      Thanks for any ideas!