Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Internal libraries xercesImpl.jar error when deploy as war file

santiago_ncSep 11 2015 — edited Sep 12 2015

I have created a RSS Feed with Rome 1.5, using this jar files:

  • jdom-2.0.6.jar
  • rome-1.5.1.jar
  • rome-utils-1.5.0.jar
  • xercesImpl.jar
  • xml-apis.jar


It exists an incompatibility between xercesImpl.jar and the internal weblogic libraries. To resolve it, i have modified weblogic.xml with this:

<container-descriptor>

  <prefer-web-inf-classes>false</prefer-web-inf-classes>

  <prefer-application-packages>

  <package-name>org.apache.xerces.*</package-name>

  </prefer-application-packages>

  <prefer-application-resources>

  <resource-name>org.apache.xerces.*</resource-name>

  </prefer-application-resources>

</container-descriptor>


And now I can deploy as standalone application.


Byt this is not my architecture.


I have an EAR application which it render this and other application deployed as WAR files.


When I run this, it fires runtime errors since weblogic use its internal libraries.


How can I resolve it?

jdeveloper 12.1.3.0.0

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2015
Added on Sep 11 2015
3 comments
828 views