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 I-Lung Lin <Pa...@oracle.com> on 2001/01/23 19:53:32 UTC

Re: Nightly Build Question

I noticed that the RPCRouterServlet is being loaded so there shouldn't be
any problems with my web.xml file.
I modified my copy of the RPCRouterServlet code to print out the class path
while it's in there:
here's the print-out:

RPCRouterServlet.<init>: Classname is class
org.apache.soap.server.http.RPCRouterServlet
RPCRouterServlet.printClassPath()...
-> /private2/packages/ibm/lib/xerces.jar
-> /private2/packages/jakarta/tomcat/4.0b1/bin/bootstrap.jar
-> /private2/packages/jakarta/tomcat/4.0b1/bin/old/servlet.jar
-> /private2/packages/jakarta/tomcat/4.0b1/bin/naming.jar
-> /private/packages/jdk1.2.2_05a/lib/tools.jar
-> /private2/packages/javamail-1.2/imap.jar
-> /private2/packages/javamail-1.2/mail.jar
-> /private2/packages/javamail-1.2/mailapi.jar
-> /private2/packages/javamail-1.2/pop3.jar
-> /private2/packages/javamail-1.2/smtp.jar
-> /private2/packages/ibm/lib/xerces.jar
-> /private2/packages/ibm/lib/bsf.jar
-> /private2/packages/ibm/lib/bsfengines.jar
-> /private2/packages/ibm/lib/pop3.jar
-> /private2/packages/ibm/lib/smtp.jar
-> /private2/packages/ibm/lib/xmisoap.jar
->
/private2/packages/soap/2.0/nightly/2001-01-21/xml-soap/java/build/classes
-> /private2/packages/soap/2.0/nightly/2001-01-21/xml-soap/java/build
-> /private2/packages/jaf-1.0.1/activation.jar
RPCRouterServlet.printClassPath()... Done

The old/servlet.jar in the classpath is from the bin/servlet.jar under a
previously installed jakarta-tomcat-4.0-m2 catalina.
This was one of the many attempts, I also tried using the servlet.jar from
the bin directory under jakarta-tomcat-4.0-b1
as well as the one from the jakarta-servletapi-4.0-b1.zip. All three gave
rise to the following exceptions after my client issued the following
request:

Request:

    java org.apache.soap.server.ServiceManagerClient
http://localhost:8080/soap/servlet/rpcrouter deploy
$SOAP_HOME/samples/calculator/DeploymentDescriptor.xml

Exception:

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 java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at javax.servlet.ServletException.<init>(ServletException.java:132)
        at org.apache.catalina.core.StandardWrapper.load(Compiled Code)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:227)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
        at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
        at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at org.apache.catalina.connector.http.HttpProcessor.process(Compiled
Code)
        at org.apache.catalina.connector.http.HttpProcessor.run(Compiled
Code)
        at java.lang.Thread.run(Thread.java:479)
</pre>
<h3>Root Cause:</h3>
<pre>
java.lang.ClassCastException: org.apache.soap.server.http.RPCRouterServlet
        at org.apache.catalina.core.StandardWrapper.load(Compiled Code)
        at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:544)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:227)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:196)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at org.apache.catalina.core.StandardContext.invoke(Compiled Code)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161
)
        at
org.apache.catalina.valves.ValveBase.invokeNext(ValveBase.java:242)
        at org.apache.catalina.valves.AccessLogValve.invoke(Compiled Code)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:975)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:159)
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:977)
        at org.apache.catalina.connector.http.HttpProcessor.process(Compiled
Code)
        at org.apache.catalina.connector.http.HttpProcessor.run(Compiled
Code)
        at java.lang.Thread.run(Thread.java:479)
</pre>
</body>
</html>
]
        at java.lang.Throwable.fillInStackTrace(Native Method)
        at java.lang.Throwable.fillInStackTrace(Compiled Code)
        at java.lang.Throwable.<init>(Compiled Code)
        at java.lang.Exception.<init>(Compiled Code)
        at org.apache.soap.SOAPException.<init>(SOAPException.java:71)
        at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:173)
        at org.apache.soap.rpc.Call.invoke(Call.java:210)
        at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:110)
        at
org.apache.soap.server.ServiceManagerClient.deploy(ServiceManagerClient.java
:123)
        at org.apache.soap.server.ServiceManagerClient.main(Compiled Code)

If anyone has seen this before please let me know how I can solve it,
Thanks a lot.

PS: Sorry if this question has been asked before.
But I couldn't perform a search on the mailing list archives
(I could only search on headers of the old mails).
If this is the case, can someone please forward me that mail? Thanks,

Paul

----- Original Message -----
From: "Paul I-Lung Lin" <Pa...@oracle.com>
To: <so...@xml.apache.org>
Sent: Monday, January 22, 2001 11:15 PM
Subject: Nightly Build Question


> I'm currently trying the nightly builds of SOAP.
> Which version of Jakarta Tomcat should I use with that?
> I'm currently trying Jakarta Tomcat 4.0 beta 1, to no avail.
> I think I'm getting some classpath clashes resulting in catalina not
> recognizing org.apache.soap.server.http.RPCRouterServlet as a valid
Servlet.
>
> Thanks,
> Paul
>
>
>