Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 869A517688 for ; Fri, 15 May 2015 08:23:00 +0000 (UTC) Received: (qmail 17904 invoked by uid 500); 15 May 2015 08:23:00 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 17846 invoked by uid 500); 15 May 2015 08:23:00 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 17652 invoked by uid 99); 15 May 2015 08:23:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 08:23:00 +0000 Date: Fri, 15 May 2015 08:23:00 +0000 (UTC) From: "Mark Anderson (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (CXF-6405) Support setting javax.xml.accessExternalScehema system property when running wsdl2java MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 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)