Answer: specify the following in weblogic.xml and package the file into your application ear file.
xml
version="1.0" ?>
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>
This could help solving the NoClassDefFoundError exception.
Suggest to read more on classloading issues here:http://javarevisited.blogspot.ca/2011/06/noclassdeffounderror-exception-in.html
One explanation for NoCleassDefFoundError and when Child loading first can resolve it: Maybe
your class depends on another class which is on both parent and you
application, but different version.
Refer to the following link on weblogic classloading:
http://docs.oracle.com/cd/E11035_01/wls100/programming/classloading.html
No comments:
Post a Comment