Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Classloading problem on deployment of hbm.xml

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Water! People swim in water! Even tiny ads swim in water:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic