简体   繁体   English

通过删除jboss中的文件来取消部署战争

[英]Undeploy war by deleting file in jboss

I have deleted wars: 我删除了战争:
...\\jboss-eap-6.3\\standalone\\mywar.war
...\\jboss-eap-6.3\\standalone\\deployments\\mywar.war
...\\jboss-eap-6.3\\standalone\\deploymentBackup\\mywar.war

and then run: 然后运行:
.\\bin\\standalone.bat

Jboss still sees the war files. Jboss仍然可以看到战争档案。 Why? 为什么? Where has he hiden it? 他藏在哪里?

  1. Stop JBoss and verify that it's not running. 停止JBoss并确认它没有运行。

  2. Open the file ...\\jboss-eap-6.3\\standalone\\configuration\\standalone.xml with a text editor. 使用文本编辑器打开文件...\\jboss-eap-6.3\\standalone\\configuration\\standalone.xml

  3. At the bottom of the file you find the deployments section: 在文件底部,您可以找到“部署”部分:

<deployments>
...
</deployments>
  1. Remove the whole deployments section. 删除整个部署部分。
  2. Save the file 保存文件
  3. Run JBoss 运行JBoss

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM