Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Maven2 Deployment in Tomcat 6.0

Related Tutorials


 
 

Share on Google+Share on Google+

Deployment in Tomcat 6.0

Advertisement
Deploy the 'war' file of your application in ?/webapp? to ? /webapps?. There is no need to change the configuration with jdk1.6 and Tomcat 6.0. Tomcat detects the web application and deploy i

Deployment in Tomcat 6.0

     


Deploy the 'war' file of your application in  ?<ARTIFACTORY_INSTALLATION _FOLDER>/webapp? to ?<TOMCAT_INSTALLATION_FOLDER> /webapps?. There is no need to change the configuration with jdk1.6 and Tomcat 6.0. Tomcat detects the web application and deploy it. 

Once the application is deployed successfully, the web application requires the following information:

  • Database location to store artifacts
  • Artifactory config xml file location
  • Backup folder location

To specify all the above three information, a single configuration is used. We only need to specify the artifactory installation folder location during Tomcat startup and artifactory does all the rest task by itself. There is another approach, that is, setup the connection to the derby database using jdbc and configure artifactory in the web application (by including artifactory.config.xml in the web application). 

We can use the environment  variable to specify the location of the artifactory installation folder. In case of Windows, we can add it to Tomcat startup options and Configure Tomcat by specifying  the installation folder to the Java Options.

-Dartifactory.home=<artifactory-install-directory>  e.g. -Dartifactory.home=D:\artifactory-1.2.2\artifactory-1.2.2

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 28, 2008

Related Tutorials

Discuss: Deployment in Tomcat 6.0   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com