aspose file tools*
The moose likes Tomcat and the fly likes overwrite the class file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "overwrite the class file " Watch "overwrite the class file " New topic
Author

overwrite the class file

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
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: 60057
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: overwrite the class file
 
Similar Threads
Debug in tomcat
Stop Start Tomcat Everytime/Other way?
eclipse tomcat context reloading on each jsp save :(
Do I need to restart TOMCAT???????
Suddenly getting java.lang.NoClassDefFoundError