I am seeing something similar to lappi's issue.  I've also perused a number of 
other topics re: DB driver issues, but none directly correspond to my problem, 
or were able to help me fix it.

I've deployed jBPM 3.0.2 to JBoss 4.0.3 SP1.  I'm testing a process definition 
using a simple servlet in a webapp.  The servlet calls some utility code, 
packaged within an EAR.  The jBPM core libraries are packaged in another EAR.  
Both EARs are within the ...\server\default\deploy directory.

The webapp worked fine when using the Hypersonic default DB.  However, I've not 
had the same success with mySQL.  I keep getting the following error message:  

12:26:32,646 INFO  [Configuration] processing association property references
12:26:32,646 INFO  [Configuration] processing foreign key constraints
12:26:32,748 INFO  [C3P0ConnectionProvider] C3P0 using driver: 
com.mysql.jdbc.Driver     at URL: jdbc:mysql://localhost:1521/jbpm
12:26:32,748 INFO  [C3P0ConnectionProvider] Connection properties: {user=root, 
password=****}
12:26:32,748 INFO  [C3P0ConnectionProvider] autocommit mode: false
12:26:32,748 FATAL [C3P0ConnectionProvider] JDBC Driver class not found: 
com.mysql.jdbc.Driver
java.lang.ClassNotFoundException: No ClassLoaders found for: 
com.mysql.jdbc.Driver
        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:292)
        at 
org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:475)
        at 
org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:377)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:108)
        at 
org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:65)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:124)
        at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvi
der(ConnectionProviderFactory.java:56)
        at 
org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:366)...
 etc.

I deployed the mySQL driver in the ...\server\default\lib directory and added a 
datasource definition into the corresponding "deploy" directory.

I adjusted the hibernate.properties and hibernate.cfg.xml files and checked 
them repeatedly.

I even added a "resource-ref" to the webapp's "web.xml" file and added a 
"jboss-web.xml" file there, even though they weren't needed for Hypersonic.  
Still no luck.

It seems no matter what I do, I can't get my app, or Hibernate, to recognize 
the mySQL driver.

Any ideas to fix this would be most appreciated!

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917689#3917689

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917689


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to