• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java JAX-RPC

 
John Cox
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Been trying to get the 1.4 J2EE tutorial working for JAX-RPC and followed all the steps but not getting the service running. http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JAXRPC3.html If anyone has gotten this service running please contact me with how.

Getting the following message from the server.

HTTP Status 404 - Servlet HelloImpl is not available

type Status report

message Servlet HelloImpl is not available

description The requested resource (Servlet HelloImpl is not available) is not available.
Apache Tomcat/5.0.28

or
HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Class helloservice.HelloImpl is not a Servlet
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)

root cause

java.lang.ClassCastException
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:534)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.servlet.ServletException: Class helloservice.HelloImpl is not a Servlet

It appears that something is wrong with your implementation of HelloImpl - where did the code come from? What does HelloImpl extend? Can you get anthing else in the tutorial running?
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic