I am trying to get my CXF application deployed to Jetty. I am trying to
also use Spring by following the Spring example although that is for a SOAP
based service. As a FYI, my code works on the internal "Server" test server
i found in the examples.
I created a beans.xml in the WEB-INF and made the
<jaxrs:server id="accountService" address="/myService">
<jaxrs:serviceBeans>
<ref bean="accountsBean" />
</jaxrs:serviceBeans>
</jaxrs:server>
<bean id="accountsBean" class="com.myCompany.ws.AccountsService" />
"address" matches the @Path("/myService") in my service implemetation.
Jetty was complaining about that before as it was teh "service1" from the
example. It seems to like that it matches now. I have a GET method on that
Class with a @Path("/accounts/{id}") and a member variable
@PathParam("id")
private Integer id;
to hold the id parameter.
I build and deploy my WAR with Maven to Jetty plugin. When i invoke the
url: http://localhost:9090/my-service/myService/accounts/19 i get the
following error: WARNING: .No root resource matching request path
/accounts/19 is found.
Can anyone help me out?