There are many potential problems so it is hard to diagnose with this 
information. 

There are extensive tutorials available on [OSGi enRoute][1] that will give you 
enough understanding to debug your problem. The default template is actually a 
REST interface from a Javascript GUI.

Kind regards,

        Peter Kriens

[1]: http://enroute.osgi.org <http://enroute.osgi.org/>

> On 1 aug. 2016, at 06:49, <manoj.vrajam...@wipro.com> 
> <manoj.vrajam...@wipro.com> wrote:
> 
> Hi All,
> 
> I am new to OSGi. I am trying to write a sample interface hello (consisting 
> of a method helloWorld() that returns a simple "Hello" string) accessible via 
>  REST API.
> 
> * I am on Eclipse (mars) running Equinox 4.2 OSGi
> * I have installed Jersey.all ( implementation of JAX-RS- API)
> * I have installed the OSGI-JAX-RS connector ( to publish the interface as a 
> REST API)
> * I also have the Jetty HTTP Service running
> 
> But I am unable to get the desired results when I say:
> "http://localhost:9090/services/hello";  (9090 has been configured in the run 
> configuration, Arguments Tab) from a browser
> 
> It gives the following error... Where am I going wrong?
> 
> ============================================
> HTTP ERROR 404
> 
> Problem accessing /services/hello Reason:
> 
> Proxy servlet  /services/hello
> 
> Powered by Jetty://
> ============================================
> Thanks,
> Manoj
> The information contained in this electronic message and any attachments to 
> this message are intended for the exclusive use of the addressee(s) and may 
> contain proprietary, confidential or privileged information. If you are not 
> the intended recipient, you should not disseminate, distribute or copy this 
> e-mail. Please notify the sender immediately and destroy all copies of this 
> message and any attachments. WARNING: Computer viruses can be transmitted via 
> email. The recipient should check this email and any attachments for the 
> presence of viruses. The company accepts no liability for any damage caused 
> by any virus transmitted by this email. www.wipro.com
> _______________________________________________
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to