OMG – what is going on with Eclipse (3.3 Europa) – has anyone come accross this problem (bearing in mind I have been messing about with uninstalling different Tomat containers and installing others – but anyway thats another story)
When I change a line of code or remove a class within my project – when I come to debug – it actually goes to a line that is commented out and runs that line regardless!!!! e.g.
//System.out.println(‘you should not be able to read this!’);
UPDATE: This can be solved by setting Project -> Build Automatically (see answer below).
REMAINING PROBLEM:
Eclipse is not keeping my hot deploy folder current with the latest changes to my project:
I found out to my horror that some old remenants of my project are ‘hanging around’ in the folder that I think Eclipse uses for hot deploys or something
C:\myJavaCode.metadata.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\myWebApp
basically it is not actually copying accross any changes made in the classes of my working dir!?!??
…anyway – in order to keep my project up to date – I have to modify this folder too – TOTALLY UNACCEPTABLE – as you can’t develop in this way – it would take you eons! Anyway, if anyone can help explain to me what stupid thing I have done to get me in this mess and how I can get out of this mess – I would really appreciate it.
Have a look at:
and:
maybe you accidentally disabled the auto-deploy features.