[
https://issues.apache.org/jira/browse/CXF-4465?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp deleted CXF-4465:
-----------------------------
> Multiple servlet mapping does not work when resolving JAXRS URL
> ---------------------------------------------------------------
>
> Key: CXF-4465
> URL: https://issues.apache.org/jira/browse/CXF-4465
> Project: CXF
> Issue Type: Bug
> Environment: jdk 1.6
> Reporter: Andy Yeung
> Priority: Minor
>
> If I define multiple servlet mapping for the CXF Servlet like below
> <servlet-mapping>
> <servlet-name>cxf</servlet-name>
> <url-pattern>/service/*</url-pattern>
> </servlet-mapping>
> <servlet-mapping>
> <servlet-name>cxf</servlet-name>
> <url-pattern>/ws/*</url-pattern>
> </servlet-mapping>
> At HttpUtils.getBaseAddress
> getEndpointAddress always used the first URL which was called and recorded.
> which may not matched the rawpath prefix which use another servlet mapping.
> If the First call to a JAXRS service is
> http://127.0.0.1:8080/test/service/path
> Then if I call http://127.0.0.1:8080/test/ws/path
> getEndpointAddress return http://127.0.0.1:8080/test/service/ rather than
> http://127.0.0.1:8080/test/ws/
> This causes the engine failed to resolve the JAXRS service using another url.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira