1

i am not able to build Web Service Client, it is showing an error msg :You are running on JDK6 which comes with JAX-WS 2.1 API, but this tool requires JAX-WS 2.2 API. Use the endorsed standards override mechanism (http://java.sun.com/javase/6/docs/technotes/guides/standards/), or set xendorsed="true" on . BUILD FAILED (total time: 0 seconds)

can any one help me out to solve this ... Thanks in Advance :)

John Yeary
  • 1,112
  • 22
  • 45
kavi
  • 11
  • 2
  • The error message has an explanation about how to use the endorsed override mechanism. Essentially you download JAX-WS 2.2 and place the jars in the endorsed library in your JDK. – John Yeary Dec 12 '12 at 03:47

4 Answers4

0

Check the JDK configuration being ran by the IDE,

When using Netbeans,

Step 1:

Find the Netbeans.conf file (C:\Program Files\NetBeans7.0\etc\netbeans.conf)

Step 2:

Change "netbeans_jdkhome" to point to the newer JDK (i.e. netbeans_jdkhome="C:\Program Files\Java\jdk1.7.0_80")

Note: Try similar steps for other IDEs

Nitishkumar Singh
  • 1,781
  • 1
  • 15
  • 33
0

Are you running on Unix? Is the wsimport in your path in the glassfish directory or the Java install directory? I seem to remember getting this and changing my path so I got the wsimport from glassfish.

JOTN
  • 6,120
  • 2
  • 26
  • 31
0

I don't know main cause but i think sometimes IDE causes that. Deleting WS reference and adding ws client again works for me sometimes.

yuceel
  • 1,943
  • 2
  • 18
  • 27
0

Just click on netbeans generated error link (by clicking on it, netbeans will open jaxws-build.xml & goes to wsimport tag definition line) & add attribute xendorsed="true" somewhere in "wsimport" tag.
Or you can download & add JAX-WS 2.2 API jar file in your project classpath.

Ehsan Khodarahmi
  • 4,772
  • 10
  • 60
  • 87