Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Trouble getting equinox.http.jetty to autostart
Trouble getting equinox.http.jetty to autostart [message #1083243] Fri, 09 August 2013 17:37 Go to next message
Mescg Roupe is currently offline Mescg RoupeFriend
Messages: 2
Registered: August 2013
Junior Member
Greetings-

Just wondered if anyone else had run into the problem of setting up an OSGI project including the org.eclipse.equinox.http.jetty and the org.eclipse.equinox.http.servlet bundles where these bundles do not get into the ACTIVE state and instead remain in the STARTING state?

I tried adding org.eclipse.equinox.http.jetty.autostart=true to the config.ini (and -D to the vm args) but they remain in the state of STARTING.

Of course, if I stop and restart them in the console they go into the ACTIVE state, but I cannot do this in production, i.e. they have to start on their own automatically.
Re: Trouble getting equinox.http.jetty to autostart [message #1083255 is a reply to message #1083243] Fri, 09 August 2013 17:59 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
Are you using p2 or just using config.ini to list the osgi.bundles property for the bundles you want to be installed in the framework? If you are just using osgi.bundles then you have to stick an @start onto the bundle(s) you want started. For example:

osgi.bundles=com.acme.foo.bar@1:start, org.eclipse.equinox.http.jetty@1:start, com.acme.foo.baz


If you are using p2 then the situation is a bit more tricky and you likely would run into bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=253244

Tom

[Updated on: Fri, 09 August 2013 18:00]

Report message to a moderator

Re: Trouble getting equinox.http.jetty to autostart [message #1083367 is a reply to message #1083255] Fri, 09 August 2013 21:32 Go to previous message
Mescg Roupe is currently offline Mescg RoupeFriend
Messages: 2
Registered: August 2013
Junior Member
The configuration parameter worked, thanks very much!
In case anyone else may be interested, we are using the tycho maven plugin to build the production deployable and simply added the following to the .product file:

<configurations>
<plugin id="org.apache.felix.configadmin" autoStart="true" startLevel="1" />
<plugin id="org.apache.felix.fileinstall" autoStart="true" startLevel="1" />
<plugin id="org.eclipse.equinox.ds" autoStart="true" startLevel="2" />
<plugin id="org.eclipse.equinox.http.jetty" autoStart="true" startLevel="1" />
<plugin id="org.eclipse.equinox.http.servlet" autoStart="true" startLevel="1" />
</configurations>
Previous Topic:Installing fragment depending on the versions of already installed bundles
Next Topic:Minify equinox
Goto Forum:
  


Current Time: Tue Mar 19 03:10:07 GMT 2024

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

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

Back to the top