• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBOSS 4.2.3 Class Not Found Exception

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I have a EJB Project and after changing JBOSS from version 4.2.1 to 4.2.3
I cannot deploy my Project anymore.

Here is what I did:

I changed all Serverdefinitions correctly in eclipse(think so at least).
I copied mysql-ds.xml into jboss/server/default/deploy as well my project.jar.
I have copied mysql-connector-java-5.0.6-bin.jar into jboss/server/default/lib

now I got the exeption:
Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: com.mysql.jdbc.Driver; - nested throwable: (java.lang.ClassNotFoundExceptin: No ClassLoaders found for: com.mysql.jdbc.Driver)

Does anybody has a solution for me?
Thanks in advance.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Jochen, welcome to Java Ranch!

Did you remember to copy the driver JAR file to the server/xxx/lib directory?
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now see I have a similar post trying to integrate MySQL with JBoss-4.2.1 and I too get the same error. And yes, I copied the *.jar file in the server/default/lib folder.
[ December 25, 2008: Message edited by: josh schell ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic