Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy a simple war file on JBOSS 7?

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

like image 373
vivek rai Avatar asked Dec 27 '22 16:12

vivek rai


2 Answers

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.

like image 109
cache Avatar answered Jan 06 '23 07:01

cache


Hmm, my JBoss 7.1.1 do not need .dodeploy file in deployments directory. Its enough simply to copy .war or .ear or ejb.jar to deployments dir for server to start deployment process. Please provide server.log to see the details. Do you set context-root tag in META-INF/web.xml or application.xml?

like image 45
Kirill Mikhailov Avatar answered Jan 06 '23 07:01

Kirill Mikhailov