12.31.2010

Changing default logs and deploy path location in JBOSS Application Server

This article discusses the method to change the default logs and deploy path in JBOSS Application Server.
 
1.       In JBOSS default logs path will be ‘$JBOSS_HOME/server//log’
 
2.       Create the directory path where logs need to stored
 
 
          $ mkdir –p /logs/tep/test/jboss
 
 
3.       Go to ‘$JBOSS_HOME/server//conf’ folder
 
4.       Update the ‘jboss-log4j.xml’ file with below entries.
 
 
         < param name="File" value="/logs/tep/test/jboss/server.log" />
         < param name="File" value="/logs/tep/test/jboss/audit.log" />
 
 
5.       Restart the JBOSS Instance.
 
Changing default deploy path
 
1.       Default deploy path will be ‘$JBOSS_HOME/server//conf’
2.       Create the directory path where war/ear files will be deployed.
 
 
          $ mkdir –p /production/tep/
 
 
3.       Go to ‘$JBOSS_HOME/server//conf’ folder
 
4.       Edit ‘jboss-service.xml’ file
 
5.       Search for URLs in ‘jboss-service.xml’ and update the file as below
 
 
         
                        deploy/, /production/tep/
         

 
 
6.       Restart the JBOSS Instance.

No comments:

Post a Comment