Equinox jetty in RCP application [message #128912] |
Thu, 09 April 2009 13:41  |
Eclipse User |
|
|
|
Hi!
How can I make sure jetty is started and has registered all my (JSP)
servlets which are declared using the
org.eclipse.equinox.http.registry.servlets extension point?
I'm passing the -Dorg.eclipse.equinox.http.jetty.autostart=true property
(set in the .product file) and do the following in my Application.start()
method:
Bundle bundle = Platform.getBundle("org.eclipse.equinox.http.jetty");
if(bundle.getState() == Bundle.RESOLVED) {
bundle.start(Bundle.START_TRANSIENT);
}
bundle = Platform.getBundle("org.eclipse.equinox.http.registry");
if((bundle.getState() & Bundle.RESOLVED) == 0) {
bundle.start(Bundle.START_TRANSIENT);
while that makes jetty start, my servlets are still not registered when
starting the exported RCP product. It works however when running within
eclipse. Is there something I might have missed? BTW: Is there a more
elegant way of making sure the jetty and http.registry bundles are started?
Cheers,
Florian
--
DI Florian Hackenberger
florian@hackenberger.at
www.hackenberger.at
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04395 seconds