[ 
https://issues.apache.org/jira/browse/CXF-6405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14545152#comment-14545152
 ] 

Freeman Fang commented on CXF-6405:
-----------------------------------

Hi Mark,

CXF support JAVA 8 since 3.0.x, so you need use CXF 3.0.x.

Freeman

> 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)

Reply via email to