Skip to main content



      Home
Home » Archived » Orion (Archived) » Eclipse Orion with JAX-RS Connector
Eclipse Orion with JAX-RS Connector [message #1692084] Mon, 13 April 2015 06:17 Go to next message
Eclipse UserFriend
Hi,
I would want to use/integrate the OSGi-JAX-RS connector @ http://eclipsesource.com/blogs/2014/02/04/step-by-step-how-to-bring-jax-rs-and-osgi-together/
with Eclipse Orion application.Here is how i went about to integrate:
a. Install the Orion .target system
b. Get all the sources from its GIT root.
c. Updated the target definition with JAX-RS Connector p2 repository.
d. Updated the available launch configuration called web-ide.launch with details of JAX-RS connector plug-ins(Connector, publisher, jersey-all etc) and Example JAX RS Example REST Service application.
e. When i launched it, it launched fine with the new bundles in active state.However it used the port 'org.eclipse.equinox.http.jetty.http.port' for launching the jetty and not 'org.osgi.service.http.port'
f. When launched using -Dorg.osgi.service.http.port removing the other, it used the default port number 8080.
g. Orion application launched fine on http://localhost:9090 while my REST service @ http://localhost:9090/services/hello threw the following error:
HTTP ERROR: 404

Problem accessing /services/hello. Reason:

ProxyServlet: /services/hello

Am i doing the right thing.
Please help me resolve this integration.
Regards,
Murali

[Updated on: Mon, 13 April 2015 06:28] by Moderator

Re: Eclipse Orion with JAX-RS Connector [message #1692085 is a reply to message #1692084] Mon, 13 April 2015 06:22 Go to previous messageGo to next message
Eclipse UserFriend
No Message Body

[Updated on: Mon, 13 April 2015 06:25] by Moderator

Re: Eclipse Orion with JAX-RS Connector [message #1692199 is a reply to message #1692085] Tue, 14 April 2015 05:31 Go to previous message
Eclipse UserFriend
Hi,
I figured it out myself and the following helped me resolve the issue.
While registering the REST service, please set the service property 'http.port' with the port of your choice.(I chose the same port used by 'org.eclipse.equinox.http.jetty.http.port').
Regards,
Murali
Previous Topic:How to create a import file wizard in orion
Next Topic:Starting orion
Goto Forum:
  


Current Time: Tue Jun 24 16:33:04 EDT 2025

Powered by FUDForum. Page generated in 0.04671 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top