[
http://jira.jboss.com/jira/browse/JBAS-4210?page=comments#action_12356506 ]
Remy Maucherat commented on JBAS-4210:
--------------------------------------
I cannot reproduce this at this time, using the provided web.xml
(
http://localhost:8080/[webappname]/ServletTest produces java.lang.ClassNotFoundException:
org.jboss.test.ws.jaxrpc.jbws1093.ServletTest). I did look at the deployer code, which
seems to be parsing and processing the servlet mappings correctly.
This situation is a very common, so this issue is likely not as simple as it seems. For
example, some of the webapps provided with JBoss use multiple servlets, including the
jmx-console.
HTTP request dispatched to the wrong servlet
--------------------------------------------
Key: JBAS-4210
URL:
http://jira.jboss.com/jira/browse/JBAS-4210
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public(Everyone can see)
Reporter: Thomas Diesler
Here is a web.xml that contains more than one servlet
<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>
<servlet-name>ServletTest</servlet-name>
<servlet-class>org.jboss.test.ws.jaxrpc.jbws1093.ServletTest</servlet-class>
</servlet>
<servlet>
<servlet-name>TestEndpoint</servlet-name>
<servlet-class>org.jboss.ws.integration.jboss50.JBossServiceEndpointServlet</servlet-class>
<init-param>
<param-name>ServiceEndpointImpl</param-name>
<param-value>org.jboss.test.ws.jaxrpc.jbws1093.TestEndpointImpl</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>ServletTest</servlet-name>
<url-pattern>/ServletTest</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>TestEndpoint</servlet-name>
<url-pattern>/TestEndpoint</url-pattern>
</servlet-mapping>
</web-app>
A request to
http://localhost:8080/jaxrpc-jbws1093/ServletTest
is incorrectly dispatched to the TestEndpoint
22:48:15,930 ERROR [[ServletTest]] Servlet.service() for servlet ServletTest threw
exception
org.jboss.ws.WSException: Cannot obtain endpoint for:
jboss.ws:context=jaxrpc-jbws1093,endpoint=ServletTest
at
org.jboss.ws.core.server.AbstractServiceEndpointServlet.initServiceEndpoint(AbstractServiceEndpointServlet.java:161)
at
org.jboss.ws.integration.jboss50.JBossServiceEndpointServlet.initServiceEndpoint(JBossServiceEndpointServlet.java:49)
at
org.jboss.ws.core.server.AbstractServiceEndpointServlet.service(AbstractServiceEndpointServlet.java:73)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
To reproduce run
[tdiesler@tdvaio jbossws-tests]$ ant
-Dtest=org.jboss.test.ws.jaxrpc.jbws1093.JBWS1093TestCase one-test
one-test:
[junit] Running org.jboss.test.ws.jaxrpc.jbws1093.JBWS1093TestCase
[junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 6.324 sec
[junit] Test org.jboss.test.ws.jaxrpc.jbws1093.JBWS1093TestCase FAILED
This seems to be related to the latest updates to the tomcat service
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira