How to deploy a simple war file on JBOSS 7?

vivek rai picture vivek rai · Oct 9, 2012 · Viewed 19.6k times · Source

I deployed a simple war file (vivek.war) which contains a simple index.jsp file successfully in Jboss-5.X.X and Jboss-6.X.X. I simply placed the war file in server\default\deploy

And then went to localhost:8080/vivek/index.jsp and everything was fine.

But Similarly, for Jboss-as-7.1.1, I deployed the war file in standalone standalone\deployments and started \bin\standalone.sh and then went to localhost:8080/Hello/index.jsp does not display the file. it shows HTTP Status 404-/vivek/ (description The requested resource (/axis2/) is not available.) in the browser.

What is the procedure to deploy a simple war file on Jboss-as-7.1.1 and how i get in browser.

if nay one have idea please help me?

Thanx

Answer

cache picture cache · Oct 9, 2012

You should PUT an empty flag file warname.dodeploy (ex. vivek.war.dodeploy) in your deployments directory.

More information about flag files is available in the README.TXT in the deployments directory.