aspose file tools*
The moose likes Linux / UNIX and the fly likes Do Eclipse and Tomcat actually work together on Linux? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "Do Eclipse and Tomcat actually work together on Linux?" Watch "Do Eclipse and Tomcat actually work together on Linux?" New topic
Author

Do Eclipse and Tomcat actually work together on Linux?

Russell Bateman
Ranch Hand

Joined: Feb 26, 2008
Posts: 69
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

Joined: Oct 29, 2006
Posts: 124
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16068
    
  21

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Bobby Sharma
Ranch Hand

Joined: Mar 18, 2008
Posts: 574
    
    1

Glad to hear that Tim.


Back to Java , again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Do Eclipse and Tomcat actually work together on Linux?