Hi folks -
I'm using IDEA 10.5.1 with Glassfish 3.1 FCS and JDK 1.6.0_22 on Windows 7 x64. I'm trying to have IDEA create JAX-WS artifacts for my project but I am not having an success. The error I am getting is:
Running JAX-WS wsimport
command: [cmd.exe, /C, wsimport.bat, -d, G:\sandbox\trunk\BAR\out\wsclient, -p, com.foo.bar.ws.client, -verbose, -Xendorsed, http://localhost:8080/BAR/MyService?wsdl]
JDK's tools.jar was not found in C:\Program Files (x86)\Java\lib\tools.jar. Usually this means you are running JRE, not JDK. Please use the java command in JDK 5.0 or later (not JRE.)
Under the JAX-WS Artifacts dialog's Basic tab I have the WSDL
, Target Directory, Package
filled in. For WSDL location I have the URL to the wsdl. Under the Custom Args
tab I have added -Xendorsed as recommended by the JavaEE6 first cup tutorial's web services section. 
Why is this looking in C:\Program Files (x86)\Java\lib
for tools.jar? It should be looking in C:\Program Files (x86)\Java\jdk1.6.0_22\lib. Is this a bug or did have I misconfigured something?
 - Note:
the Xendorsed option since JDK 6 u4 JAXWS 2.1 is packaged as part of rt.jar. We want to use JAXWS 2.2 apis and need to override the JAXWS 2.1 which is part of JDK 6u4 so we need to use Xendorsed"