Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/367.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java RAD WebSphere NoClassDefFoundError_Java_Jakarta Ee_Websphere_Noclassdeffounderror_Rad - Fatal编程技术网

Java RAD WebSphere NoClassDefFoundError

Java RAD WebSphere NoClassDefFoundError,java,jakarta-ee,websphere,noclassdeffounderror,rad,Java,Jakarta Ee,Websphere,Noclassdeffounderror,Rad,我的项目是这样的 EAR_proj lib/ 3rd party jars EJB_proj Web_proj (a web service with WSDL) Common_proj1 Common_proj2 EAR_项目的部署程序集包含所有其他项目 所有项目在第三方库的类路径中都有“EAR库” Web项目具有部署程序集,其中包含Common项目J1和Common项目J2(在其MANIFEST.MF中) 但是,当我将Web_项目部署到服务器(在RAD中)时,我不断得到驻

我的项目是这样的

EAR_proj
  lib/
    3rd party jars

EJB_proj

Web_proj (a web service with WSDL)

Common_proj1
Common_proj2
EAR_项目的部署程序集包含所有其他项目

所有项目在第三方库的类路径中都有“EAR库”

Web项目具有部署程序集,其中包含Common项目J1和Common项目J2(在其MANIFEST.MF中)

但是,当我将Web_项目部署到服务器(在RAD中)时,我不断得到驻留在Common_proj1中的1个类的NoClassDefFoundError

查看WebSphereFFDC错误文件,它说

FFDC Exception:java.io.FileNotFoundException SourceId:com.ibm.ws.websvcs.utils.Axis2Utils.getApplicationClassPath ProbeId:874
java.io.FileNotFoundException: Common_proj1\bin (Access is denied.)
另一个ffdc文件表明Common_proj1/bin位于某个类加载器的类路径上……我不确定为什么它不将Common_proj1作为jar文件处理。是因为这发生在IDE中吗


服务器类加载器策略设置为“Single”和“Classes loaded with parent class loader first”(首先使用父类加载器加载类)策略

结果表明,升级到较新的JDK后,这是一个RAD问题

在web服务实现类中添加属性wsldLocation可以解决这个问题