How to make an EAR refer WAR shared library

假如想象 提交于 2019-12-11 10:47:01

问题


I would like to get a help from you all. The below is the issue I am currently facing with.

I have added a reference of WAR shared library in weblogic-application.xml of EAR file.

In EAR, I do have a ejb module which has "library-directory" tag in application.xml. I want ejb module to refer jar files in shared library but it looks for jar files in lib folder of EAR.

In lib folder of EAR, jar files are not available but the jars are available in WAR shared library.

How to resolve this issue and make the ejb module of EAR refer the jars of WAR shared library.

Please add a comment if the problem is not completely understandable.

Many thanks in advance for your help!


回答1:


Try defining the jars you need as modules in application.xml. Something like:

<module>
    <java>pathToWarLib/needed.jar</java>
</module>


来源:https://stackoverflow.com/questions/11100966/how-to-make-an-ear-refer-war-shared-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!