File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Preventing deployee war file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "Preventing deployee war file" Watch "Preventing deployee war file" New topic
Author

Preventing deployee war file

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1160
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

Joined: Feb 19, 2008
Posts: 2902
    
    1

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


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1160
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

Joined: Jun 25, 2001
Posts: 16095
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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?


SCJP, SCWCD.
|Asking Good Questions|
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Posts: 2716
    
    6

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...
 
GeeCON Prague 2014
 
subject: Preventing deployee war file