Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error [org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor] - No root resource matching request path /route/restservice/getQuote has been found, Relative Path: /restservice/getQuote. Please enable FINE/TRACE log level for more details. #1

Open
szarekar opened this issue Mar 6, 2015 · 7 comments

Comments

@szarekar
Copy link

szarekar commented Mar 6, 2015

Hi i am getting this error on calling

http://localhost:9090/route/restservice/getQuote

from POSTMAN REST CLIENT

ERROR

WARN [org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor] - No root resource matching request path /route/restservice/getQuote has been found, Relative Path: /restservice/getQuote. Please enable FINE/TRACE log level for more details.
qtp487436278-16 WARN [org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper] - javax.ws.rs.NotFoundException: HTTP 404 Not Found

@gcolman
Copy link
Owner

gcolman commented Mar 6, 2015

Check that your cxfrs server definition has the /route path (or remove it)
cxf:rsServer id="restFrontend" address="http://localhost:9090/route" serviceClass="com.mycompany.rest.GetQuoteResource"

Cheers
Graeme.

@szarekar
Copy link
Author

szarekar commented Mar 6, 2015

Yes It is the same . I checked.

<cxf:rsServer id="restFrontend" address="http://localhost:9090/route" serviceClass="com.mycompany.rest.GetQuoteResource" />

@gcolman
Copy link
Owner

gcolman commented Mar 6, 2015

I put a video together that builds up this example if you want to take a look. https://www.youtube.com/watch?v=_QYeuJUvTEI

If this does not help then let me know aand I can pick up again tomorrow.

@szarekar
Copy link
Author

szarekar commented Mar 7, 2015

I got fresh download and build this project again.Getting this error now
org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://www.webservicex.net/stockquote.asmx with statusCode: 415
at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:228)
at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)
at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:110)
at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:72)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)
at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)
at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:398)
at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)
at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:105)
at org.apache.camel.processor.MulticastProcessor.doProcessParallel(MulticastProcessor.java:712)
at org.apache.camel.processor.MulticastProcessor.access$200(MulticastProcessor.java:83)
at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:293)
at org.apache.camel.processor.MulticastProcessor$1.call(MulticastProcessor.java:278)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:662)

############### have attached snapshot of my blueprint.xml file
blueprint

@gcolman
Copy link
Owner

gcolman commented Mar 7, 2015

Strange, I have just done the same and works fine. The HTTP 415 indicates that the content type is not the same as the end service is expecting. Trey setting the endpoint explicitly be adding something like:

@szarekar
Copy link
Author

i added above in blueprint.xml file. I am still getting the same error





application/xml


/soap:Envelope/soap:Body/ws:GetQuoteResponse/ws:GetQuoteResult

@diephil
Copy link

diephil commented Jul 5, 2016

Hello, did you resolve this issue szarekar?
Best regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants