JBoss AS 7 的部署内容在哪里 [英] Where is deployed content for JBoss AS 7
问题描述
我是 JBoss AS 7 的新手.我尝试在 JBoss AS 7 上部署我的 war 文件,这似乎工作正常.我的问题是在哪里可以看到部署的内容.
I am new to JBoss AS 7. I have tried to deploy my war file on JBoss AS 7, which seems working fine. My question is where I can see the deployed content.
我希望它像 Tomcat 一样,它应该有一个探索过的 war 文件夹,一些地方可以保存已部署的内容.JBoss AS 7 有没有这样的东西.
I would expect it to be like Tomcat, it should have a explored war folder some where to hold the deployed content. Is there such thing for JBoss AS 7.
推荐答案
应该在 JBOSS_HOME/standalone/deployments 参见此处
如果你将一个war文件名部署为'sample',那么你可以看到这个文件domain/configuration/domain.xml为
If you deploy a war file name as 'sample' then you could see this file domain/configuration/domain.xml as
[...]
<deployments>
<deployment name="sample.war"
runtime-name="sample.war">
<content sha1="dda9881fa7811b22f1424b4c5acccb13c71202bd"/>
</deployment>
</deployments>
[...]
<server-groups>
<server-group name="main-server-group" profile="default">
[...]
<deployments>
<deployment name="sample.war" runtime-name="sample.war"/>
</deployments>
</server-group>
</server-groups>
[...]
ls 域/内容/
|---/47
|-----95cc29338b5049e238941231b36b3946952991
|---/dd
|-----a9881fa7811b22f1424b4c5acccb13c71202bd
这也适用于独立/内容.
This works for standalone/content as well.
请注意,在standalone.xml 文件中,如上所述,sample.war 文件有一个哈希值.散列是定位 WAR 文件的关键.但是,您不会通过在内容"目录中搜索sample.war"来找到它.哈希的前 2 个字符是父目录.其余的是包含 WAR 文件的目录.但是 WAR 文件已重命名为内容"
Note that in the standalone.xml file, as referenced above, the sample.war file has a hash. The hash is the key to locating the WAR file. You will not find it by searching for "sample.war" in the 'content' directory though. First 2 characters of hash is parent directory. The rest is the directory containing the WAR file. However the WAR file has been renamed to 'content'
|---/47
|-----95cc29338b5049e238941231b36b3946952991
|---/dd
|-----a9881fa7811b22f1424b4c5acccb13c71202bd
|-------content <-- this is really sample.war file. JBoss renames it. (go figure!)
做一个 jar -xvf content,你会看到 sample.war 的所有类、web.xml 等文件
do a jar -xvf content and you will see all the class, web.xml, etc files for sample.war
这篇关于JBoss AS 7 的部署内容在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!