RAP in standalone OSGi javax.servlet import constrainthttps://www.eclipse.org/forums/index.php/mv/msg/487973/1060370/#msg_1060370
I know similar issues have been posted numerous times in the past, but none of them seem to directly address the situation I'm facing, so I wonder if someone could point me in the right direction... I'm sure it is something simple to fix...

Firstly, here is the output from the OSGI console, which I'm launching from a Command Prompt in Windows:

As you can see, then explicit start of bundle 31 (rap.rwt) is failing because of javax.servlet. Various other issues, but this is the root issue I think.

Now, I've got org.eclipse.equinox.servletbridge.extensionbundle included as a Bundle, which you can see at Bundle/Fragment 36 as RESOLVED. I believe this is correct, as the extensionbundle is a Fragment, so cannot be started as such?

extensionbundle exports javax.servlet, in this case with a version of "2.5", as you can see from the manifest within it:

Thanks, John
]]>John Gymer2013-05-24T10:31:33-00:00Re: RAP in standalone OSGi javax.servlet import constrainthttps://www.eclipse.org/forums/index.php/mv/msg/487973/1060426/#msg_1060426
the servletbridge extension bundle is only needed in a WAR deployment.
It's purpose is to expose the servlet container's javax.servlet to the
OSGi environment. When you include the extensionbundle in a normal OSGi
environment it will lead to exactly the problem you described, because
this bundle pretends to provide javax.servlet but it doesn't (it only
does in a servletbridge environment).

BTW, the extensionbundle has been removed from the platform in Kepler.
It can be created at runtime and is not needed in the platform at all
(however in a WAR deployment, it has to be started).

Professional services for RAP and RCP?http://eclipsesource.com/services/rap/]]>Ralf Sternberg2013-05-24T15:18:47-00:00Re: RAP in standalone OSGi javax.servlet import constrainthttps://www.eclipse.org/forums/index.php/mv/msg/487973/1061207/#msg_1061207
So, I removed the servlet extension bundle, and added in javax.servlet, and this resolved the import problem and allowed all bundles to start up.
However, I'm not sure if my bundle is available, and if so, how do I connect to it's entry point?
By the way, I've moved on to Tabris for the time-being, but I assume the principle is the same.
Here is my latest attempt:

I can see there are reported issues above, but am loathed to add the eclipse bundles in, as I cannot see why they would genuinely be required, and the knock-on chain is quite long!

In my 'rapide' bundle is my application's Entry Point, defined by its manifest with an appropriate Activator. I know the code is correct because I'm able to use this within a WAR in WebLogic (for example).

I tried the above manifest with and without the javax.servlet bundle dependency, which didn't appear to have any effect either way.

I expected to be able to access my application from a browser with url:
"http://127.0.0.1:9090/demo" where 'demo' is my Entry Point, but I'm unsure where to specify the port (which could simply be the only problem I'm left with!). If I specify "-console 9090" when starting OSGi, I get no console (so cannot use 'ss' for example), and my web browser (Chrome in this case), thinks I'm trying to download a file with the above URL.

So, all in all, I'm getting a bit confused, so would appreciate further pointers if you are able!

Many thanks, John
]]>John Gymer2013-05-30T14:19:16-00:00Re: RAP in standalone OSGi javax.servlet import constrainthttps://www.eclipse.org/forums/index.php/mv/msg/487973/1061223/#msg_1061223
Here's my config.ini with JETTY added, which I think was the primary source of my problems: