2013-02-26 87 views
0

我使用BPM API检索分配给特定用户的任务列表。但是,当运行的类文件我收到以下错误: -java.lang.NoClassDefFoundError:甲骨文/ J2EE/WS /普通/ JAXWS/ServiceDelegateImpl

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

但仍然不解决问题..

任何建议??????

+0

你能同时供应的源代码提供了错误? – araknoid 2013-02-26 06:37:09

+0

你见过这个http://my-java-planet.blogspot.com/2012/05/how-to-resolve-javalangnoclassdeffounde.html也告诉哪一个IDE你正在使用?我想应该是的jdev .. 。看来你的wsclient.jar不正确加载 – Freak 2013-02-26 06:39:22

+0

余米使用JDeveloper 11.1.1.5 – user2110051 2013-02-26 06:44:25

回答

0

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