Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-453

Generated Eclipse WTP application.xml only correct for J2EE 1.4 version

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.5.1
    • None
    • WTP support
    • None
    • Windows XP SP3, JDK 1.5.0_14, Eclipse Europa 3.3.2, Maven 2.0.8
    • Patch

    Description

      The generated Eclipse WTP application.xml has a hard coded header and does not respect the actual JEE version used, so for JEE5 the header should look like the following

      <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" id="Application_ID" version="5">

      instead of

      <application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" id="Application_ID" version="1.4">

      The required, minimal changes are in the method createNewApplicationXml() in the class EclipseWtpApplicationXMLWriter.java
      Unfortunately I could not compile and test the 2.5.1 source from SVN on my machine (the plugin unit tests failed), but I attached the changed file anyway.

      Best regards,
      Leander

      Attachments

        1. JavaEE5.patch
          3 kB
          Carsten Mjartan
        2. EclipseWtpApplicationXMLWriter.java
          29 kB
          M.-Leander Reimer

        Activity

          People

            Unassigned Unassigned
            lreimer M.-Leander Reimer
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: