Eclipse 中的 WebSphere Liberty JAX-WS Web 服务生成

WebSphere Liberty JAX-WS Web Service Generation in Eclipse

我有

bin目录下,productInfo featureInforeturns很多东西,但是其中:

在我的 server.xml 中,在 <featureManager> 下,我有一个 <feature>...</feature> 用于:

在 Eclipse 中,我右键单击我的 WAR 项目,转到新建 -> 其他...,然后选择 Web 服务 -> Web 服务。单击下一步。

现在我有一个包含以下字段的对话框:

单击“下一步”时,出现以下警告:

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

如果单击“确定”,我将转到另一个对话框 "WebSphere JAX-WS Bottom Up Web Service Configuration",其中包含各种选项。不管我在这里 select 什么,当点击 Next 或 Finish 时,我得到以下错误:

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

我如何克服这个问题并将 JAX-WS 与 Liberty 结合使用?我有完整的 EE 配置文件,所以它应该可以工作,对吗?

我已经尝试在服务器 -> 运行时环境 -> 编辑 -> 高级下刷新缓存。我什至删除并重新创建了我的服务器,以及擦除 Liberty 目录并从头开始再次解压缩,从一开始就嵌入了 jaxws 和 Java EE 完整配置文件支持。

尝试设置目标运行时。右键单击 WAR 项目,然后单击 select Properties,然后单击 Targeted Runtimes。 Select 您创建的 Runtime Environment 旁边的复选框,可以在 Runtime Explorer 视图中看到。