That's exactly how I expected it to work, but it didn't.  See below the SOAP fault message
from tcpmon.  Notice the stacktrace doesn't mention a NoClassDefFounError, so is it
something else?  Problem clears up when I put the classes explicitly in Tomcat's
classpath.
 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
 <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.NoService</faultcode>
   <faultstring>The AXIS engine could not find a target service to invoke!  targetService is null</faultstring>
   <detail>
    <ns2:stackTrace xmlns:ns2="http://xml.apache.org/axis/">The AXIS engine could not find a target service to invoke!  targetService is null&#xd;
 at org.apache.axis.server.AxisServer.invoke(Unknown Source)&#xd;
 at org.apache.axis.transport.http.AxisServlet.doPost(Unknown Source)&#xd;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)&#xd;
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)&#xd;
 at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)&#xd;
 at org.apache.tomcat.core.Handler.service(Handler.java:287)&#xd;
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)&#xd;
 at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)&#xd;
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)&#xd;
 at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)&#xd;
 at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)&#xd;
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)&#xd;
 at java.lang.Thread.run(Thread.java:484)&#xd;
</ns2:stackTrace>
   </detail>
  </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
 
Walden
 
 -----Original Message-----
From: Volkmann, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:27 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Service deployment location

I don't believe the statement "As you are talking with axis, not tomcat wheni nvoking a service, axis can´t load classes the same as tomcat" is correct. I don't put anything related to Axis in my classpath before starting Tomcat.T omcat gets everything it needs to run Axis from the axis webapp.
 
I know this doesn't help, but example3 works for me. I didn't move any new files into the axis webapp. I just ran
 
java org.apache.axis.client.AdminClient deploy.wsdd
 
to deploy the service and then ran
 
java samples.userguide.example3.Client test
 
to execute it.
 
Of course I had to have all the jars in the Axis lib directory, plus xerces.jar (1.4.4) in my classpath to run those two commands. I didn't have those jars in my classpath when I started Tomcat though.
 
-----Original Message-----
From: Walden Mathews [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:05 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Service deployment location

"axis can't load classes the same as tomcat"
 
Do I smell a requirement here, guys?
 
Walden
-----Original Message-----
From: M. en C. Jesús Sosa Iglesias [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Service deployment location

 
As you are talking with axis, not tomcat when invoking a service, axis can´t load classes the same as tomcat.
Axis use the Classpath to find classes, So you have to set up the classpath before start tomcat :
I put inside Tomcat Bat.
    set CLASSPATH=h:\jakarta-tomcat-3.2.3\webaps\axis\web-inf\classes;%CP%
I hope this help

Walden Mathews wrote:

 Where is the correct place to deploy web service classes to Axis running as a Tomcatservlet?  The examples are packaged into a folder hierarchy under Axis/Web-inf, but Tomcatdoesn't seem to be able to locate them there.  If I move them to a "classes" folderdirectly under Tomcat, they are found, but is this the right "scope"?  I think not.  Pleaseadvise.Walden Mathews
ILX Systems
111 Fulton St. 3rd Floor
New York, NY 10038
Phone (212) 510-3121
Fax (212) 437-2305 


***************************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************************

Reply via email to