title: How do I troubleshoot this wsimport error in NetBeans?
body: <p>I'm using NetBeans 6.9.1 on Mac OS X 10.6.4 with Java 1.6.0_22.  I have a web application that connects to an application server (GlassFish v3) via JAX-WS.  During the "Clean and Build" process, wsimport is called to import the stored WSDL files.  For some reason, I can only successfully perform a "Clean and Build" once after starting NetBeans.  Every subsequent attempt fails with this error:</p>
  
  <pre><code>init:
  undeploy-clean:
  deps-clean:
  do-clean:
  Deleting directory /Users/justin/Development/flower_vs/build
  Deleting directory /Users/justin/Development/flower_vs/dist
  check-clean:
  clean:
  init:
  deps-module-jar:
  deps-ear-jar:
  deps-jar:
  wsimport-init:
  Created dir: /Users/justin/Development/flower_vs/build/generated-sources/jax-ws
  wsimport-client-ChartDataService:
  Created dir: /Users/justin/Development/flower_vs/build/generated/jax-wsCache/ChartDataService
  command line: wsimport -d /Users/justin/Development/flower_vs/build/generated/jax-wsCache/ChartDataService -extension -Xnocompile -Xendorsed -keep -s /Users/justin/Development/flower_vs/build/generated/jax-wsCache/ChartDataService -catalog /Users/justin/Development/flower_vs/catalog.xml -verbose /Users/justin/Development/flower_vs/src/conf/xml-resources/web-service-references/ChartDataService/wsdl/dev_8080/flower/analysis/ChartDataService.wsdl -p name.justinthomas.flower.analysis.services.ChartData -wsdllocation http://dev:8080/flower/analysis/ChartDataService?wsdl
  /Users/justin/Development/flower_vs/nbproject/jaxws-build.xml:31: Error starting wsimport: 
  BUILD FAILED (total time: 1 second)
  </code></pre>
  
  <p>The noted line is the "wsimport" directive in this target:</p>
  
  <pre><code>&lt;target name="wsimport-client-ChartDataService" depends="wsimport-init"&gt;
    &lt;mkdir dir="${build.generated.dir}/jax-wsCache/ChartDataService"/&gt;
    &lt;wsimport sourcedestdir="${build.generated.dir}/jax-wsCache/ChartDataService" destdir="${build.generated.dir}/jax-wsCache/ChartDataService" wsdl="${basedir}/${conf-dir}xml-resources/web-service-references/ChartDataService/wsdl/dev_8080/flower/analysis/ChartDataService.wsdl" catalog="catalog.xml" extension="true" verbose="true" wsdlLocation="http://dev:8080/flower/analysis/ChartDataService?wsdl" xnocompile="true" xendorsed="true" package="name.justinthomas.flower.analysis.services.ChartData"&gt;
      &lt;depends file="${basedir}/${conf-dir}xml-resources/web-service-references/ChartDataService/wsdl/dev_8080/flower/analysis/ChartDataService.wsdl"/&gt;
      &lt;produces dir="${build.generated.dir}/jax-wsCache/ChartDataService"/&gt;
    &lt;/wsimport&gt;
    &lt;copy todir="${build.generated.sources.dir}/jax-ws"&gt;
      &lt;fileset dir="${build.generated.dir}/jax-wsCache/ChartDataService"&gt;
         &lt;include name="**/*.java"/&gt;
      &lt;/fileset&gt;
    &lt;/copy&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>I can run the wsimport line manually (copy and pasted) from the command line successfully.  When I do so, NetBeans then errors on the next web service target.</p>
  
  <p>To correct this error, I have to close NetBeans and restart.  Once I do that, I can once again perform one "Clean and Build" before I'm stuck again.</p>
  
  <p>I only see this problem on my Mac - my NetBeans install on Windows 7 does not have this problem, but I can't find any differences in the configuration that might account for the Mac problems.</p>
  
  <p>It's clear that the error message I'm getting for wsimport is woefully unhelpful.  I can't seem to figure out how to get more verbose error messages to figure out what is actually going on.  Do you know how I might do that?  I'm guessing that a library is being loaded that is causing a conflict, but I don't know where to start in tracking down where that problem is.</p>
  
  <p>Thank you in advance!</p>