Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Cannot deploy to Tomcat 7
Cannot deploy to Tomcat 7 [message #1038935] Thu, 11 April 2013 14:22 Go to next message
Phill Perryman is currently offline Phill PerrymanFriend
Messages: 214
Registered: July 2009
Senior Member
I have deployed war files to tomcat (7.0.34) before but this time I tried it failed. So to make it as simple as possible i created a new workspace, created a test project and a hello world rwt application from the eclipse template. The test.launch works fine in eclipse. It prompted me to install the latest release RAP target which I did (RAP 2.1)

I then created a war file (basic) and added the test jar and then 'added required'. It validates OK. I did notice that the
<plugin id="org.eclipse.equinox.servletbridge.extensionbundle"/>
Has a red cross against it.

I export it and install into Tomcat as test.war an when I launch http://127.0.0.1/test/hello

I just get the message

type Status report
message BridgeServlet: /test/hello
description The requested resource is not available.

If I go back to an old workspace with RAP 2.0.0 installed I can create the WAR file, export, deploy and run with no problems.

Have I done something wrong or do I need to file a bug. I did find some stuff about P2 but could not work out if this applied here or not.

i also brought the old war file into the new workspace, removed and added the new servletbridge library. It needed some more dependencies javax.xml so I did an add required, deployed to tomcat and it also fails.

Re: Cannot deploy to Tomcat 7 [message #1039514 is a reply to message #1038935] Fri, 12 April 2013 08:48 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Phill,

you've probably hit the Libra warproducts bug 398780 [1]. As of Kepler
M6 / RAP 2.1M1, the extensionbundle is not contained in the platform
anymore. However, it still has to be contained in the config.ini,
because this bundle is created at runtime and needs to be started. We
hope to have this bug fixed by Kepler M7.

In the meantime, you can workaround the issue by manually adding this
entry to the config.ini in your generated war file:

org.eclipse.equinox.servletbridge.extensionbundle

HTH, Ralf

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=398780

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Cannot deploy to Tomcat 7 [message #1039540 is a reply to message #1039514] Fri, 12 April 2013 09:17 Go to previous message
Phill Perryman is currently offline Phill PerrymanFriend
Messages: 214
Registered: July 2009
Senior Member
Thanks, I reverted back to a RAP 2.0 workspace for now, will wait for M7.
Previous Topic:Could anyone give me a tip for paint graphic into table cell?
Next Topic:Missing Constraint: Import-Package: javax.servlet; version="2.6.0
Goto Forum:
  


Current Time: Tue Mar 19 07:11:41 GMT 2024

Powered by FUDForum. Page generated in 0.01883 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top