Why JBoss does not deploy applications if it is deployed or undeployed using mv command.
Issue
- Why JBoss does not deploy the application when it is added or removed inside the
"standalone/deployments"directory couple of times? - Why deployments acts differently when using operating system command
"rm"and"mv"command. - Following is the sequence which can be used to reproduce this issue:
[userone@userone standalone]$ cp TestApp.war deployments/ --> works fine and application gets deployed. .deployed marker file gets created.
[userone@userone standalone]$ rm deployments/TestApp.war --> Test app gets undeployed and the .undeployed marker file gets created.
[userone@userone standalone]$ cp TestApp.war deployments/ --> Gets redeployed and .undeployed changes to .deployed.
[userone@userone standalone]$ mv deployments/TestApp.war log/ --> moved the app from /deployments to /log folder. App gets undeployed (.undeployed created).
[userone@userone standalone]$ mv log/TestApp.war deployments/
-
After last command execution, the application gets copied to /deployments folder but does not gets deployed. The
".undeployed"marker file is still there as it is. -
Why am I getting the WAR file renamed to
".undeployed"?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.