未找到注释处理器 'com.sun.tools.ws.processor.modeler.annotation.WebServiceAp'

Annotation processor 'com.sun.tools.ws.processor.modeler.annotation.WebServiceAp' not found

我在 Weblogic 12.2.1 服务器上继承了 Java 应用程序 运行。它正在使用 JDK 1.8.0_172.

当我尝试使用 ANT build.xml 文件构建它时,出现以下错误:

Annotation processor 'com.sun.tools.ws.processor.modeler.annotation.WebServiceAp' not found

错误指向 build.xml 文件中的这一行...

<jwsc srcdir="${src}" includeantruntime="false" destdir="${ear.dir}" verbose="off" debug="on" classpathref="compile.class.path" >

我已经尝试将我的 Weblogic 恢复到 12.1 和其他一些东西 - 到目前为止没有任何效果。

而且我不知道要修复什么,因为我在项目或工作区的任何地方都找不到对 WebServiceAp 的引用。

有什么建议吗?提前致谢。

您必须在 运行 您的 ant 任务之前将库 ${MW_HOME}/oracle_common/modules/clients/com.oracle.webservices.fmw.client.jar 添加到类路径中。