• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Messy undeployment

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have noticed that at least in version 5.0.28, that undeployment of a web-app using tomcat manager, removes all the related files/directories of that web-app in both catalina_home/webapp directory and catalina_home/work/<standard-engine>/<host> directory.

I have done the undeployment by clicking the 'undeploy' link for that web-app at http://<host>:8080/manager/html, where <host> is 'localhost' for my configuration.

However, I started using Tomcat 5.5 and 'undeploy' does not cleanup the directories(catalina_home/work/<standard-engine>/<host> , because of which, when I redeploy the application by simply copying the war file to 'catalina_home\webapp' directory, Tomcat is still using old class files for the java classes in my web-app.

I tried restarting Tomcat to get around this problem and that did not do the cleaning properly either and I ran into the same problem with old versions of my class files.

That gives rise to the following questions,
1) Is this a bug with Tomcat 5.5? Does not seem likely to me, because this would be a serious blow to its main funcationality.

2) Are the 'deployment', 'undeployment', 'start', 'stop' and 'reload' supposed to be done in some other way than the one I am doing(Which is using links on http://<host>:8080/manager/html page for the corresponding web-app)? If so, what is it?

3) Are there any settings that need to configured in server.xml to make this work properly?

I greatly appreciate any relevant responses for my questions.
Thanks
 
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello there!

One year down the line, I have the same problem.

Did you get any solution to this problem?
Can you share with me your experience?

Thanks in advance..

Regards,
Tina
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic