wood burning stoves 2.0*
The moose likes Tomcat and the fly likes 'cleaning tomcat' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark " Watch " New topic
Author

'cleaning tomcat'

Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
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

Joined: Jan 10, 2002
Posts: 60759
    
  65

Giving a cat a bath is never pretty!

Seriously, have you removed the context descriptor from the /conf/Catalina hierarchy?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
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

Joined: Jan 10, 2002
Posts: 60759
    
  65

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

Joined: Sep 26, 2008
Posts: 399
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

Joined: Jan 10, 2002
Posts: 60759
    
  65

That I cannot tell you. I've never seen Tomcat not create the xml files.
Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
ok. So I need just to check if the same error occurs :-) thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: 'cleaning tomcat'
 
Similar Threads
tomcat start up problem with spring framework
First Struts Application + Unable to load configuration
Unable to load configuration-struts2
Problem starting up servlet-examples & jsp-examples
Error while trying to run struts2-blank-2.1.8.1 sample application in Eclipse and Tomcat 6