cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bhaskar <bhaskar1...@gmail.com>
Subject CXF JAX-RS can't handle spaces in the URL when used with Apache Tomcat
Date Tue, 21 May 2013 11:10:01 GMT
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
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.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
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.

-- 
Thanks & Regards
Bhaskar.
Mobile:9866724142

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message