WsImport cannot be found

I am trying to run the samples that came with JAX-WS (the Java API for XML Web Services)

I keep getting this error when I run ant on the build.xml file:

wsimport-init:

[mkdir] Created dir: C:\javaeetutorial5\examples\coffeebreak\cb-common\build

\generated\wsimport\client

[mkdir] Created dir: C:\javaeetutorial5\examples\coffeebreak\cb-common\build

\classes

[subant] Failurefor target'default' of: C:\javaeetutorial5\examples\coffeeb

reak\cb-common\build.xml

[subant] The following error occurredwhile executingthis line:

[subant] C:\javaeetutorial5\examples\bp-project\jaxws-ant.xml:9: taskdef clas

s com.sun.tools.ws.ant.WsImport cannot be found

I know what the problem is:it cannot find the jar files that come with the JAX-WS download.

I have these jar files as I downloaded jaxws-2_0.jar but how can I make ant find them without changing the ant script?

It cannot find them at "com.sun.tools.ws.ant.WsImport".

Does this mean it is looking for the jars in the Sun App Server installation directory?

[1231 byte] By [fonzia] at [2007-11-27 1:18:47]
# 1
Have you edited the build.properties file in c:\javaeetutorial5\examples\bp-project/ ?Make sure you have the correct path for your Java EE 5 installation there. See: http://java.sun.com/javaee/5/docs/tutorial/doc/About5.html#wp67375
_NetMackan_a at 2007-7-11 23:54:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

Thanks for your help. I am no longer getting the error "WsImport cannot be found" but now I have the following error:

wsimport-init:

[subant] Failure for target 'default' of: C:\javaeetutorial5\examples\coffeeb

reak\cb-common\build.xml

[subant] The following error occurred while executing this line:

[subant] C:\javaeetutorial5\examples\bp-project\jaxws-ant.xml:9: java.lang.Un

supportedClassVersionError: com/sun/tools/ws/ant/WsImport (Unsupported major.min

or version 49.0)

WsImport is located by the compiler but there is a deprecated method error it seems.

fonzia at 2007-7-11 23:54:48 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...