Skip to main content

JBoss to My SQL Connection problem...

2 replies [Last post]
mailtoseelan
Offline
Joined: 2007-03-11

HI,

Am trying to connect MySQL from JBOSS..

But it throws exeception given below..

SQLException:org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.mysql.jdbc.Driver)))service end method on RA entry point....

I tried to connect postgresql from JBOSS..This works perfectly..

I dont know y it happens only to Mysql..

Can anyone reply me for his problem..

Waiting for your reply..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexandrem
Offline
Joined: 2005-10-19

As the stacktrace indicates the class "[b]com.mysql.jdbc[/b]" is missing. You should provide it along with your app if you want to use it.

You should find it in mysql homepage, JConnector.

Alexandre Mendonca
JBoss R&D

mailtoseelan
Offline
Joined: 2007-03-11

Hi,

THanks for your reply..

I already copied the JConnector jar file into

/mobicents-1.2.3.GA/jboss-4.2.3.GA/server/default/lib/mysql-connector-java-5.1.8-bin.jar

The same place I also copied postgresql-8.3-603.jdbc3.jar for postgresql. This works perfectly.

But MySql only throws exception..I dont know y?

Can you help to solve this issue?