[
https://issues.apache.org/jira/browse/CXF-6405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Anderson updated CXF-6405:
-------------------------------
Summary: Support setting javax.xml.accessExternalSchema system property
when running wsdl2java (was: Support setting javax.xml.accessExternalScehema
system property when running wsdl2java)
> Support setting javax.xml.accessExternalSchema 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)