I Have no problem in deploying an 'app.war' file when copied into the below deployments folder :
"jboss-as-7.0.0.Final\jboss-as-7.0.0.Final\standalone\deployments"; JBoss7 would deploy it properly.
I would like to do the same for an exploded folder 'app'(i.e. extracted app.war). Apache Tomcat works properly with an exploded folder in its deployment directories, but am unable to do the same for JBoss.
I did put deployment-scanner auto-deploy-exploded='true' in JBoss console; and I did create 'app.war.dodeploy' file along with an extracted 'app' folder in deployments directory. I am unable deploy and start the 'app' in jboss server.
I am wondering if it is possible to deploy an exploded war file (unzipped war) in JBoss7.
I would like to particularly deploy an unzipped folder because I am using 'Kwatee' deployment software. Kwatee copies an exploded (extracted war) folder to its target server deployment folder. I would appreciate if anyone knows How to make Kwatee move a 'war' file as it is, instead of moving an extracted war folder. I would also appreciate if anyone can suggest an alternate software for Kwatee or answer my previous related question
We can create a dynamic web project in Eclipse, add a JBoss server and then configure the application to run on the server. Internally, Eclipse will create the war file of the application and place it in the JBoss directory. We can create an index. html file and set the welcome-file in web.
From the JBoss bin directory, run the command jboss-cli --connect to start the JBoss CLI and connect to the application server. Run the /deployment command on the compressed WAR file or exploded WAR folder. [If you are deploying to a managed domain, also run the /server-group command.]
Yes, you can deploy two or multiple WAR files into EAP\standalone\deployments folder. Each web application will have a different context root, using context root you can access the application.
Exploded DeploymentJBoss supports the ability to deploy regular Java EE archives (WAR, EAR, EJB, JAR, etc. files) as a single archive file or as an exploded directory.
Rename your folder to app.war and touch your app.war.dodeploy file.
I would also recommend editing your deployment-scanner
in the standalone.xml configuration file and changing auto-deploy-exploded
property back to false
.
From Admin Guide - JBoss AS 7.0:
Manual deploy mode is strongly recommended for exploded content, as exploded content is inherently vulnerable to the scanner trying to auto-deploy partially copied content.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With