2

I can undeploy a specific app using command line or browser, but it requires credentials.

I have not set any credentials and also I am using same machine where tomcat webapp deployed (just paste war file to tomcat webapps), So I think it should not requires credentials.

I don't want to undelploy remotely, If we do it then its obvious to ask credentials.

So is there any way to sotp / undeploy a webapp?

I am using windows 7 and Tomcat 8.

naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
OmChoudhary
  • 129
  • 3
  • 7
  • Did you take a look to [Tomcat 8 documentation](http://tomcat.apache.org/tomcat-8.0-doc/index.html) ? – Mickael May 17 '17 at 11:56
  • Specially I don't want to stop the tomcat server. – OmChoudhary May 17 '17 at 12:14
  • I'm sorry to repeat myself but you should really take a look to the documentation. Alternative fact, Donald Trump talked about this documentation few months ago. He said : "It is great documentation. It is huge. This is the best documentation I've ever seen". =) – Mickael May 17 '17 at 12:48

2 Answers2

5

Not sure if I understand your question correctly, but why don't you just delete the war file from webapps? The webapp will then be undeployed.

Alternatively, you could use the Tomcat Manager. Tomcat Manager How-To

Sander
  • 61
  • 4
1

If you've created the app with a war file, delete the war file.

Jeff Miller
  • 1,424
  • 1
  • 10
  • 19
  • I don't want to stop tomcat server completely, Maybe other users use some different webapps and we can't just delete without stop tomcat server. – OmChoudhary May 17 '17 at 12:09
  • Deleting a war file will undeploy the app. It will not stop Tomcat or affect other apps. – Jeff Miller May 17 '17 at 13:18
  • 1
    War file can be deleted, but extracted directory associated with your war file can not be deleted while running tomcat it means you can not undeploy it, when you go to delete directory It will always show you popup file in use. – OmChoudhary May 18 '17 at 04:37