cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Anderson (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-6405) Support setting javax.xml.accessExternalScehema system property when running wsdl2java
Date Fri, 15 May 2015 08:23:00 GMT
Mark Anderson created CXF-6405:
----------------------------------

             Summary: Support setting javax.xml.accessExternalScehema system property when
running wsdl2java
                 Key: CXF-6405
                 URL: https://issues.apache.org/jira/browse/CXF-6405
             Project: CXF
          Issue Type: Improvement
          Components: Tooling
    Affects Versions: 2.7.16
            Reporter: Mark Anderson


Running wsdl2java on Java 8 fails with the following exception
{quote}
Exception in thread "main" java.lang.AssertionError: org.xml.sax.SAXParseException; systemId:
jar:file:/home/mark/Downloads/java/cxf/apache-cxf-2.7.16/lib/jaxb-xjc-2.2.6.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.
{quote}
To workaround this I need to add
{quote}
-Djavax.xml.accessExternalSchema=all
{quote}
to the wsdl2java script.

Could this either be added by default or be configured via parameters passed to wsdl2java?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message