I have openSuSE 10.2, JDK 1.6, Eclipse 3.3.1 and Tomcat 6.0. I have had no trouble at all working in Eclipse, running, debugging, etc. until it comes to setting up a simple servlet with minimal Java, simple JSP, etc. In fact, just to try this out, I'm using a tutorial from www.eclipse.org:
It just doesn't work in Tomcat (or in the wiring between Eclipse and Tomcat). I type into my Firefox browser and I get an HTTP 404 from it with no comment from Eclipse. Now, if I use the wrong port in the address line, say 8005 instead of 8080, then Eclipse lets me know (even if the messages aren't abundantly clear as to what is wrong).
When I copy all the files over into the Tomcat webapp directories by hand, it works fine.
I'm beginning to believe that Eclipse and Tomcat only work together on Windows (what friends tell me) and I'm loathe to throw away my Linux box that I do other development on anyway and try to live on Windows.
Any experience, ideas, cat-calls, etc. you can make about this?
[ March 04, 2008: Message edited by: Russell Bateman ] [ March 04, 2008: Message edited by: Russell Bateman ]
if you deploy your app to tomcat, you war file should not contain j2ee.jar or servletapi.jar, or servlet.jar, since Tomcat has them all. it will confuse tomcat if you have them in under your WEB-INF/lib folder
Do you know why this cup is useful? Because it is empty.