| Summary: | Initial attribute "xmlns:web" in Java EE 6 web.xml is invalid | ||
|---|---|---|---|
| Product: | [WebTools] WTP Java EE Tools | Reporter: | Wolfgang Knauf <wolfgang.knauf> |
| Component: | jst.j2ee | Assignee: | Carl Anderson <ccc> |
| Status: | CLOSED FIXED | QA Contact: | Chuck Bridgham <cbridgha> |
| Severity: | normal | ||
| Priority: | P2 | CC: | alkazako, ccc, ian.trimble, rsitze, shr31223, thatnitind |
| Version: | 3.2 | ||
| Target Milestone: | Future | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Wolfgang Knauf
The problem is also valid for a 2.5 webapp. This is the web.xml snippet: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> As you can see, the "xmlns:web" attribute here is also wrong, it should be "http://java.sun.com/xml/ns/javaee" in my opinion. For 2.4 web.xml, this is OK because no "xmlns:web" is generated. *** Bug 343324 has been marked as a duplicate of this bug. *** It's 1.5 years since this was reported, and it's now in Indigo. I'll add that the same problem occurs with a generated EAR files application.xml: <?xml version="1.0" encoding="UTF-8"?> <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" id="Application_ID" version="6"> ... </application> xmlns:application and the schemaLocation don't match. This problem is fixed indirectly in WTP 3.5.2 and 3.6, because in those versions of WTP, the web prefix is not added to the deployment descriptor. And the same for the EAR deployment descriptor. Resolving as fixed, base on the explanation above. Closing... |