Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4845

javaee.wildfly cannot be built without access to network

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 12.0, 12.1
    • 12.2
    • None

    Description

      Hello Emmanuel,

      as noted PR-2000 I have troubles building wildfly support behind corporate proxy. Probably the goal of "Removing external downloads and updating schemas" wasn't fully fulfilled. My proxy says that http://java.sun.com/xml/ns/javaee/javaee_6.xsd doesn't exists. When I replace:

      --- a/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd
      +++ b/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd
      @@ -61,7 +61,7 @@
       consistency with the Servlet API. </xsd:documentation>
       </xsd:annotation>
       
      - <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://java.sun.com/xml/ns/javaee/javaee_6.xsd"/>
      + <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="javaee_6.xsd"/>
       
       <xsd:group name="descriptionGroup">
       <xsd:sequence> 

      Then my build succeeds. Btw. I did a grep and there are more places that would deserve replacement:

      netbeans$ grep -r xsd.import.*namespace enterprise/javaee.wildfly/src/
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_6.xsd: <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_14_1.xsd: <xsd:import namespace="http://xmlns.jcp.org/xml/ns/javaee" schemaLocation="http://www.jboss.org/schema/jbossas/web-app_4_0.xsd"/>
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_6_0_1.xsd: <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="javaee_6.xsd"/>
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-common_8_1.xsd: <xsd:import namespace="http://xmlns.jcp.org/xml/ns/javaee" schemaLocation="http://www.jboss.org/schema/jbossas/javaee_8.xsd"/>
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/javaee_8.xsd: <xsd:import namespace="http://www.w3.org/XML/1998/namespace"
      enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/jboss-web_7_3_1.xsd: <xsd:import namespace="http://java.sun.com/xml/ns/javaee" schemaLocation="http://www.jboss.org/schema/jbossas/web-app_3_0.xsd"/>
      

      however when I tried to replace the other, I got missing file errors likeĀ FileNotFoundException: netbeans/enterprise/javaee.wildfly/src/org/netbeans/modules/javaee/wildfly/resources/web-common_4_0.xsd - I guess there are additional transitive dependencies that need to be fixed. As such I decided to leave a note here rather than fixing just the one xsd file.

      Attachments

        Activity

          People

            ehsavoie Emmanuel Hugonnet
            jtulach Jaroslav Tulach
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: