如何使 EAR 引用 WAR 共享库 [英] How to make an EAR refer WAR shared library

查看:47
本文介绍了如何使 EAR 引用 WAR 共享库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想得到大家的帮助.以下是我目前面临的问题.

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

我在 EAR 文件的 weblogic-application.xml 中添加了对 WAR 共享库的引用.

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

在 EAR 中,我确实有一个 ejb 模块,它在 application.xml 中有library-directory"标签.我希望 ejb 模块在共享库中引用 jar 文件,但它在 EAR 的 lib 文件夹中查找 jar 文件.

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.

EAR 的 lib 文件夹中,jar 文件不可用,但 jar 文件在 WAR 共享库中可用.

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

如何解决这个问题,让EAR的ejb模块引用WAR共享库的jar包.

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.

非常感谢您的帮助!

推荐答案

尝试将您需要的 jar 定义为 application.xml 中的模块.类似的东西:

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

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

这篇关于如何使 EAR 引用 WAR 共享库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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