Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JBoss: where to place JDBC mySQL-Driver?
JBoss: where to place JDBC mySQL-Driver? [message #160802] Wed, 15 February 2006 15:51 Go to next message
mr. burns is currently offline mr. burnsFriend
Messages: 402
Registered: July 2009
Senior Member
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 apllication 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!
Re: JBoss: where to place JDBC mySQL-Driver? [message #161293 is a reply to message #160802] Tue, 21 February 2006 02:22 Go to previous message
Eclipse UserFriend
Originally posted by: mlybarger.com.gmail.backwards

it's very much ot Mr. Burns, but try putting the jar in
JBOSS_HOME/server/default/lib (server classpath).

Mr. Burns wrote:
> 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 apllication 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!
>
>
>
>
>
>
Previous Topic:Update Site for the Webtools?
Next Topic:Deployment Question
Goto Forum:
  


Current Time: Thu Apr 25 23:41:46 GMT 2024

Powered by FUDForum. Page generated in 0.02689 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top