Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do Eclipse and Tomcat actually work together on Linux?

 
Russell Bateman
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://www.eclipse.org/webtools/community/tutorials/BuildJ2EEWebApp/BuildJ2EEWebApp.html

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 ]
 
Hongli Li
Ranch Hand
Posts: 124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18164
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rest assured. I've been using Eclipse with the sysdeo Tomcat plugin for years, from Tomcat 4.1 all the way up to Tomcat 6.

It's really no different in Linux than it is in Windows.
 
Bobby Sharma
Ranch Hand
Posts: 598
3
Google App Engine jQuery Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Glad to hear that Tim.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic