cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xi Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-3573) CXF/JAX-RS can not handle encoded urls that contain a jsessionid
Date Wed, 08 Jun 2011 07:38:58 GMT

    [ https://issues.apache.org/jira/browse/CXF-3573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13045823#comment-13045823
] 

Xi Zhang commented on CXF-3573:
-------------------------------

Hi,
for your request, I have no annotated Path direct in the java resource class, I configured
the path only in the Spring ApplicationContext thru the address attribute like below

	<jaxrs:server id="reviewHistoryService" address="/ReviewHistory">
		<jaxrs:serviceBeans>
			<ref bean="reviewHistoryResource" />
		</jaxrs:serviceBeans>
	</jaxrs:server>
        <bean id="reviewHistoryResource" ...

by the way , if I enter a url to invoke REST services without the jsessionid, I can get the
data response correctly, the JAX-RS stack can map this URL to matching operations.

Hopefully this can help you to clarify the issue.

Regards 

> CXF/JAX-RS can not handle encoded urls that contain a jsessionid
> ----------------------------------------------------------------
>
>                 Key: CXF-3573
>                 URL: https://issues.apache.org/jira/browse/CXF-3573
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.2.12
>            Reporter: Xi Zhang
>
> CXF/JAX-RS stack can not handle encoded urls that contain a jsessionid, 
> I get the warning in the logger after ich try to get data thru REST URL that contains
a session cookie lsited below
> http://localhost:8099/workplace/service;jsessionid=ctjy3rhkbyya1j73rceiw2rup?patientId=1109&responseTimeZone=America%2FLos_Angeles&noCache=1307087541416
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
> WARNING: No operation matching request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is
found, HTTP Method : GET, ContentType : */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> Jun 7, 2011 4:58:40 PM org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper toResponse
> WARNING: WebApplicationException has been caught : no cause is available
> 2011-06-07 16:58:40,457 WARN  o.a.cxf.jaxrs.utils.JAXRSUtils[]: No operation matching
request path /;jsessionid=ctjy3rhkbyya1j73rceiw2rup is found, HTTP Method : GET, ContentType
: */*, Accept : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8,.
> 2011-06-07 16:58:40,473 WARN  o.a.c.j.i.WebApplicationExceptionMapper[]: WebApplicationException
has been caught : no cause is available

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message