• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

overwrite the class file

 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on j2ee web application based on Tomcat 5.0.8. Sometimes I modify java classes, then redeploy to tomcat and restart Tomcat, those modification will be in effect. But the problem, the project is too huge to restart and waste lots of time.

I want to get a shortcut.

So I try to manually overwrite the class file in the Tomcat webapps, then reload page. but this way doesn't work. I search whole directory, I can't find another same name java class file there.

What is the tricky thing ?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64718
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you add a class file, the application must be restarted. No way around it.

You do not need to shut down and restart Tomcat, just the web application.

Read the documentation on the Tomcat manager application for details.
 
Edward Chen
Ranch Hand
Posts: 798
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You do not need to shut down and restart Tomcat, just the web application.
/QUOTE]

Sorry, I don't understand this, how to just 'shut down' that web application ? Could you give me more details?

Thanks.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat ships with a "manager" application that gives you the ability to stop, restart, deploy, and un-deploy applications.

http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html


It has two interfaces: a command line (query-string), and an GUI (HTML Forms Page).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic