0 Replies Latest reply on Sep 9, 2009 5:23 AM by su tata

    Overriding server classes with web application classes

    su tata Newbie

      Hi all,

      My application uses a wsdl4j.jar but JBoss also has a wsdl4j.jar in default\deployers\jbossws.deployer. I want it to pick up classes from my application's wsdl4j.jar. I used the following configuration in jboss-web.xml:

      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      com.ibm:archive=wsdl4j.jar
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
      </class-loading>

      Also I tried adding a classpath entry in jboss-service.xml but none of these approaches work.

      Another thing I tried is adding following entries in jboss-web.xml:

      <class-loading java2ClassLoadingCompliance="false">
      <loader-repository>
      com.ibm:loader=myapplication.war
      <loader-repository-config>java2ParentDelegation=false</loader-repository-config>
      </loader-repository>
      </class-loading>

      The above configuration also did not work.

      If I remove the jar that comes with JBoss, my application works fine, but I don't want to do that. Is there some way out?

      Thanks in advance.