Getting JBAS018717: No deployment content with hash 'xyz' is available in the deployment content repository with eap 6.1
Issue
- We are getting below error while undeploying the existing application and then deploying the new war :
JBAS014613: Operation ("add") failed - address: ([("deployment" => "abc.war")]) - failure description: "JBAS018717: No deployment content with hash 21510ee90f3686e333e7ff1a97026baa4889595f is available in the deployment content repository for deployment 'abc.war'
- Sometimes when restarting the domain controller of our EAP domain, the deployments cannot be found. Investigation reveals that the files are missing from the file system. What could be the cause of this issue?
Resolution
-
The above defined error usually occurs when we delete directory
standalone\dataordomain\dataand then try to redeploy the same application war. The JBoss server unable to delete entries defined instandalone.xml/domain.xmlwith the same hash for the deployed application. -
There is a bug [1] filed with this issue in EAP 6.1 and no one-off patch is available for this.So the workaround is to delete the hast entries from domain.xml and then restart the server.
eg :
<deployments>
<deployment name="abc.war" runtime-name="abc.war">
<content sha1="5ba0640f6a32e8e60f847ede576f14bef6bbcb07"/> << remove this
</deployment>
</deployments>
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
