hi chris
Are you sure this problem is only with the message style services ?

and have a look at
http://localhost:8080/tomcat-docs/class-loader-howto.html
It says:
from the perspective of a web application, class or resource loading looks
in the following repositories, in this order:

  a.. /WEB-INF/classes of your web application
  b.. /WEB-INF/lib/*.jar of your web application
  c.. Bootstrap classes of your JVM
  d.. System class loader classses (described above)
  e.. $CATALINA_HOME/common/classes
  f.. $CATALINA_HOME/common/*.jar
  g.. $CATALINA_HOME/classes
  h.. $CATALINA_HOME/lib/*.jar

So according to this, just plain soap.war should work fine. dont know why it
is not
working.
chris, can u ask this query to craig in tomcat user mailing list ? This is a
classloader
problem, more to do with tomcat than soap.

Santosh.


----- Original Message -----
From: "Chris Malley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 11:38 PM
Subject: Re: Tomcat 4.01 & SOAP 2.2 message-style services


> 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:${CAT
ALINA_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