C Santosh Kumar wrote:
> 
> so thats it.
> soap.war has expanded soap.jar,
> as org/apache/soap in WEB-INF classes.
> So do not include soap.jar anymore
> in the lib directory. or remove
> that org directory.
> 
> hope that helps.

Thanks, that did help.

Removing lib/soap.jar doesn't work.  Despite setting my 
classpath to $CATALINA_HOME/webapps/soap/WEB-INF/classes,
I get this SOAP fault:
java.lang.NoClassDefFoundError: org/apache/soap/Envelope

Removing webapp/soap.war and webapps/soap/ doesn't
work, because then the SOAP servlet isn't loaded and
Tomcat doesn't know what to do with the SOAP messages.

Removing webapps/soap/WEB-INF/classes/org *does* work,
but this seems like an incredible hack -- not in the
spirit of the .war file specification.

Can someone please explain what's going on here? I'd like
to understand the problem, and why I have to resort to
hacking the SOAP webapp directory.  Why does Tomcat 4.01
have a problem with having both lib/soap.jar and a complete
webapps/soap/ directory?  And why is this manifesting itself
as a "no signture match" fault for SOAP message-style services?

Finally, since I've heard from a few other people having
this proble, here's what I did to install SOAP 2.2 and 
my SOAP message-style service.  $SOAP_HOME is the directory 
where you installed Apache SOAP 2.2.  $CATALINA_HOME is the 
directory where you installed Tomcat 4.01.

 (0) Unpack Tomcat 4.01 and SOAP 2.2
 (1) cp $SOAP_HOME/lib/soap.jar to $CATALINA_HOME/lib/
 (2) cp $SOAP_HOME/webapps/soap.war to $CATALINA_HOME/webapps/
 (3) start Tomcat 4.01 so that it will expand soap.war
 (4) rm -rf $CATALINA_HOME/webapps/soap/WEB-INF/classes/org/
 (5) stop Tomcat
 (6) cp mySoapServer.jar $CATALINA_HOME/lib/
 (7) deploy my SOAP service using the SOAP messagerouter servlet

My client app's classpath is:
.:${CATALINA_HOME}/lib/soap.jar:${CATALINA_HOME}/common/lib/xerces.jar:${CATALINA_HOME}/common/lib/mail.jar:${CATALINA_HOME}/common/lib/activation.jar


-Chris

-- 
Chris Malley
PixelZoom, Inc.             Voice: +1.303.494.8849
835 Orman Drive             EMail: [EMAIL PROTECTED]
Boulder CO 80303-2616

Reply via email to