The data/content folder is an internal folder to store the managed deployments.
JBoss will not delete this folder unless you use the management to undeploy it.
So I suppose there is some kind of external process which delete this folder for some reason.
You need to fix that! There is no way to fix tat automatically. You might use the admin-only mode during startup to manual fix this via CLI.
But as I mentioned before the fix is to not delete the data folder, or maybe only data/tmp.
I can see this in the logs:
00:32:16,597 INFO [org.jboss.as.repository] (ServerService Thread Pool -- 51) JBAS014903: Content /opt/jboss-eap-6.4/standalone/data/content/3a/e0cff91d7f40d5b4c7cefbbd1eab34025bdc15 is obsolete and will be removed
I can't find any documentation about what obsolete means, do you know what it is or when can I investigate?
From what I understand your server configuration does not have a reference to the deployed content with the e0cff91 SHA1 and therefore the file will be removed.
I have the same problem with EAP 6.4, misteriously. Whe deploy war, and after a time (hours, a day) the
content data for the war is deleted !!!! We use a domain not standalone.
Anybody Knows what's happening ??
Thanks in advance
There is a deployment cleanup task for HostController process. This task checks for deployments which are not _accessed_ from the content repository for 5minutes. If so it deletes the content from the content repository. For some reason, this cleanup interval is not made configurable.
Hope that helps.