aspose file tools*
The moose likes Tomcat and the fly likes updating Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "updating " Watch "updating " New topic
Author

updating

Poorav Chaudhari
Ranch Hand

Joined: Sep 17, 2002
Posts: 50
Hello all,
I would like to hear your thoughts on how the experienced developers have handled this scenario. At the moment I follow the steps below everytime I want to update my application on the production server. Assume that I have already deployed one version of the application. I have a context entry for the application in the server.xml file. I am going to call my application MyApp for the moement.
1. Create a MyApp.war file.
2. Shut tomcat
3. Remove MyApp.war and the MyApp folder from the webapps/ folder.
4. i remove the context entry for the application in server.xml (i basically just change the name)
5. copy the new MyApp.war file into webapps/ folder,
6. start tomcat. This will create the MyApps folder.
7. change the server.xml entry back.
8. Restart tomcat.
Shouldn't the process of deploying be simpler. I know if I didn't have an entry for the application in the server.xml file, then I would simply have to replace the files and restart tomcat. But i need the server.xml entry because the context has the JNDI datasource declaration and the logger declaration.
by the way I am using tomcat 4.1.24, and jdk 1.4.1
I would really like to hear your input on this. Thank you.
Poorav


Poorav Chaudhari
Poorav Chaudhari
Ranch Hand

Joined: Sep 17, 2002
Posts: 50
Please ignore this entry, This is an accidental post. I have submitted same entry with a meaningful subject line again.
 
 
subject: updating