my dog learned polymorphism
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

JBoss 4.2.3 class loading sequence...

Phani.Kiran Gutha

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:
subject: JBoss 4.2.3 class loading sequence...
It's not a secret anymore!