• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Preventing deployee war file

 
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
shawn peter
Ranch Hand
Posts: 1325
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 24500
167
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
reply
    Bookmark Topic Watch Topic
  • New Topic