[jboss-user] [Installation, Configuration & Deployment] - Overriding server classes with web application classes

stata do-not-reply at jboss.com
Wed Sep 9 05:23:47 EDT 2009


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.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254123#4254123

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254123



More information about the jboss-user mailing list