Well, first get all the required JAR files -
Xerces.jar
Activation.jar
bsf.jar
js.jar
soap.jar

downloaded and installed (as instructed).

Now if you are using APACHE WEBSERVER and TOMCAT, place all these JAR files in the 
webapps/soap/WEB-INF/lib
directory.

Edit the "tomcat.bat" in the <Tomcat>/bin directory and make the CLASSPATH to point to 
the location which has
the JAR Files.

Restart the service and you should be able to access the test URL fine.

Hope this helps.
VS



Aurore Michiels wrote:

> Hi,
>
> How did you manage to have the URL
> http://localhost:8080/soap/servlet/rpcrouter works fine. With me it's not the case.
> It display this message:
> HTTP status 503
>
> message: Servlet rpcrouter is currently unavailable
> description: The requested service (Servlet rpcrouter is currently unavailable) is 
>not currently available.
> Do you know what mistake did I do ?
> Thanks
> Aurore
>
> -----Original Message-----
> From: Vibha Sridhar [mailto:[EMAIL PROTECTED]]
> Sent: mercredi 3 avril 2002 12:07
> To: [EMAIL PROTECTED]
> Subject: Apache Soap RPCRouter problems
>
> 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
begin:vcard 
n:Sridhar;Vibha
tel;cell:+91-98452-84242
tel;fax:+91-80-2231794
tel;work:+91-80-2298989 x 87576
x-mozilla-html:TRUE
url:www.iplanet.com/trustbase
org:<a  href="http://www.iplanet.com";><img border=0 src="http://www.iplanet.com/images/vcards/iplanetBC4.gif";></a>
version:2.1
email;internet:[EMAIL PROTECTED]
title:Senior Technical Marketing Consultant, APAC
adr;quoted-printable:;;Sun Microsystems India Pvt Ltd.=0D=0A7th Floor, Divya Shree Chambers,=0D=0AOff Langford Road,=0D=0AShanthinagar;Bangalore;Karnataka;560025;India
fn:Vibha Sridhar
end:vcard

Reply via email to