[jboss-jira] [JBoss JIRA] Resolved: (JBAS-4210) HTTP request dispatched to the wrong servlet
Darran Lofthouse (JIRA)
jira-events at lists.jboss.org
Sat Apr 14 12:53:08 EDT 2007
[ http://jira.jboss.com/jira/browse/JBAS-4210?page=all ]
Darran Lofthouse resolved JBAS-4210.
------------------------------------
Resolution: Rejected
Assignee: Darran Lofthouse
This is a bug in JBossWS, the servlet is being incorectly configured as an endpoint which is why when it is accessed the JBossServiceEndpointServlet is called.
> 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
> Assigned To: Darran Lofthouse
>
> 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 at 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
More information about the jboss-jira
mailing list