Hmm, I get the error below when servlet.jar is in my classpath, otherwise
it doesn't recognise a class in the servlet.jar. However, when I use
Tomcat 3.2.2 with the same servlet.jar instead of Tomcat 4.0b8, it works
perfectly. I'm also using JDK 1.4, and have tried it with a WAR file and
with the soap.jar in my classpath, with the same results as I indicated
below. This is really puzzling, as I would figure if it was a change in
the servlet.jar that did it, then Tomcat 3.2.2 wouldn't like it either,
but it's fine.

Thanks.

--Richard


On Thu, 16 Aug 2001, Scott Nichol wrote:

> I know folks (myself included) have been successful with beta 6 of Tomcat
> 4.0.  I deployed the war file.  The only things I added to CP in catalina.sh
> were mail and activation.  Sorry, but I don't recall the JDK I used.
>
> Scott
>
> ----- Original Message -----
> From: "Richard Boehme" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, August 16, 2001 10:31
> Subject: SOAP and Tomcat 4.0
>
>
> > When I try to deploy SOAP using Tomcat 4.0, I can sometimes bring up the
> > SOAP admin client (http://localhost:8080/soap), but when I try to list,
> > deploy, undeploy, etc. services using the ServiceManagerClient, it says
> > that the RPCRouterServlet isn't a servlet. I'm currently running SOAP 2.2
> > under Linux (Redhat), and everything worked fine with Tomcat 3.2.2; it's
> > my changing to Tomcat 4.0 that has everything in a mess. My classpath is
> > the same except for some additional stuff at the end with Tomcat 4.0.
> > Since the servlet jar has changed, it ought to complain when I recompile
> > SOAP, but that compiles fine, and runs fine afterwards on Tomcat 3.2.2.
> > Here's what it's reporting:
> >
> > [boehme@shinji addressbook]$ java
> > org.apache.soap.server.ServiceManagerClient
> > http://localhost:8080/soap/servlet/rpcrouter list
> > Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:Protocol;
> > msg=Unsupported response content type "text/html", must be: "text/xml".
> > Response was:
> > <html>
> > <head>
> > <title>Tomcat Exception Report</title>
> > </head>
> > <body bgcolor="white">
> > <br><br>
> > <h1>A Servlet Exception Has Occurred</h1>
> > <h3>Exception Report:</h3>
> > <pre>
> > javax.servlet.ServletException: Class
> > org.apache.soap.server.http.RPCRouterServlet is not a Servlet
> > at
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
> > at
> >
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
> > .
> > .
> > [more catalina locations]
> > .
> > .
> > </pre>
> > <h3>Root Cause:</h3>
> > <pre>
> > java.lang.ClassCastException: org.apache.soap.server.http.RPCRouterServlet
> > at
> > org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:809)
> > at
> >
> org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:602)
> > .
> > .
> > [more catalina locations]
> > .
> > .
> > </pre>
> > </body>
> > </html>
> > ]
> > at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:200)
> > at org.apache.soap.rpc.Call.invoke(Call.java:247)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
> t.java:129)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
> 51)
> > at
> >
> org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
> 37)
> >
> >
>

-- 
-- Rich

[EMAIL PROTECTED]
Dorm Phone: (410) 516-5974

http://hops.cs.jhu.edu/~boehme/

Reply via email to