Hi

On Wed, May 19, 2010 at 2:29 PM, Georgi Dimitrov <[email protected]> wrote:

>
> Hi Sergey,
>
> thank you for your help despite my lack of experience :)
>
> I have checked out from svn the samples dir (that is somewhere inside
> ...cxf/dosgi/)
> Then I browsed into the folder greeter_rest and ran "mvn" without
> arguments. It created the target bundles:
> cxf-dosgi-ri-samples-greeter-rest-interface-1.1.jar
> cxf-dosgi-ri-samples-greeter-rest-impl-1.1.jar
>
>
Can you confirm that it is working without you modifying anything ?
By the way, note that greeter-impl registers GreeterService &
GreeterService2. GreeterService has JAXRS annotations, GreeterService2 does
not. For the latter one be recognized, greeter-rest-interface ships a model
resource (because GreeterService interface is declared there)

>
>

>
> This means that everything is OK with the greeter_rest bundle. And I have 2
> Services - greeter and greeter2 Well so far so good. However when I go to
> the URL for the RESTful version of a service like for example:
> http://localhost:23990/greeter i get:
>
>  HTTP ERROR: 404  ProxyServlet: /greeter
>
> RequestURI=/greeter
>   Powered by Jetty://
>  I've not described greeter in the sd.xml (since its Activator does that in
> the props it writes - am I right?). I however described the greeter2 in
> sd.xml like so:
>
>
>
You  need  use http://localhost:23990/greeter/greeter/greeting/Fred, given
that the endpoint is published at  http://localhost:23990/greeter and
GreeterResource is also annotated with two extra Path annotations



>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>  <add-property name="service.exported.interfaces"
>
>
>
>
>
>
>
>
>
>
>
>  value="org.apache.cxf.dosgi.samples.greeter.rest.GreeterService2" />
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Then when I go to: http://localhost:23990/greeter2 i get:
>
> XML Parsing Error: no element found
> Location: http://localhost:23990/greeter2
> Line Number 1, Column 1:
> ^
>
>
 http://localhost:23990/greeter2/greeter/greeting/Fred should work

cheers, Sergey

Reply via email to