4 Replies Latest reply on Jan 23, 2006 10:41 AM by Derek Cornelius

    4.0.3-SP1 Example Web Service in Web Container not working

    Derek Cornelius Newbie

      Hi,

      I am following the example web service from the Admin Guide and I am getting a ClassCastException from Tomcat, when it invokes the servlet. Tomcat believes the Pojo is a regular servlet. ws4ee does not register the web service at all.

      Any help would be appreciated.

      2006-01-16 22:31:14,375 [http-0.0.0.0-8080-1] INFO org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/fcd]
      Marking servlet HelloWorldWS as unavailable
      2006-01-16 22:31:14,375 [http-0.0.0.0-8080-1] ERROR org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/fcd].[HelloWorldWS]
      Allocate exception for servlet HelloWorldWS
      java.lang.ClassCastException
      at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)
      at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:750)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:130)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:534)