allquixotic
allquixotic

Reputation: 1569

WebSphere Liberty JAX-WS Web Service Generation in Eclipse

I have

In the bin directory, productInfo featureInfo returns many things, but among them:

In my server.xml, under <featureManager>, I have a <feature>...</feature> for:

In Eclipse, I right-click on my WAR project, go to New -> Other..., and pick Web Services -> Web Service. Click Next.

Now I have a dialog with the following fields:

When I click Next, I get the following warning:

The project is targeted against a server without IBM WebSphere JAX-WS support. Continuing code generation will result in compilation errors.

If I click OK, I get routed to another dialog, "WebSphere JAX-WS Bottom Up Web Service Configuration", with various options. Regardless of what I select here, when clicking Next or Finish, I get the following error:

Tools for the targeted server must be installed in order to generate Web services code.

How can I overcome this problem and use JAX-WS with Liberty? I have the full EE profile so it should work, right?

I have already tried refreshing the cache under Servers -> Runtime Environments -> Edit -> Advanced. I even deleted and recreated my server, as well as wiped the Liberty directory and unpacked it again from scratch, embedding jaxws and Java EE full profile support from the very beginning.

Upvotes: 3

Views: 4770

Answers (1)

Scott Kurz
Scott Kurz

Reputation: 5320

Try setting a target runtime. Right-click the WAR project, then select Properties, then Targeted Runtimes. Select the checkbox next to the Runtime Environment you created and can see in the Runtime Explorer view.

Upvotes: 5

Related Questions