It's not a secret anymore!*
The moose likes Web Services and the fly likes a doubt in version with wsimport Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "a doubt in version with wsimport " Watch "a doubt in version with wsimport " New topic
Author

a doubt in version with wsimport

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
When I run "wsimport", I get following error:



I was wondering why this tool needs something so latest which is not even used by JDK 6.
[ March 07, 2008: Message edited by: ankur rathi ]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
BTW, I downloaded and tried with both the versions (2.1.3 and 2.1.2.1) of JAX-WS.
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
You must be running the wsimport that comes with JAX-WS 2.1.x. For example NetBeans 6.0 installs JAX-WS 2.1. So even if you initially didn't install JAX-WS 2.1 some of the other tools may have. To use JAX-WS 2.1 from the command line in a JDK 6 environment:

https://jax-ws.dev.java.net/nonav/2.1.3/docs/jaxws-tools.html#running_on_jdk6

Running on JDK6
  • Copy JAXWS_HOME/lib/jaxws-api.jar to JDK6_HOME/jre/lib/endorsed directory
  • Copy JAXWS_HOME/lib/jaxb-api.jar to JDK6_HOME/jre/lib/endorsed directory


  • See also: JAX-WS 2.1 and NetBeans
    [ March 07, 2008: Message edited by: Peer Reynders ]
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: a doubt in version with wsimport