Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361730 - [Tooling] Extend RWT launcher to launch from a web app folder
Summary: [Tooling] Extend RWT launcher to launch from a web app folder
Status: RESOLVED WONTFIX
Alias: None
Product: RAP
Classification: RT
Component: Tools (show other bugs)
Version: 1.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 1.5 M3   Edit
Assignee: Rüdiger Herrmann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-22 08:38 EDT by Rüdiger Herrmann CLA
Modified: 2011-10-28 13:29 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rüdiger Herrmann CLA 2011-10-22 08:38:59 EDT
Currently the RWT launch configuration allows to launch from either a given entry point or by providing a web.xml. In the latter case, the servlet path can be specified so that the browser points to the right URL when opened.

To ease integration with frameworks (e.g. Spring) that put further artefacts in the web application folder, I suggest to proivde a third way to launch web applications. It should allow to specify a path to a folder within the project that matches the structure of a web application. In case the browser should be opened, the servlet path would also have to be specified.
Ideally, it should be validated that the given folder contains the mandatory artefacts for a web application (i.e. has a WEB-INF folder that contains a web.xml).
Comment 1 Rüdiger Herrmann CLA 2011-10-24 10:30:41 EDT
Extended the launch config with a third option: Run from web-application folder. When choosing this option, a folder from the workspace must be specified that serves as the root of the web application. This folder must at least contain a WEB-INF folder with a valid deployment descriptor (web.xml).

Currently the embedded Jetty that serves as the servlet engine is started with a parameter that points directly to the given web application folder. As a consequence, resources to be delivered by the servlet engine are written to this folder. This is less-than-optional as this folder is usually managed by a source code management system and temporary resource files aren't meant to be stored there.
To avoid this, we might consider to copy the web application folder to a temporary location before launching the servlet engine.

Changes are in CVS HEAD.
Comment 2 Rüdiger Herrmann CLA 2011-10-28 13:29:59 EDT
The run-jetty-run project [1] already provides the described feature. I will therefore revoke the changes.

[1] http://code.google.com/p/run-jetty-run/