Hi

you say that jaxrs:server/@address matches that of @Path("/myService") in my
service implementation.

so it should be then

http://localhost:9090/my-service/myService/myService/accounts/19

you can probably drop /myService from either jaxrs:address (use '/') or from
the root resource class.

> @PathParam("id") private Integer id;

it would not be thread-safe unless you use a per-request resource class
which is instantiated on every request. At the moment we can only support
per-requests without Spring...

I'll be working on making sure it works with Spring too.

thanks, Sergey



Nathaniel Auvil wrote:
> 
> 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?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Trying-to-get-a-simple-JAXWS-RS-Service-deployed-to-Jetty-tp24219816p24222693.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to