Tomcat (may be out of synch) [message #86381] |
Tue, 19 August 2003 07:29  |
Eclipse User |
|
|
|
Originally posted by: josef.henryson.knowledge-economies.com
Hi,
I am running Eclipse 2.0 on Mac OS X 10.2.6.
Recently I've got a problem with the Tomcat webserver (4.1.24) when
developing a Java Servlet. Each time I save the servlet after some changes,
I get the message that Tomcat 'may be out of synch' in the Eclipse debug
window for the Tomcat process. I then need to restart Tomcat (I do it from
Eclips/Sysdeo) to view the changes in the browser.
Anyone familiar with this?
Regards,
Josef Henryson
|
|
|
Re: Tomcat (may be out of synch) [message #86459 is a reply to message #86381] |
Tue, 19 August 2003 11:30  |
Eclipse User |
|
|
|
> Hi,
>
> I am running Eclipse 2.0 on Mac OS X 10.2.6.
>
> Recently I've got a problem with the Tomcat webserver (4.1.24) when
> developing a Java Servlet. Each time I save the servlet after some
changes,
> I get the message that Tomcat 'may be out of synch' in the Eclipse debug
> window for the Tomcat process. I then need to restart Tomcat (I do it from
> Eclips/Sysdeo) to view the changes in the browser.
>
> Anyone familiar with this?
Hi,
as far as I noticed it, it is a message produced by hot code replacement.
Normaly you compile your java files to byte code files stored in *.class
files. When you compile a class and the class is known to a classloader
of tomcat it tries hot code replacement. This hot code replacement fails
if the old class can not replaced within the runtime enviroment of tomcat.
This mostly happends if there are static members of the class or the
class is referenced and variables or names of methods are changed.
As far as I noticed changing something within the body of a method
doesn't normaly cause problems. Also the replacement fails if a
method of the particular class is still in execution (run() methods
of threads for instance).
To summerize:
fails, if there are static variables, used methods, method names
changes and some reference reasons. There must be a notice about
hot code replacement at java.sun.com. Read it somewhere for ages.
Out of sync means that at least one class currently used by tomcat
does not match your binary/source tree of your project. Cause problems
when debugging (linenumbers differs etc.) and may let you take wrong
guesses about the behaviour of your objects.
Martin (Kersten)
|
|
|
Powered by
FUDForum. Page generated in 0.27172 seconds