[jboss-user] [JBossWS] - Re: Servlet regarded as ServiceEndPoint

jsb do-not-reply at jboss.com
Thu Mar 20 19:37:40 EDT 2008


I just ran into this using JBoss AS 4.0.5 with included JBossWS, and my servlet name DOES end with Servlet... turns out my web xml formatting was causing the endsWith("Servlet") to see more than the name string.

Changing:
<servlet>
  |    <servlet-name>MyServlet</servlet-name>
  |     <servlet-class>
  |         com.example.MyServlet
  |     </servlet-class>
  |         ...
  | </servlet>
..to:
<servlet>
  |    <servlet-name>MyServlet</servlet-name>
  |     <servlet-class>com.example.MyServlet</servlet-class>
  |         ...
  | </servlet>
...corrected the problem for me.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138203#4138203

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138203



More information about the jboss-user mailing list