aspose file tools*
The moose likes BEA/Weblogic and the fly likes How to order the jars to be loaded by Classloaders in weblogic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "How to order the jars to be loaded by Classloaders in weblogic" Watch "How to order the jars to be loaded by Classloaders in weblogic" New topic
Author

How to order the jars to be loaded by Classloaders in weblogic

hildich kilal
Ranch Hand

Joined: Aug 25, 2008
Posts: 44
Hello,
We have a situation where there are two classes with exactly same package structure in two different jars.
Now in local and Dev environements (luckily) correct jar is picked first and class loaded correctly.
But in QA weblogic server jars are not picked up in same order.

I would like to know how can I make sure that 2 jars are accessed in a particular order?

I had looked into <classloader-structure> also but couldn't understand much.

So I have 2 jars a.jar and b.jar and I always want to pick a class from a.jar .

Any pointers will be helpful.

Thanks
N Sahni
Ranch Hand

Joined: Jul 07, 2011
Posts: 55

Hi,

This link should give you some pointers regarding Weblogic Class Loading.


Thanks and Regards,
Nilesh Sahni | nsahni@infocepts.com | www.infocepts.com
robin patel
Greenhorn

Joined: Jan 03, 2011
Posts: 16
Can you try keeping you JARS inside Domain/lib folder?
WebLogic follows dictionary level implementation when it comes to picking up the JARS.

Regards,
Rob
hildich kilal
Ranch Hand

Joined: Aug 25, 2008
Posts: 44
robin patel wrote:Can you try keeping you JARS inside Domain/lib folder?
WebLogic follows dictionary level implementation when it comes to picking up the JARS.



Thanks Robin, I will try that and update the forum.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to order the jars to be loaded by Classloaders in weblogic