A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Mongo DB Applied Patterns
this week in the
or a resume review from
Five Year Itch
JBoss 4.2.3 class loading sequence...
Joined: Dec 14, 2010
Jun 19, 2011 04:54:39
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
<jboss-web> <class-loading java2ClassLoadingCompliance="true"> <loader-repository> com.example:eagle=web-360.jar <loader-repository-config>java2ParentDelegation=true</loader-repository-config> </loader-repository> </class-loading> </jboss-web>
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...
three day headache - ClassCastException
log 4j in JBOSS 4.0.0
Using your own log4j.properties file
Loading different version of Hibernate(3.3) in Jboss4.0.3
Class Loading Configuration
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013