|RAP 2.1 War is not working [message #1107628]
||Thu, 12 September 2013 18:02
| Nagaraju Nadendla
Registered: September 2013
I am using RAP 2.1 in my project. I am build my war using maven (pom.xml). I can able to create .war. If I deploy that war in my Jboss 7 I cannot access my application using URL : localhost:8788\mywar\servletpath
I followed bellow link to create war
and another thing is I am using IApplicaiton as entrypoint for my applicaiton.
Please let me know what wrong I am doing.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<display-name>Equinox Bridge Servlet</display-name>
<description>Equinox Bridge Servlet</description>
<!-- Framework Controls could be useful for testing purpose, but
we disable it per default -->
<!-- Enable multi-language support for the extension registry -->
<!-- the OSGi console is useful for trouble shooting but will fill up your
appserver log quickly, so deactivate on production use. Uncomment
the -console parameter to enabled OSGi console access. -->
<param-value>-registryMultiLanguage <!-- -console --> -ws rap</param-value>
|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.
Professional services for RAP and RCP?
[Updated on: Sat, 05 October 2013 09:07]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.13000 seconds