Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

'cleaning tomcat'

 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have one annoying problem. I try one application, and after erasing it, the Tomcat continuously display me error of that application absence? I really do not get it?! I've deployed and erased many application, but this start happening when I deploy and erase some testing application 'struts2-mailreader-2.0.14.war' from struts official site.
The exception I got is :


So, how can I 'refresh' Tomcat?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Giving a cat a bath is never pretty!

Seriously, have you removed the context descriptor from the /conf/Catalina hierarchy?
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have right. I find 'struts2-mailreader-2.0.14.xml' in \conf\Catalina\localhost\, and delete it. Why oter application didn't create sucha file, and why this one has been stored after deletion? Thanks you anyway!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat automatically generates those files for running apps if one doesn't exist. Deleting the war doesn't cause those file to go away -- you need to do so by hand.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, but why for such a particular file, like 'struts2-mailreader-2.0.14.war' was gone a way? I mean, why not for other wars which I've also deleted, the generating of those files occurs?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That I cannot tell you. I've never seen Tomcat not create the xml files.
 
Goran Markovic
Ranch Hand
Posts: 399
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok. So I need just to check if the same error occurs :-) thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic