Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Orion (Archived) » Eclipse Orion with JAX-RS Connector
Eclipse Orion with JAX-RS Connector [message #1692084] Mon, 13 April 2015 10:17 Go to next message
Murali Kris is currently offline Murali KrisFriend
Messages: 27
Registered: July 2009
Junior Member
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 10:28]

Report message to a moderator

Re: Eclipse Orion with JAX-RS Connector [message #1692085 is a reply to message #1692084] Mon, 13 April 2015 10:22 Go to previous messageGo to next message
Murali Kris is currently offline Murali KrisFriend
Messages: 27
Registered: July 2009
Junior Member
No Message Body

[Updated on: Mon, 13 April 2015 10:25]

Report message to a moderator

Re: Eclipse Orion with JAX-RS Connector [message #1692199 is a reply to message #1692085] Tue, 14 April 2015 09:31 Go to previous message
Murali Kris is currently offline Murali KrisFriend
Messages: 27
Registered: July 2009
Junior Member
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: Thu Apr 25 11:18:51 GMT 2024

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

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

Back to the top