File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Jboss not recognizing the mysql driver Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Jboss not recognizing the mysql driver" Watch "Jboss not recognizing the mysql driver" New topic

Jboss not recognizing the mysql driver

Vilpesh Mistry
Ranch Hand

Joined: May 27, 2003
Posts: 62
Hi all,
Well iam developing an application using EJb,JBoss and mysql.
Jboss version is jboss-4.0.3
mysql driver used is mysql-connector-java-3.1.2
I extracted & have copied the mysql-connector-java jar file in the folder
server/default/lib of jboss.

I have restarted my jboss server after copying the jar file.After invloking http://localhost:8080/jmx-console--- i have clicked on the link
"name=Default,Service=LoaderRepository" on the JImplementation domain.
On the Page displayed,now i have typed "com.mysql.jdbc.Driver" under the ParamValue column of displayClassInfo() and clicked on Invoke button.
This displays
"com.mysql.jdbc.Driver Information
Not Loaded in Repository Cache

### Instance 0 found in UCL"

With repeated restarts of jboss i get the same result.

Now with above resut displayed i understand that jboss is not loading the driver class.
1>Does it mean i wont be able to connect to jboss from jboss.

What do i do...

Thanks & Regards

Don't get me started about those stupid light bulbs.
subject: Jboss not recognizing the mysql driver
It's not a secret anymore!