简体   繁体   English

战争部署期间,WEB-INF / lib jar中的ejb忽略了JBOSS 7模块类

[英]JBOSS 7 module class ignored by ejb in WEB-INF/lib jar during deploy of war

Good day 美好的一天

I am tring to deploy a war file with inside an ejb.jar in WEB-INF/lib path i have also a jboss-deployment-structure.xml used to load a library stored in an external module. 我正打算在WEB-INF / lib路径中的ejb.jar内部部署一个war文件,我也有一个jboss-deployment-structure.xml用来加载存储在外部模块中的库。

a war file 战争档案

WEB-INF
jboss-deployment-structure.xml 
WEB-INF/lib
WEB-INF/lib/ejb.jar

in jboss-deployment-structure.xml is define as follow jboss-deployment-structure.xml中的定义如下

<jboss-deployment-structure>  
    <deployment >
        <dependencies>  
              <module name="my.module.A" />  
        </dependencies> 

    </deployment>  

</jboss-deployment-structure>

ejb.jar has a dependency with a classA stored in my.module.A jar but the deploy fails with a class not found ejb.jar与存储在my.module.jar中classA有依赖关系,但部署失败,未找到类

Thanks in advance 提前致谢

尝试将export =“ true”添加到模块依赖项

<module name="my.module.A" export="true"/>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 JBoss 4.0.2 war部署中找不到WEB-INF / lib jar - WEB-INF/lib jars not found in JBoss 4.0.2 war deploy 在JBOSS 7中,war文件可以访问ear / lib而非Web-inf / lib中的jar文件 - In JBOSS 7 can war file access a jar file located in ear/lib instead of web-inf/lib JBoss:在application.war / WEB-INF / lib中部署JAR - JBoss: deployment of JAR's in application.war/WEB-INF/lib Maven:将 war/web-inf/classes 中的类作为 jar 添加到 war/web-inf/lib - Maven: Adding classes from war/web-inf/classes as a jar to war/web-inf/lib JBoss 6从WEB-INF / war of lib中解压缩jar - JBoss 6 unpacks jars from WEB-INF/lib of war 使用WEB-INF / lib中的jar文件而不是创建新的Jboss模块的JDBC数据源 - JDBC datasource using jar file in WEB-INF/lib instead of creating a new Jboss module 无法在码头9.4.16.v20190411中部署WAR:接收在WEB-INF / lib下处于战争状态的jar的FileNotFoundException - Cannot deploy WAR in jetty 9.4.16.v20190411: receiving FileNotFoundException for jar that is in the war under WEB-INF/lib 当类在JBoss 6 WAR WEB-INF / classes文件夹中时,NoClassDefFoundError - NoClassDefFoundError when class is in JBoss 6 WAR WEB-INF/classes folder 如何将.class下的web-inf / classs打包为jar并将其放入web-inf / lib目录 - how to package the .class under the web-inf/classes as a jar and put it to the web-inf/lib dir JBOSS订购WEB-INF / lib的内容 - JBOSS ordering of contents of WEB-INF/lib
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM