[jboss-user] [JBoss Web Services] New message: "JBOss5.1.0-GA WS endpoint generated with wsconsume does not deploy"
Michael Eibeck
do-not-reply at jboss.com
Tue Jan 12 05:39:41 EST 2010
User development,
A new message was posted in the thread "JBOss5.1.0-GA WS endpoint generated with wsconsume does not deploy":
http://community.jboss.org/message/519464#519464
Author : Michael Eibeck
Profile : http://community.jboss.org/people/skymic
Message:
--------------------------------------------------------------
Hi,
I am using JBoss5.1.0-GA with Sun's JDK1.6.0_17.
I generated java classes from a WSDL using wsconsume. All worked fine.
For the WSEndpoint I implemented the generated interface. Then I deployed the generated classes as a war to JBoss.
JBoss then marked my servlet as unavailable and threw the error:
10:35:19,327 INFO [[/WS_Server]] Marking servlet WSServlet as unavailable
10:35:19,327 ERROR [[/WS_Server]] Servlet /WS_Server threw load() exception
java.lang.ClassCastException: ch.skyguide.aim.interfaces.ws.server.SDOCustomerInterfacesImpl cannot be cast to javax.servlet.Servlet
I am sure this is because I provided the following web.xml in the war file:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
<servlet>
<description>WS endpoint</description>
<display-name>WSServlet</display-name>
<servlet-name>WSServlet</servlet-name>
<servlet-class>ch.skyguide.aim.interfaces.ws.server.SDOCustomerInterfacesImpl</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>WSServlet</servlet-name>
<url-pattern>/services/SDOCustomerInterfacesImpl</url-pattern>
</servlet-mapping>
...
Well, the class given in the tags <servlet-class>ch.skyguide.aim.interfaces.ws.server.SDOCustomerInterfacesImpl</servlet-class>
is my Implementation of the generated WS-endpoint and does definitely not implement javax.servlet.Servlet.
I read in the JBoss documents that the web.xml has to be filled in like that. But maybe its wrong.
How do you deploy a wsconsume generated endpoint to JBoss5.1.0-GA? How should the web.xml look like?
Does anyone have an idea?
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/519464#519464
More information about the jboss-user
mailing list