Which xerces version you are using?
Make sure that xerces is the first declaration in your classpath.
Maybe the wrong parser
Hoang
"Chandrashekhar
B" To: <[EMAIL PROTECTED]>
<Bchandrashekar@n cc: <[EMAIL PROTECTED]>
ovell.com> Subject: Re: Apache Soap RPCRouter
problems
03.04.2002 13:38
Please respond to
soap-user
I don't know if you have deployed the sample service you are trying to
run. Error:500, it's not able to locate the sevice.
And make sure that 8080 is their in the URL,
http://localhost:8080/soap/servlet/rpcrouter , if you haven't
integrated Apache Web Server and Tomcat to work together.
Chandru.
>>> [EMAIL PROTECTED] 04/03/02 03:36PM >>>
Hi there,
I would really appreciate if someone can help me solve this problem
related to running a simple Apache SOAP Sample.
I downloaded and installed the following
a)Apache Web Server
b)Jakarta Tomcat 3.3.1
c)Apache SOAP 2.2 and all the related JAR files like Xerces,
Activation
etc.
I followed instructions as detailed in the web site.
I could successfully deploy the web service. The URL
http://localhost:8080/soap/servlet/rpcrouter works fine.
But when i trying to run the Greetings sample client, i get the
following error -
--------------------------------------------------------------------
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response
content type "text/html", must be: "text/xml". Respon
se was:
<head><title>Error: 500</title></head>
<body>
<h1>Error: 500</h1>
<h2>Location: /soap/servlet/rpcrouter</h2><b>Internal Servlet
Error:</b><br>
<pre>javax.servlet.ServletException: Error building response envelope:
java.lang.NullPointerException
at
org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:353)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at
org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at
org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
at java.lang.Thread.run(Thread.java:536)
</pre>
</body>
]
at org.apache.soap.rpc.Call.getEnvelopeString(Call.java:175)
at org.apache.soap.rpc.Call.invoke(Call.java:212)
at GreeterClient.main(GreeterClient.java:22)
Exception in thread "main" java.lang.NullPointerException
at GreeterClient.main(GreeterClient.java:31)
------------------------------------
I went to the "troubleshooting" site of Apache SOAP and the solution
suggested for this kind of error was not of much help.
I am stuck with this problem for quite sometime now and would
appreciate
if anyone can throw some light on this.
thanks
VS