java - Weblogic Prefer application packages not working -
i using weblogic 10.3.6 portal server. weblogic 10.3.6 uses common-fileupload jar comes weblogic. want server use 1 have inside war.
use case have war1 uses apache jars inside war2. added below lines in weblogic.xml of both wars not working , still loading weblogic specific jars.
<wls:container-descriptor> <wls:prefer-application-packages> <wls:package-name>com.sample.*</wls:package-name> </wls:prefer-application-packages> </wls:container-descriptor>
any idea why jar inside wars not been used ?
in order use prefer-application-packages prefer-web-inf-classes must set false.
an example weblogic documentation:
<?xml version="1.0" encoding="utf-8"?> <weblogic-web-app xmlns="http://xmlns.oracle.com/weblogic/weblogic-web-app"> <container-descriptor> <prefer-web-inf-classes>false</prefer-web-inf-classes> <prefer-application-packages> <package-name>javax.faces.*</package-name> <package-name>com.sun.faces.*</package-name> <package-name>com.bea.faces.*</package-name> </prefer-application-packages> <prefer-application-resources> <resource-name>javax.faces.*</resource-name> <resource-name>com.sun.faces.*</resource-name> <resource-name>com.bea.faces.*</resource-name> <resource-name>meta-inf/services/javax.servlet.servletcontainerinitializer</resource-name> </prefer-application-resources> </container-descriptor> </weblogic-web-app>
Comments
Post a Comment