I'm having a problem deploying a WAR that contains Axis and some web services.

I have a war that works fine when deployed in a simple Tomcat install.  This war has 
Axis 1.2 RC1 in it and my set of web services, along with Apache's WS-Addressing 
library.  I need Axis RC1 because WS-Addressing jar has a dependency on a class in the 
new Axis (i.e. WS-Addressing fails to run with Axis 1.2beta2 or less - throws a 
NoSuchMethodError due to missing constructor that is only found in Axis 1.2 RC1).

When I deploy in JBoss 4.0, I get that same NoSuchMethodError, due to the unified 
classloader picking up JBoss's Axis (1.2beta2) and not the one in my war's WEB-INF/lib.

I tried turning off that unified classloader using tips I found here in the Forum and 
the Wiki.  But to no avail.  Here's what I put in my war's WEB-INF/jboss-web.xml:


  | <jboss-web>
  |    <class-loading java2ClassLoadingCompliance="false">
  |       <loader-repository>
  |          dot.com:loader=wsdm.war
  |          
<loader-repository-config>java2ParentDelegation=false</loader-repository-config>
  |       </loader-repository>
  |    </class-loading>
  | </jboss-web>
  | 

I tried the different combinations for the above settings (false/true, true/false, 
etc) - all still fail.

The only thing that I have been able to do to get it to work is to replace the 
axis-ws4ee.jar file in the jboss-ws4ee.sar with my Axis RC1 jar.  When I do that, all 
worked fine.  So I assume this all points to a class loading issue, but I can't find 
the magic bits to get it to work (without having to play with JBoss's own internal 
axis-wsee SAR).  I would like to be able to deploy my own WAR and have it isolated 
without affecting JBoss's internals or other deployments that may rely on the Axis 
that comes with JBoss.

Any hints/tips are appreciated.


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

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


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to