cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: CXF JAX-RS can't handle spaces in the URL when used with Apache Tomcat
Date Fri, 24 May 2013 10:39:09 GMT
Hi-

Well, I was hoping you'd update us instead on how you've configured 
Tomcat not to decode URI :-).
This is definitely coming from Tomcat - if you find out how to configure 
it - let me know please, I'll update the docs

Cheers, Sergey
On 24/05/13 04:27, Bhaskar wrote:
> Hi,
>
> any update on this.
> Thanks in advance.
>
> Regards,
> Bhaskar
>
>
> On Tue, May 21, 2013 at 4:51 PM, Sergey Beryozkin <sberyozkin@gmail.com
> <mailto:sberyozkin@gmail.com>> wrote:
>
>     Hi,
>
>     Redirecting it to the users list.
>
>     I think you need to configure Tomcat not to decode URI, looks like
>     it decodes %20 before delegating to CXF.
>
>     Cheers, Sergey
>
>     On 21/05/13 12:10, Bhaskar wrote:
>
>         Hi CXF gurus,
>         I am getting the following error with the environment as Tomcat
>         7.0.40 &
>         CXF 2.7.5 & JRE 1.7.0_17.
>
>         same issue is observed with Tomcat 7.0.40 & CXF 2.7.4 & JRE
>         1.7.0_17.
>
>
>         May 21, 2013 4:26:02 PM
>         org.apache.catalina.core.__StandardWrapperValve invoke
>         SEVERE: Servlet.service() for servlet [CXFServlet] in context
>         with path
>         [/wac] threw exception
>         java.lang.__IllegalArgumentException: Illegal character in path
>         at index 85:
>         http://wacteam-vm3/wac/REST/__services/__assesmentTemplateService/__assessmentTemplate/test1/__assessmentTemplateDetails
>         <http://wacteam-vm3/wac/REST/services/assesmentTemplateService/assessmentTemplate/test1/assessmentTemplateDetails>
>         at java.net.URI.create(URI.java:__859)
>         at
>         org.apache.cxf.transport.__servlet.BaseUrlHelper.__getBaseURL(BaseUrlHelper.java:__49)
>         at
>         org.apache.cxf.transport.__servlet.ServletController.__getBaseURL(ServletController.__java:73)
>         at
>         org.apache.cxf.transport.__servlet.ServletController.__updateDestination(__ServletController.java:82)
>         at
>         org.apache.cxf.transport.__servlet.ServletController.__invoke(ServletController.java:__181)
>         at
>         org.apache.cxf.transport.__servlet.ServletController.__invoke(ServletController.java:__137)
>         at
>         org.apache.cxf.transport.__servlet.CXFNonSpringServlet.__invoke(CXFNonSpringServlet.__java:158)
>         at
>         org.apache.cxf.transport.__servlet.AbstractHTTPServlet.__handleRequest(__AbstractHTTPServlet.java:243)
>         at
>         org.apache.cxf.transport.__servlet.AbstractHTTPServlet.__doGet(AbstractHTTPServlet.__java:168)
>         at javax.servlet.http.__HttpServlet.service(__HttpServlet.java:621)
>         at
>         org.apache.cxf.transport.__servlet.AbstractHTTPServlet.__service(AbstractHTTPServlet.__java:219)
>         at
>         org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__305)
>         at
>         org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__210)
>         at com.ca.wac.auth.AuthFilter.__doFilter(Unknown Source)
>         at
>         org.apache.catalina.core.__ApplicationFilterChain.__internalDoFilter(__ApplicationFilterChain.java:__243)
>         at
>         org.apache.catalina.core.__ApplicationFilterChain.__doFilter(__ApplicationFilterChain.java:__210)
>         at
>         org.apache.catalina.core.__StandardWrapperValve.invoke(__StandardWrapperValve.java:222)
>         at
>         org.apache.catalina.core.__StandardContextValve.invoke(__StandardContextValve.java:123)
>         at
>         org.apache.catalina.__authenticator.__AuthenticatorBase.invoke(__AuthenticatorBase.java:472)
>         at
>         org.apache.catalina.core.__StandardHostValve.invoke(__StandardHostValve.java:171)
>         at
>         org.apache.catalina.valves.__ErrorReportValve.invoke(__ErrorReportValve.java:99)
>         at
>         org.apache.catalina.valves.__AccessLogValve.invoke(__AccessLogValve.java:953)
>         at
>         org.apache.catalina.core.__StandardEngineValve.invoke(__StandardEngineValve.java:118)
>         at
>         org.apache.catalina.connector.__CoyoteAdapter.service(__CoyoteAdapter.java:408)
>         at
>         org.apache.coyote.ajp.__AjpProcessor.process(__AjpProcessor.java:200)
>         at
>         org.apache.coyote.__AbstractProtocol$__AbstractConnectionHandler.__process(AbstractProtocol.java:__589)
>         at
>         org.apache.tomcat.util.net
>         <http://org.apache.tomcat.util.net>.__JIoEndpoint$SocketProcessor.__run(JIoEndpoint.java:310)
>         at
>         java.util.concurrent.__ThreadPoolExecutor.runWorker(__ThreadPoolExecutor.java:1145)
>         at
>         java.util.concurrent.__ThreadPoolExecutor$Worker.run(__ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.__java:722)
>         Caused by: java.net.URISyntaxException: Illegal character in
>         path at index
>         85:
>         http://wacteam-vm3/wac/REST/__services/__assesmentTemplateService/__assessmentTemplate/test1/__assessmentTemplateDetails
>         <http://wacteam-vm3/wac/REST/services/assesmentTemplateService/assessmentTemplate/test1/assessmentTemplateDetails>
>         at java.net.URI$Parser.fail(URI.__java:2829)
>         at java.net.URI$Parser.__checkChars(URI.java:3002)
>         at java.net.URI$Parser.__parseHierarchical(URI.java:__3086)
>         at java.net.URI$Parser.parse(URI.__java:3034)
>         at java.net.URI.<init>(URI.java:__595)
>         at java.net.URI.create(URI.java:__857)
>         ... 29 more
>
>
>         Can you please help if it a real issue with CXF.
>         Thanks in advance.
>
>
>
>     --
>     Sergey Beryozkin
>
>     Talend Community Coders
>     http://coders.talend.com/
>
>     Blog: http://sberyozkin.blogspot.com
>
>
>
>
> --
> Keep Smiling....
> Thanks & Regards
> Bhaskar.
> Mobile:9866724142


Mime
View raw message