【问题标题】:java.lang.NoClassDefFoundError:oracle/j2ee/ws/common/jaxws/ServiceDelegateImpljava.lang.NoClassDefFoundError:oracle/j2ee/ws/common/jaxws/ServiceDelegateImpl
【发布时间】:2023-10-21 06:40:01
【问题描述】:

我正在使用 BPM API 来检索分配给特定用户的任务列表。但是,在运行类文件时出现以下错误:--

Exception in thread "main" java.lang.NoClassDefFoundError: oracle/j2ee/ws/common/jaxws/ServiceDelegateImpl
    at oracle.bpm.client.BPMServiceClientFactory.<init>(BPMServiceClientFactory.java:102)
    at oracle.bpm.client.BPMServiceClientFactory.getInstance(BPMServiceClientFactory.java:144)
    at project3.Fixture.getBPMServiceClientFactory(Fixture.java:33)
    at project3.Fixture.getBPMServiceClient(Fixture.java:49)
    at project3.GetProcessInstances.testGetProcessInstances(GetProcessInstances.java:29)
    at project3.GetProcessInstances.main(GetProcessInstances.java:24)
Caused by: java.lang.ClassNotFoundException: oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
    ... 6 more

我已经将以下 Jar 文件添加到我的项目中:--

  1. Oracle.bpm.runtime.jar
  2. Oracle.bpm.client.jar
  3. Bpm-services.jar
  4. Wsclient.jar

但问题仍然没有解决..

有什么建议吗??????

【问题讨论】:

  • 能否提供出现错误的源代码?
  • 你看过这个my-java-planet.blogspot.com/2012/05/… 并告诉你正在使用哪个IDE?我猜它应该是JDEV...似乎你的wsclient.jar 没有正确加载
  • 我正在使用 Jdeveloper 11.1.1.5
  • Hey Freak 请告诉我我现在该怎么办......我的开发卡在这里......非常紧急......

标签: java jakarta-ee soa oracle-adf business-process-management


【解决方案1】:

除了它不工作的原因之外,您应该使用 Oracle 提供的开箱即用的 TaskQueryService。

【讨论】: