由于某种原因,我无法再在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.
Run Code Online (Sandbox Code Playgroud)
我不能从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"}}
Run Code Online (Sandbox Code Playgroud)
请帮助我找出问题所在。
当cli引用了无法找到的应用程序时,就会发生这种情况。
也许您删除了独立文件夹中的数据目录?
要解决此问题,您可以编辑standalone.xml文件(或您使用的任何版本)并查找Deployments元素,然后删除失败的Deployment元素,然后尝试再次部署
例如
<deployments>
<deployment name="my.ear" runtime-name="my.ear">
<content sha1="xxxxxxx"/>
</deployment>
</deployments>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2056 次 |
| 最近记录: |