出于某种原因,我无法再在我的jboss服务器上部署,我遇到了异常:
17:53:41,244 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([("deployment" => "my.ear")]) - failure description: "JBAS018717: No deployment content with hash eee1ea03abae2b5f61718c00189c0ec40bf914a0 is available in the deployment content repository for deployment 'my.ear'. This is a fatal boot error. To correct the problem, either restart with the --admin-only switch set and use the CLI to install the missing content or remove it from the configuration, or remove the deployment from the xml configuration file and restart."
17:53:41,250 FATAL [org.jboss.as.server] (Controller Boot Thread) JBAS015957: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
我无法从cli
取消部署:
$JBOSS_HOME/bin/jboss-cli.sh --connect controller=localhost:my_port
[standalone@localhost:my_port /] undeploy my.ear
Undeploy failed: {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-1" => "JBAS014807: Management resource '[(\"deployment\" => \"my.ear\")]' not found"}}
请帮帮我弄清楚出了什么问题。
答案 0 :(得分:4)
当cli引用它无法再找到的应用程序时会发生这种情况。
也许您删除了独立文件夹中的数据目录?
要解决此问题,您可以编辑standalone.xml文件(或您正在使用的任何版本)并查找deployments元素,并删除失败的部署元素,然后尝试再次部署
例如
<deployments>
<deployment name="my.ear" runtime-name="my.ear">
<content sha1="xxxxxxx"/>
</deployment>
</deployments>