|Re: RAP 2.1 War is not working [message #1126201 is a reply to message #1125602]
||Sat, 05 October 2013 09:06
| Markus Knauer
Registered: July 2009
In your first message you were writing that you are building a .war and you want to deploy this in your JBoss application server, right?|
By looking at your list of bundles, I can see e.g. all Jetty bundles, but no servletbridge bundle at all. I assume that you are ending up running a webserver in a webserver, and that's for sure not what you want. You can see the output of the Jetty server start at port 63003 in the following lines:
osgi> 2013-10-04 13:30:00.698:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:63003
If you are starting your RAP application from within your IDE, you are starting a Equinox OSGi runtime, and inside the OSGi runtime (a) a Jetty web application server providing the http services and (b) your RAP application. This is a good approach at development time.
In case of a .war deployment it is your web application server that provides the http service (and not Jetty).
 in the RAP Developers Guide provides an introduction to war deployments, a troubleshooting guide, and uses the warproduct tooling which could be a better starting point to get something running compared to a Tycho/Maven build. And then there's the RAP FAQ at  with some information about this, especially the lines
...make sure that there is a org.eclipse.equinox.servletbridge.extensionbundle in the ss-listing whose state is RESOVLED
Make sure that the WAR does not contain the javax.servlet bundle because it is provided by the hosting servlet container.
should be helpful.
[Updated on: Sat, 05 October 2013 09:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02809 seconds