Jack
Jack

Reputation: 427

Installing metro-jax-ws and running wsimport issue

Since wsimport is not included since JDK11 (Where to download and how to install JAX-WS wsimport tools?), I think I need to install metro-jax-ws; however, there are no instructions on how to do so...

Upvotes: 1

Views: 3174

Answers (3)

Adding to https://stackoverflow.com/a/72984803/3545527

5.1. Unzip .m2\repository\com\sun\xml\ws\jaxws-ri\3.0.2\jaxws-ri-3.0.2.zip\

5.2 Add the full path to the unzipped jaxws-ri/bin to path before attempting point 6.

For example, on my machine, I added the following to path .m2\repository\com\sun\xml\ws\jaxws-ri\3.0.2\jaxws-ri-3.0.2\jaxws-ri\bin\

Upvotes: 0

Steve Newcomb
Steve Newcomb

Reputation: 210

If you're running Debian Bookworm (which is, as of this writing, at the "Debian testing" pre-release phase), and you need wsimport, install the package jaxws, which will automagically install many dependencies if you haven't already installed them. Somewhere in all that is the wsimport command. Thereafter, it worked for me, anyway, and I finally succeeded in building VirtualBox from source.

Upvotes: 0

Jack
Jack

Reputation: 427

  1. Download and unzip the latest release from here.
  2. Install maven.
  3. cd to metro-jax-ws-3.0.2/jaxws-ri/bundles and run mvn install.
  4. After mvn install, read the last line of the installation process and find where jaxws-ri was installed (e.g., .m2/repository/com/sun/xml/ws/).
  5. cd to where jaxws-ri was installed and then also cd to {latest_version}/jaxws-ri/bin.
  6. Run wsimport.sh (e.g., sh wsimport.sh http://webservices.oorsprong.org/websamples.countryinfo/CountryInfoService.wso\?WSDL)

Upvotes: 5

Related Questions