(Difference between revisions)
Line 7: Line 7:
     <pre class="examplecode">-J-Djavax.xml.accessExternalSchema=all</pre>
     <pre class="examplecode">-J-Djavax.xml.accessExternalSchema=all</pre>
For more about locating and modifying the <code>netbeans.conf</code> configuration file, see FaqNetbeansConf.
For more about locating and modifying the <code>netbeans.conf</code> configuration file, see [[FaqNetbeansConf]].

Revision as of 14:14, 3 April 2014

How do I enable access to an external schema?

An external schema is used to parse the WSDL file of a web service when you create a web service client or test client. To create a web service client in the IDE or test client on GlassFish you need to enable access to external schema because access is restricted by default. To enable access you need to modify the configuration files of the IDE and the GlassFish Server.

Enabling access in the IDE

To generate a web service client in the IDE from a web service or WSDL file you need to modify the IDE configuration file (netbeans.conf) to add the following switch to the netbeans_default_options.


For more about locating and modifying the netbeans.conf configuration file, see FaqNetbeansConf.

To make start-up parameters from the command line permanent, you add them to the netbeans.conf file. You may use this plugin to edit the netbeans.conf file more easily (thanks to Claudio Miranda).

If you want NetBeans to always start with some specific options such as --userdir , --cachedir , --jdkhome , --fontsize , etc., you might be tempted to write a wrapper script around the NetBeans launcher so that you don't have to type them on the command line. A wrapper script will work, of course, but a better way is to put your custom options into the NetBeans configuration file -- netbeans.conf.

Finding the Configuration File

There are actually two versions of the netbeans.conf file, a global and a local one.

Global: If you want to change the settings globally for all users using a shared NetBeans installation, modify the global instance of the file. You find it in the NetBeans installation directory:

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo