Wednesday, May 8, 2013

JBOSS AS 7.1.1 Final War Deployment




Problem:  JBOSS 7.1.1 Final not explode or unpack the APPWeb.war file inside deployment folder.
(APPWeb - is my example application)

Solution is: 

I think JBOSS 7.1.1 Final does not create or unpack or explode the .war file present in deployment folder
It will create in C:\jboss-as-7.1.1.Final\standalone\tmp\work\jboss.web\default-host
Not in C:\jboss-as-7.1.1.Final\standalone\
1) This type problem face when we want to access resource file or image files from the deployed folder.
This problem faces into remote servers (UAT or Production environment) where we are just copy .war file to deployment folder.
Application Successfully deployed but   “.war”  file is remain same.  Like below 




2) So manually we need deploy exploded folder, it will look like.
e.g.  Folder name should be “APPWeb.war”  like below




3) Do below changes in standalone.xml
Add this parameter to enable hot deploy  auto-deploy-exploded="true"   and deploy exploded war file


        <subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
            <deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" auto-deploy-exploded="true" deployment-timeout="60"/>
        </subsystem


4) for  more help please visit

16 comments:

  1. Clear Shot...Helped a Million...

    ReplyDelete
  2. Well to be honest the articles and the blogs are really appreciative.

    Matrimony Sites in Chennai

    ReplyDelete