Chandu
Chandu

Reputation: 101

Can we deploy web application as a folder instead of war file in JBoss AS 7

I am having two queries 1. Can I deploy web application as a folder instead of war file in JBoss AS 7? 2. If not ,how to update the JSP or html or js files with out building/deploying the war file again?

Upvotes: 0

Views: 6491

Answers (1)

Lan
Lan

Reputation: 6660

JBoss supports the ability to deploy an archive file or as an exploded directory. To explode a Java EE archive, unzip the archive to a directory that is named the same as the archive file. As long as the directory name has the correct extension (.war, .ear, etc.) JBoss will deploy the directory normally. So if your war file has name HelloWorld.war, your exploded directory name should be HelloWorld.war too.

Please also note that it is recommended to edit your deployment-scanner in the standalone.xml configuration file and changing auto-deploy-exploded property back to false for exploded deployment. Quote from JBoss 7.1 Documentation:

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.

Edit:

Please see link https://community.jboss.org/thread/200114. Looks like this is a confirmed bug in JBoss 7.1.1 that JBoss ignores the configuration in jsp-configuration and does not reload modified jsp. It is fixed in 7.1.2. You need to build 7.1.2 nightly build yourself. Or talk to JBoss Support if you have Enterprise support.

Upvotes: 3

Related Questions