JBoss AS 7的部署内容在哪里 [英] Where is deployed content for JBoss AS 7

查看:106
本文介绍了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 如果将战争文件名部署为样本",则可以看到此文件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文件的关键.但是,您不会通过在"content"目录中搜索"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内容,您将看到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屋!

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