Cris
Cris

Reputation: 5007

Loading a class from a specific jar on Weblogic

I have an application deployed on Weblogic and because of a lock contention generated by a Xerces bug i would like to 'force' Weblogic to use the correct jar where the bug is already fixed.

http://svn.apache.org/viewvc?view=revision&revision=558581 (xerces bug fixed)

Is there a way to be sure that the class from a specific jar is loaded and used by my application.

By default weblogic is using the old buggy Xerves in multiple internal librares:

com.bea.core.apache_1.2.0.0.jar
com.bea.core.apache.xercesImpl_2.8.1.jar

Thanks

Upvotes: 1

Views: 1911

Answers (1)

Aleš
Aleš

Reputation: 9028

One way is to modify the CLASSPATH of Weblogic startup scripts so that it contains the desired jar before the jar containing the buggy version of the library.

You can modify e.g. domain/bin/setEnv.sh.

Use -verbose:class to verify that the correct version of the Class is loaded.

Upvotes: 1

Related Questions