RAP 2.1 War is not working [message #1107628] |
Thu, 12 September 2013 14:02  |
Eclipse User |
|
|
|
HI,
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
//eclipse.org/rap/noteworthy/2.0/migration-guide/
and another thing is I am using IApplicaiton as entrypoint for my applicaiton.
Please let me know what wrong I am doing.
my web.xml
<?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">
<web-app id="WebApp">
<servlet id="bridge">
<servlet-name>equinoxbridgeservlet</servlet-name>
<display-name>Equinox Bridge Servlet</display-name>
<description>Equinox Bridge Servlet</description>
<servlet-class>org.eclipse.equinox.servletbridge.BridgeServlet</servlet-class>
<!-- Framework Controls could be useful for testing purpose, but
we disable it per default -->
<init-param>
<param-name>enableFrameworkControls</param-name>
<param-value>false</param-value>
</init-param>
<!-- 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. -->
<init-param>
<param-name>commandline</param-name>
<param-value>-registryMultiLanguage <!-- -console --> -ws rap</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>equinoxbridgeservlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
</web-app>
|
|
|
|
|
|
|
|
Re: RAP 2.1 War is not working [message #1126201 is a reply to message #1125602] |
Sat, 05 October 2013 05:06   |
Eclipse User |
|
|
|
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:
Quote:
2013-10-04 13:30:00.653:INFO:oejs.Server:jetty-8.1.10.v20130312
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).
[1] 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 [2] with some information about this, especially the lines
Quote:
...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.
[1] http://eclipse.org/rap/developers-guide/devguide.php?topic=deployment.html&version=2.1
[2] http://wiki.eclipse.org/RAP/FAQ#Exported_WAR_file_does_not_work
[Updated on: Sat, 05 October 2013 05:07] by Moderator
|
|
|
|
Re: RAP 2.1 War is not working [message #1130216 is a reply to message #1128700] |
Wed, 09 October 2013 06:20  |
Eclipse User |
|
|
|
Hi,
could you provide a non working simple war for debugging?
Best,
Ivan
On 10/8/2013 2:51 AM, Nagaraju Nadendla wrote:
> thanks for your replay. How to add
> org.eclipse.equinox.servletbridge.extensionbundle
>
> bundle. I added this one in my runtime classpath configuration in my
> MANIFEST.MF. I am not able to add in to required plugin-ins.
> RAP 1.5 was working fine with my existing setup. After I done
> Migration into RAP 2.1 I am not able to access my url as i explained
> early. I feel it is RAP issue.
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
Powered by
FUDForum. Page generated in 0.05546 seconds