Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-3910

Maven archetype jaxws-codefirst has problems on JDK8

XMLWordPrintable

    • Hide

      ensure you have JDK 8 on the PATH
      mvn archetype:generate -Dfilter=org.jboss.ws.plugins.archetypes:

      [INFO] ----------------------------------------------------------------------------
      [INFO] Using following parameters for creating project from Archetype: jaxws-codefirst:1.1.0.Final
      [INFO] ----------------------------------------------------------------------------
      [INFO] Parameter: groupId, Value: org.rsvoboda
      [INFO] Parameter: artifactId, Value: ws-experiment
      [INFO] Parameter: version, Value: 1.0-SNAPSHOT
      [INFO] Parameter: package, Value: org.rsvoboda
      [INFO] Parameter: packageInPathFormat, Value: org/rsvoboda
      [INFO] Parameter: package, Value: org.rsvoboda
      [INFO] Parameter: version, Value: 1.0-SNAPSHOT
      [INFO] Parameter: groupId, Value: org.rsvoboda
      [INFO] Parameter: jbosswscxf, Value: 5.0.0.Final
      [INFO] Parameter: artifactId, Value: ws-experiment
      [INFO] project created from Archetype in dir: /home/rsvoboda/tmp/ws-experiment
      [INFO] ------------------------------------------------------------------------
      

      cd ws-experiment
      mvn clean package

      Show
      ensure you have JDK 8 on the PATH mvn archetype:generate -Dfilter=org.jboss.ws.plugins.archetypes: [INFO] ---------------------------------------------------------------------------- [INFO] Using following parameters for creating project from Archetype: jaxws-codefirst:1.1.0.Final [INFO] ---------------------------------------------------------------------------- [INFO] Parameter: groupId, Value: org.rsvoboda [INFO] Parameter: artifactId, Value: ws-experiment [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: package , Value: org.rsvoboda [INFO] Parameter: packageInPathFormat, Value: org/rsvoboda [INFO] Parameter: package , Value: org.rsvoboda [INFO] Parameter: version, Value: 1.0-SNAPSHOT [INFO] Parameter: groupId, Value: org.rsvoboda [INFO] Parameter: jbosswscxf, Value: 5.0.0.Final [INFO] Parameter: artifactId, Value: ws-experiment [INFO] project created from Archetype in dir: /home/rsvoboda/tmp/ws-experiment [INFO] ------------------------------------------------------------------------ cd ws-experiment mvn clean package

      Project generated by maven archetype jaxws-codefirst has problems to compile on JDK8, compilation works on JDK 7.

      Exception thrown during "mvn clean package"

      JBWS024002: Failed to invoke org.apache.cxf.tools.wsdlto.WSDLToJava
      java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/home/rsvoboda/.m2/repository/com/sun/xml/bind/jaxb-xjc/2.2.7/
        jaxb-xjc-2.2.7.jar!/com/sun/tools/xjc/reader/xmlschema/bindinfo/binding.xsd; lineNumber: 52; columnNumber: 88; schema_reference: 
        Failed to read schema document 'xjc.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. 
      

              rhn-support-asoldano Alessio Soldano
              rsvoboda@redhat.com Rostislav Svoboda
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: