Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 2906
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 ]

    "Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
    Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: a doubt in version with wsimport
     
    Similar Threads
    NetBeans JAX issue
    developing web services Client application
    problem while calling a web service client
    web service client creation error in netbeans 6.0
    jax-ws client different between axis2 eclipse and wsimport.