Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JBoss 4.2.3 class loading sequence...

 
Phani.Kiran Gutha
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a jar in server/default/lib which contains Foo.class,Bar.class

and the same class is there in my application/WEB-INF/classes which is deployed in server/default/deploy.

and Example.class is using the Foo.class instance and Bar.class instance

Now the situation is that ..

Example.class shoud use the Foo.class in my application and Bar.class in Deafult/lib jar file.


In other words.

My application should use the classes in the application clases folder if not found in classes folder then it should use the class in default/lib jar files.

To do i have defined jbos-web.xml file




web-360.jar is the jar which will be default/lib.
com.eagle:eagle has no significance..

But no Luck. Throwing exception saying that class loader of instance are different.





Can any one help me

Thanks In Avance
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic