You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Paul Davis <pa...@ca.astound.net> on 2002/07/22 04:22:04 UTC

Problems with SOAP and Tomcat.....

Hi All...

I'm new to webservices and have been playing with this stuff for a
couple of days now, I started with XML-RPC and was able to get that up
and running in a short time. But I am stumped and frustrated setting up
SOAP on Tomcat...

I have the Tomcat server running on my RH Linux 7.3 box, I can browse to
the http://localhost/soap link and get the admin page, from there I can
go to the rcprouter and get the appropriate response. I am able to
deploy/undeploy and list services so as far as I can tell everything is
working. I'm running SOAP version 2.2 and Tomcat 3.3.1.

However as soon as I send a SOAP request I get the following errors:

RE: Problems with SOAP and Tomcat.....

Posted by Sandro Picchio <sa...@inmedia.ws>.
Did you try to put your application server-side .class files into the
$TOMCAT_ROOT\webapps\soap\WEB-INF\classes directory?
I had a similar problem on Tomcat 4.0.4 and it worked...

Regards,

Sandro


-----Original Message-----
From: Paul Davis [mailto:pauldavis@ca.astound.net]
Sent: lunedi 22 luglio 2002 4.22
To: soap-user@xml.apache.org
Subject: Problems with SOAP and Tomcat.....


Hi All...

I'm new to webservices and have been playing with this stuff for a
couple of days now, I started with XML-RPC and was able to get that up
and running in a short time. But I am stumped and frustrated setting up
SOAP on Tomcat...

I have the Tomcat server running on my RH Linux 7.3 box, I can browse to
the http://localhost/soap link and get the admin page, from there I can
go to the rcprouter and get the appropriate response. I am able to
deploy/undeploy and list services so as far as I can tell everything is
working. I'm running SOAP version 2.2 and Tomcat 3.3.1.

However as soon as I send a SOAP request I get the following errors:

>From the client side I get this:

Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
msg=Unsupported response content type &quot;text/html&quot;, must be:
&quot;text/xml&quot;. Response was:
&lt;head&gt;&lt;title&gt;Not Found (404)&lt;/title&gt;&lt;/head&gt;
&lt;body&gt;&lt;h1&gt;Not Found (404)&lt;/h1&gt;
Original request: /soap/servlet/rcprouter
&lt;br&gt;&lt;br&gt;&lt;b&gt;Not found request:&lt;/b&gt;
/soap/servlet/rcprouter&lt;/body&gt;]

On the Tomcat side I see this:

EmbededTomcat: Startup time 992
2002-07-21 19:18:33 - Ctx(/soap) : Class not found: rcprouter
2002-07-21 19:18:33 - Ctx(/soap) : Status code:404 request:R( /soap +
/servlet/rcprouter + null) msg:null
2002-07-21 19:19:04 - Ctx(/soap) : Status code:404 request:R( /soap +
/servlet/rcprouter + null) msg:null

I can send along the SOAP request if needed (I traced everything to make
sure the XML was well formed and correct) but it appears correct to me,
it seems to be a problem on the Tomcat side, in the startup.sh for
Tomcat I have the following classpath settings:

CLASSPATH=${CLASSPATH}:/usr/java/localclasses/xerces.jar
CLASSPATH=${CLASSPATH}:/usr/javamail-1.3/mail.jar
CLASSPATH=${CLASSPATH}:/usr/jaf-1.0.2/activation.jar
CLASSPATH=${CLASSPATH}:/usr/soap-2_2/lib/soap.jar
CLASSPATH=${CLASSPATH}:/usr/java/localclasses
CLASSPATH=${CLASSPATH}:/usr/jakarta-tomcat-3.3.1/lib

Any help would be appreciated...

Thanks

-Paul-


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>


RE: Problems with SOAP and Tomcat.....

Posted by Sandro Picchio <sa...@inmedia.ws>.
Did you try to put your application server-side .class files into the
$TOMCAT_ROOT\webapps\soap\WEB-INF\classes directory?
I had a similar problem on Tomcat 4.0.4 and it worked...

Regards,

Sandro


-----Original Message-----
From: Paul Davis [mailto:pauldavis@ca.astound.net]
Sent: lunedi 22 luglio 2002 4.22
To: soap-user@xml.apache.org
Subject: Problems with SOAP and Tomcat.....


Hi All...

I'm new to webservices and have been playing with this stuff for a
couple of days now, I started with XML-RPC and was able to get that up
and running in a short time. But I am stumped and frustrated setting up
SOAP on Tomcat...

I have the Tomcat server running on my RH Linux 7.3 box, I can browse to
the http://localhost/soap link and get the admin page, from there I can
go to the rcprouter and get the appropriate response. I am able to
deploy/undeploy and list services so as far as I can tell everything is
working. I'm running SOAP version 2.2 and Tomcat 3.3.1.

However as soon as I send a SOAP request I get the following errors: