1 Reply Latest reply on May 21, 2012 10:38 AM by fx0123

    Migration from Weblogic Server - classloading issue

    fx0123 Newbie

      Hi,

       

      I'm migrating an ear application from Weblogic Server 10.3 to JBoss AS 7.1 and I was wondering how I could override some of the system libraries from the classloader with my application libraries. Here is the way I did it with Weblogic in the weblogic-application.xml of the ear :

       

      <wls:prefer-application-packages>
        <wls:package-name>antlr.*</wls:package-name>
        <wls:package-name>org.apache.xml.security.*</wls:package-name>
      </wls:prefer-application-packages>
      

       

      I didn't find how to do it with JBoss...

       

      Thank you.

        • 1. Re: Migration from Weblogic Server - classloading issue
          fx0123 Newbie

          Ok I found the same question here : https://community.jboss.org/message/637818

          It worked for me with a slight change in the jboss-deployment-structure.xml :

           

          <deployment>
            <exclusions>
              <module name="javaee.api" />
            </exclusions>
          </deployment>
          <sub-deployment name="myapp.war">
            <exclusions>
              <module name="javaee.api" />
            </exclusions>
            <dependencies>
              <module name="javaee.api">
                <imports>
                  <exclude path="org/apache/xml/security/**" />
                </imports>
              </module>
            </dependencies>
          </sub-deployment>