I am doing a simple entity bean example program using JBOSS. I am getting class not found exception though I have put the driver mysql-connector-java-3.1.8a.zip file into the C:\jboss-3.2.3\server\default\lib directory and mysql-ds.xml in the C:\jboss-3.2.3\server\default\deploy. I am not using standardjbosscmp-jdbc.xml file, is this mandatory file.
The exception is 2005-05-13 09:36:31,678 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/C:/jboss-3.2.3/server/default/deploy/Employee.ear 2005-05-13 09:36:31,693 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/C:/jboss-3.2.3/server/default/deploy/Employee.ear 2005-05-13 09:36:32,271 INFO [org.jboss.ejb.EjbModule] Deploying Employee 2005-05-13 09:36:32,771 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: 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)) at
Thanks in Advance.
Heonkoo Lee
Ranch Hand
Joined: Feb 10, 2005
Posts: 85
posted
0
You need to put mysql jdbc driver jar file, not zip file.
And you already have jbosscmp-jdbc.xml which will be used to deploy your beans, instead of standardjboss-cmp.xml in config directory. [ May 17, 2005: Message edited by: Heonkoo Lee ]