File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JBoss 4.2.3 class loading sequence... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBoss 4.2.3 class loading sequence..." Watch "JBoss 4.2.3 class loading sequence..." New topic
Author

JBoss 4.2.3 class loading sequence...

Phani.Kiran Gutha
Greenhorn

Joined: Dec 14, 2010
Posts: 14
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JBoss 4.2.3 class loading sequence...
 
Similar Threads
Class Loading Configuration
Loading different version of Hibernate(3.3) in Jboss4.0.3
Using your own log4j.properties file
log 4j in JBOSS 4.0.0
three day headache - ClassCastException