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.

Bug 243486 - Enable access to external schema to parse wsdl file in web app
Summary: Enable access to external schema to parse wsdl file in web app
Status: NEW
Alias: None
Product: webservices
Classification: Unclassified
Component: Client (show other bugs)
Version: 8.0
Hardware: PC Mac OS X
: P2 normal with 1 vote (vote)
Assignee: Milan Kuchtiak
: 244379 (view as bug list)
Depends on:
Reported: 2014-04-02 16:22 UTC by Kenneth Ganfield
Modified: 2015-02-26 10:48 UTC (History)
2 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Ganfield 2014-04-02 16:22:20 UTC
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.8.5 running on x86_64; UTF-8; en_US (nb)

This issues can be reproduced when trying to complete the following tutorials using JDK8:

The following issues look to be related:
#241456 and #243086

Seems like the IDE is unable to parse the wsdl file when creating a web service client or using the wizard to test a web service in a web application.

However, the IDE seems to work fine when creating a client in a Java application, for example here: 

The following output is written to the Output window:

java.lang.AssertionError: org.xml.sax.SAXParseException; systemId: jar:file:/Applications/NetBeans/glassfish-4.0/glassfish/modules/jaxb-osgi.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.
Comment 1 Kenneth Ganfield 2014-04-03 15:10:09 UTC
The default behavior in the IDE is to restrict access to an external schema.
The restriction breaks the functionality for some web service client wizards.

I created an FAQ that describes how to enable access so that the wizards work.

It would be nice if there was someway to make the default enabled in the IDE or to enable it without manually modifying the conf file.
Changing this issue to an enhancement request.
Comment 2 Milan Kuchtiak 2014-05-12 08:47:02 UTC
*** Bug 244379 has been marked as a duplicate of this bug. ***
Comment 3 phansson 2014-06-30 15:01:06 UTC
While I appreciate someone taking the time to make a FAQ for this (well done!) it should be noted that the solution described in the FAQ will only work for those that use Ant-based projects.

As far as I know Maven doesn't inherit system properties from the IDE so it doesn't help setting this property in the IDE's config file.

For Maven I see two alternative solutions:

Either set the relevant system property in Tools --> Options --> Java --> Maven --> Execution --> "Global Execution Options" or do it project-by-project in your pom.xml as described in

Additional info: The problem is not related to JDK8 per se but to JAXP 1.5 which started being included with JDK7u40.
Comment 4 Kenneth Ganfield 2014-07-01 08:53:15 UTC
Thanks for the update for Maven.
I updated the FAQ to incorporate your comments and add some information regarding Maven.
Comment 5 rjdkolb 2015-02-26 10:48:01 UTC
Is it possible to have Netbeans insert these vmArgs when it includes this plugin ?

If I use the "Webservice from WSDL..." wizard in Java 8, it breaks the process mid way and the webservice impl class is left empty. Updating the POM makes maven build successfully, but the impl class is still left empty.