Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Preventing deployee war file

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to prevent war file deploying in the webapps folder.
I means all war files in webapps is automatically deploying when tomcat restating.
I NEED TO DEPLOYEE ONLY ONE WAR FILE AND OTHERS NO NEED?
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
aruna sameera wrote:I NEED TO DEPLOYEE ONLY ONE WAR FILE AND OTHERS NO NEED?

KeepItDown
What exactly you're trying here, If you do NOT want other app to get deployed then easy way is to don't keep them in 'webapps' directory OR http://tomcat Home page > Tomcat Manger > List App > undeploy.

HTH
 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No imeans there are more than one war files.I only need to deployee one of the .so i need to prevent others to deployee.
 
Tim Holloway
Saloon Keeper
Posts: 18303
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You didn't actually say what appserver you're using - apparently it's Tomcat. We have a Tomcat forum for questions like that where you can find Tomcat experts to help.

As far as it goes, if it's in the Tomcat webapps directory, by definition, it IS deployed. The only way to un-deploy it is by deleting the WAR/exploded WAR from that directory.

You get better control if you use the TOMCAT_HOME/conf/Catalina/localhost directory and Context xml files to manage your deployment. Have the context reference an unexploded WAR that's located outside of Tomcat.

However, in order to ensure that you don't end up with deployment to the webapps directory, you may need to configure Tomcat not to explode the WAR into webapps. This option varies depending on the version of Tomcat you're using.
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or a simple off the track alternative would be to shutdown Tomcat, rename all packed WARs to something else like .abc and start Tomcat again.




Anyways why would you not want them to load if they are deployed?
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:You didn't actually say what appserver you're using - apparently it's Tomcat. We have a Tomcat forum for questions like that where you can find Tomcat experts to help.

Yes does not look like a JSP question,moving...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic