Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java_server thread: SOAP 2.2 and Tomcat NullPointerException in rpcrouter


Message #1 by "chrisrobinson" <chrisrobinson@n...> on Mon, 14 Jan 2002 22:24:52 -0000
This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C19D4A.49623C40
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

I am trying to prototype web services as part of an EAI project.  I am 
trying to use my limited knowledge of Java to to get something working 
on Red Hat Linux 6.2.
I'm using the Wrox book "Professional Java Soap", but am stuck at the 
point of testing the rpcrouter.  I have followed all of the instructions 
but when I test the router I get :-

Error: 500
Location: /soap/servlet/rpcrouter
Internal Servlet Error:

java.lang.NullPointerException
 at java.util.Hashtable.put(Hashtable.java)
 at org.apache.tomcat.core.Context.setAttribute(Context.java:411)
 at 
org.apache.tomcat.facade.ServletContextFacade.setAttribute(ServletContext
Facade.java:116)
 at 
org.apache.soap.server.http.ServerHTTPUtils.setServletClassLoaderIntoCont
ext(ServerHTTPUtils.java:144)
 at 
org.apache.soap.server.http.RPCRouterServlet.init(RPCRouterServlet.java:1
73)
........

The admin client does run however.  I have checked my Tomcat install and 
classpath and it looks okay.  I have successfully got my own Servlets 
working under this implementation so it can;t be far wrong.

I am using :-

JDK 1.1.7
Apache SOAP 2.2
Tomcat 3.2.3
Red Hat 6.2
Xerces 1.4.3
java mail 1.2
jaf 1.0.1

The only difference from the book is the version of Java that I am 
using.  The Apache documentation for Soap 2.2 states that this is okay 
(http://xml.apache.org/soap/docs/index.html), but the book says that 
this is incorrect.

Can anybody help?  I am stuck at chapter two and am gagging to get my 
first SOAP service written.

Thanks,

Chris.





  Return to Index