Topic
  • No replies
D7F4_Ranjeeth_PT
D7F4_Ranjeeth_PT
1 Post

Pinned topic Wsdl publishing java.lang.ClassCastException: with javax.servle

‏2012-08-23T12:50:51Z |
I am using WAS 7.0 Developer version. I am not able to get the wsdl file.
FFDC error log is attached.It works fine with jboss.

FFDC Error:
FFDC Exception:java.lang.ClassCastException SourceId:com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet ProbeId:213 Reporter:com.ibm.ws.webcontainer.servlet.ServletWrapper$1@6e986e98
java.lang.ClassCastException: com.railcorp.cncs.wims.eventmanagement.ws.WimsEventManagementWS incompatible with javax.servlet.Servlet
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1682)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1673)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.initialize(ServletWrapper.java:1581)
at com.ibm.wsspi.webcontainer.extension.WebExtensionProcessor.createServletWrapper(WebExtensionProcessor.java:98)

My web.xml:

<!-- Web Service -->
<servlet>
<servlet-name>WimsEventManagementWS</servlet-name>
<servlet-class>com.railcorp.cncs.wims.eventmanagement.ws.WimsEventManagementWS</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>WimsEventManagementWS</servlet-name>
<url-pattern>/WimsEventManagementWS</url-pattern>
</servlet-mapping>

WimsEventManagementWS is webservice created using @webservice and @webmethod annotation.

I am using struts 2.0 framework