This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Wizard fails to create class from wsdl, in maven project and JavaFX client | ||
---|---|---|---|
Product: | webservices | Reporter: | albert.af77 |
Component: | Client | Assignee: | Milan Kuchtiak <mkuchtiak> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | markiewb, pjiricka |
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 x64 | ||
Issue Type: | DEFECT | Exception Reporter: | Failed to read schema document 'NewWebService.xsd_1.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. |
Description
albert.af77
2014-02-08 13:28:56 UTC
The reason is the following: Failed to read schema document 'NewWebService.xsd_1.xsd', because 'file' access is not allowed due to restriction set by the accessExternalSchema property. You have likely (in your environment) set on this restrinction, for JAXP parser. See: http://docs.oracle.com/javase/7/docs/api/javax/xml/XMLConstants.html#ACCESS_EXTERNAL_SCHEMA Try to swith the restriction off in netbeans_home/etc/netbeans.conf: -J-Djavax.xml.accessExternalSchema=all To anyone that finds this. This is a result of a new, more restrictive, JAXP (v1.5) which is included with JDK 7u40 onwards and JDK8. The problem as such has nothing to do with NB, JavaFX or Maven. As noted it can be "solved" by setting system property javax.xml.accessExternalSchema=all. Since the bug reporter uses Maven it needs to be a Maven solution. In this situation it doesn't help to set the property on the IDE. Here's what I add to my pom.xml in order to fix this problem: <plugin> <groupId>org.jvnet.jax-ws-commons</groupId> <artifactId>jaxws-maven-plugin</artifactId> <version>2.3</version> <configuration> <!-- Needed with JAXP 1.5 --> <vmArgs> <vmArg>-Djavax.xml.accessExternalSchema=all</vmArg> </vmArgs> </configuration> </plugin> So, what I actually add is the <vmArgs> stuff. The question is if it would make sense if NetBeans IDE always added this for you when it first generates the project ? |