| Author |
overwrite the class file
|
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
|
|
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
Joined: Jan 10, 2002
Posts: 56182
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Edward Chen
Ranch Hand
Joined: Dec 23, 2003
Posts: 758
|
|
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
Joined: Dec 11, 2004
Posts: 13410
|
|
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).
|
Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
|
 |
 |
|
|
subject: overwrite the class file
|
|
|