且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

JBoss:EAR中的WAR文件在类路径上找不到JAR库

更新时间:2021-06-28 01:31:27

p> application.xml 中的< library-directory> 标签是JavaEE5功能,我不认为JBoss 4.3完全符合JavaEE5(可以做EJB3,是的,但只是部分支持)。

The <library-directory> tag in application.xml is a JavaEE5 feature, and I don't think that JBoss 4.3 is fully JavaEE5-compliant (it can do EJB3, yes, but it's only partial support).

所以你需要回到使用明确声明的JAR文件:

So you need to go back to using explicitly declared JAR files:

<module>
    <java>lib/core.jar</java>
</module>

对于您的属性文件,您需要添加他们所在的目录作为java模块,所以例如:

As for your properties files, you need to add the directory that they're in as a java module, so for your example:

<module>
    <java>lib/classes</java>
</module>