JBoss 7.1如何添加模块 [英] JBoss 7.1 How to add a module
问题描述
这个注释存在于JBOSS模块中:
< module xmlns =urn:jboss:module:1.1name =org.jboss.ws.api>
该jar位于JBOSS\modules\jboss\ws\api(jbossws- api-1.0.0.GA.jar)
我没有使用maven,所以我如何包括这个依赖关系?我可以在清单中使用jboss-deployment-structure或Dependencies吗?
我的意思是访问我的Lib中的jar。理想情况下,jar jbossws-api-1.0.0.GA.jar必须位于JBoss 7.1 Runtime Libs中。
我已经尝试在清单中有依赖关系, jboss-deployment_structure bu当然与JBoss 7.1 Runtime Libs没有更新。
我认为必须更新文件standalone.xml才能添加此模块。请向我解释一下我如何做?
谢谢。
只有在不自动包含的情况下,才需要添加依赖关系。
如果org.jboss.ws.api不是自动的(你会发现部署到服务器时),我不明白为什么不会是,通过jboss-deployment-structure.xml添加它是要走的路。
该文件应包含在您的WEB-INF目录中,以及您的web.xml和jboss-web.xml文件。
请参阅 AS7类加载文档 。
I use the annotation @WebContext in my project using JBoss 7.1.
This annotation is present in a JBOSS module:
<module xmlns="urn:jboss:module:1.1" name="org.jboss.ws.api">
The jar is located in JBOSS\modules\jboss\ws\api (jbossws-api-1.0.0.GA.jar)
I'm not using maven so how do I include this dependency? Can I use the jboss-deployment-structure or Dependencies in the MANIFEST?
My point is to have access to the jar in my Lib. Ideally the jar jbossws-api-1.0.0.GA.jar must be located in JBoss 7.1 Runtime Libs.
I have already try to have the dependency in the MANIFEST and jboss-deployment_structure bu of course with that JBoss 7.1 Runtime Libs isn't updated.
I think the file standalone.xml must be updated in order to add this module. Please explain to me how I do that?
Thanks.
You only need to add a dependency if its not automatically included.
If the org.jboss.ws.api not automatic( you will find out when you deploy to the server ), and I don't see why it wouldn't be, adding it via the jboss-deployment-structure.xml is the way to go. That file should be included in your WEB-INF directory, along with your web.xml and jboss-web.xml files.
See AS7 Classloading Documentation on the jboss-deployment-structure.xml if need be.
这篇关于JBoss 7.1如何添加模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!