Weblogic jdom NoClassDefFoundException [英] Weblogic jdom NoClassDefFoundException

查看:242
本文介绍了Weblogic jdom NoClassDefFoundException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Web应用程序部署到localhost上的Weblogic 10.3.6,一切正常.但是,当我将其部署到在远程服务器上运行的相同版本的weblogic时,它会抛出以下内容:

I'm deploying my web application to Weblogic 10.3.6 on localhost and everything works as it should. But when i deploy it to the same version of weblogic which is runnig on a remote server, it throws this:

JDOMException: java.lang.NoClassDefFoundError: org/jdom/Parent: org/jdom/Parent

该应用程序打包在war文件中,我将同一文件上载到两个服务器,但仅在本地weblogic上有效. Jdom.jar位于WEB-ING/lib.我在安装了远程weblogic的目录中搜索jdom.jar,并且没有其他实例.

The application is packed in a war file, and i upload the same file to both of the servers, but it works only on my local weblogic. Jdom.jar is located in WEB-ING/lib. I searched for jdom.jar in the directory where the remote weblogic is installed, and there is no other instance of it.

推荐答案

可能是类加载冲突问题,请尝试配置WEB-INF \ weblogic.xml

possibly class loading conflict issue, please try configure WEB-INF\weblogic.xml

<container-descriptor>
                <prefer-web-inf-classes>true</prefer-web-inf-classes>
</container-descriptor>

prefer-web-inf-classes

如果元素设置为true,则将导致优先于Web应用程序的WEB-INF目录中的类加载应用程序或系统类加载器中加载的类.默认值为false.在控制台中指定的值将优先于手动设置的值

The element, if set to true, will cause classes located in the WEB-INF directory of a Web application to be loaded in preference to classes loaded in the application or system classloader. The default value is false. A value specified in the console will take precedence over a value set manually

这篇关于Weblogic jdom NoClassDefFoundException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆