How to deploy a war file in JBoss AS 7?

user244333 picture user244333 · Aug 10, 2011 · Viewed 144.1k times · Source

I downloaded JBoss Application Server 5 and successfully deployed a war file. I copypasted the Hello.war which has a simple index.jsp file into

\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\deploy

and it worked fine.

However when I used JBoss AS 7 and deployed the war file here, it did not get executed.

jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments

How to deploy it?

EDIT: I googled it but was not able to find info as JBoss AS 7 is relatively new.

Answer

user244333 picture user244333 · Aug 12, 2011

Actually, for the latest JBOSS 7 AS, we need a .dodeploy marker even for archives. So add a marker to trigger the deployment.

In my case, I added a Hello.war.deployed file in the same directory and then everything worked fine.

Hope this helps someone!