It's not a secret anymore!*
The moose likes JBoss/WildFly and the fly likes Classloading problem on deployment of hbm.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Classloading problem on deployment of hbm.xml" Watch "Classloading problem on deployment of hbm.xml" New topic
Author

Classloading problem on deployment of hbm.xml

Daniel Winz
Greenhorn

Joined: Aug 19, 2010
Posts: 8
hly installed JBoss 5.1 (Java 6) I get a ClassNotFoundException for a class that definitely exists within my war.

The class that can't be found is referenced within the *hbm.xml:



ClassNotFoundException:


Have a look at complete attached jboss startup log!

Output of "jar -tf timetracker.war":



Obviously there are two classloaders. Log indicates that one (timetracker.war classloader) finds the class:



The other one (VFSClassLoaderPolicy classloader) does not find the class.

I am investigating in this problem for a couple of weeks. Please help! I am deploying on a freshly installed jboss AS. The *hbm.xml seams to correct and the war contains the class at the right place. What is wrong? Do I miss some configuration? Why the "VFSClassLoaderPolicy classloader" put his hands in?

Daniel Winz
Greenhorn

Joined: Aug 19, 2010
Posts: 8
Sorry, the first sentence was not completely pasted. Should be:

"When I deploy a war with a *hbm.xml to a freshly installed JBoss 5.1 (Java 6) I get a ClassNotFoundException for a class that definitely exists within my war."

I can't attache the server startup log. The connection gets interrupted always.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Classloading problem on deployment of hbm.xml
 
Similar Threads
Deploy Struts2 blank application on JBoss 5
EJB 3 and Jboss integration Error
Running JBoss 5.1.0 All Server
problem at server start up
Error while deploying a simple WebService application in JBoss using Eclipse IDE