8 Replies Latest reply on Nov 14, 2007 2:57 PM by Alessio Soldano

    JAX-RPC Web Services - Class is not a servlet error - How to

    SRK PRIV Newbie

      Can anyone help me resolve this 'Class is not a servlet' issue that I am facing. I am running this in JBoss App Server 4.2.1.GA and I have the Webservices.xml, mapping.xml, wsdl and web.xml available in the respective directories?

      Do I have to do any further config changes or something to make this work?

      javax.servlet.ServletException: Class com.erp.core.ws.hello.HelloServlet is not a Servlet
      org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      java.lang.Thread.run(Thread.java:595)


      root cause

      java.lang.ClassCastException: com.erp.core.ws.hello.HelloServlet



      Please let me know.