File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error" Watch "Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error" New topic
Author

Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error

Natalie Danilina
Greenhorn

Joined: Sep 03, 2009
Posts: 4

Hi everybody. I've got a problem: have to use console instead of eclipse.

The sad story starts like this. My OS is ubuntu-9.04. I installed tomcat-6.0.20 by extracting it from .tar.gz. I put it under the /usr/share/tomcat-6.020 directory.

Then I started tomcat from console, and everything seemed to be fine. The http://localhost:8080/ request was answered with the $CATALINA_HOME/webapps/ROOT/index.html page.

The next step was to put my tomcat in the eclipse's servers list. So, I went to Preferences > Server > Runtime Environment > Add > Apache Tomcat v6.0 (here I also browsed to my tomcat and changed JVM from JRE to JDK). Finally, I added my server to the Servers list.

So, having everything configured, I started my tomcat from eclipse, opened a browser and asked for localhost. 404 all over sudden. Despite the fact that the eclipse's console has shown no errors.

I would be grateful for any help.

Natalie Danilina
Greenhorn

Joined: Sep 03, 2009
Posts: 4
The problem is solved.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61623
    
  67

It's considered polite to post your solution.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Natalie Danilina
Greenhorn

Joined: Sep 03, 2009
Posts: 4

Sorry, I discovered the problem was too trivial and decided that nobody wold take real interest in it.

I had to specify what module I wanted to publish. It could be done in these steps:

  1. Open your Tomcat settings (double click or F3 on your Tomcat instance in 'Servers' view in Eclipse).
  2. Click on "modules" tab and pick your module. In my case it was "/usr/share/tomcat-6.020/webapps/ROOT" as docbase and "/" as path.

And than I was able to see my welcome page.

I was prompted how to do this by ChssPly76.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Starting up tomcat-6.0.20 from eclipse-3.5.0 (galileo) leads to the 404 error