| Summary: | getDeploymentDescriptorRoot() throws IndexOutOfBoundsException and version is not set in org.eclipse.jst.j2ee.web.componentcore.util.WebArtifactEdit.addWebAppIfNecessary | ||
|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Badri <baravich> |
| Component: | jst.j2ee | Assignee: | Hari Shankar <hshanka> |
| Status: | CLOSED INVALID | QA Contact: | Chuck Bridgham <cbridgha> |
| Severity: | normal | ||
| Priority: | P3 | CC: | ccc |
| Version: | 3.2 | ||
| Target Milestone: | 3.2.1 | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Badri
Found in org.eclipse.jst.j2ee.web v201004190850 Badri, looking at the version id you provided for the plugin, I assume that you are using Helios, which corresponds to WTP 3.2. If this is not correct, please let us know. (In reply to comment #0) Also found that as a part of issue 2), the xsi:schemaLocation in the web.xml is always http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd inspite of selecting Dynamic web module version as something else. Assigning to Hari for initial investigation. The problem here is that calls to WebArtifactEdit for Web 3.0 projects without a deployment descriptor result in a Servlet 2.4 web.xml being created. WebArtifactEdit is coded for Servlet 2.1 to 2.4 support, and can somewhat tolerate 2.5 and 3.0, however, it is not the correct way to access the Web 2.5 and Web 3.0 models and can result in undesireable side effects, such as the creation of a Servlet 2.4 web.xml. |