Solved

Tomcat 5.5 Returns 404 Error in Eclipse Despite Using Knowledgebase Fixes

Posted on 2013-01-17
8
705 Views
Last Modified: 2013-01-22
I've been working on a project for the past year with no issues, but all of a sudden the Tomcat 5.5 server that I have set up in Eclipse suddenly keeps returning 404 Resource Not Found errors.

I've searched through the knowledge base for the past three days but I still keep getting nothing no matter what I attempt.  I'm listing them below.

Checked to make sure the server is running.  (It is.)
Checked other projects that run on the server work.  These projects have been working up until last week but now they suddenly don't.
Created a new HelloWorld project for testing purposes, but same 404 error despite shutting down the server and republishing.
Attempted to run from Chrome, Firefox, and Internet Explorer with the same results.
Changed server location to use the Tomcat installation but no change.
Copied the ROOT folder of the server installation on my machine to the one in .metadata\.plugins\org.eclipse.wst.server.core\tmp0.  (Nothing changed.)
Uninstalled, restarted, and reinstalled Tomcat, but no change.

I'm tearing my hair out and would appreciate any assistance.  My current server setup is attached as an image file.

Thank you very much in advance.
ServerSetup.png
0
Comment
Question by:CoderParthena
  • 4
  • 4
8 Comments
 
LVL 27

Expert Comment

by:dpearson
ID: 38797838
If you're getting a 404 it means that tomcat is running (as you already confirmed) but it doesn't believe there are any web apps installed in its webapps folder.  Hence the 404.  A 404 actually rules out a number of possible problems - like a corrupt webapp or tomcat itself not running as those would generate a failure to connect to the webapp error, instead of a "clean" 404 - which is a result served by tomcat.

That means I would suggest focusing hard on the "deploy path" in the tomcat settings.  I would try changing/testing this in several ways:
a) Just switch to a new folder with a unique name.
b) If after the switch and deploying it's still failing, search for that folder on your local drive and see if there are indeed any files within it.
c) If not, try manually copying a working webapp (such as the ROOT project) to that folder and see if that project now works
d) If that all fails, I'd double check your tomcat installation by running it outside of eclipse, but with the same deployment folder (you may need to edit the server.xml to set the "webapps" folder to the correct location).  Does that work?  If not, something is wrong with tomcat.  If it works, something is wrong with Eclipse.

Hope some of that helps move you along a bit.

Doug
0
 

Author Comment

by:CoderParthena
ID: 38801305
Hey, Doug.

Thank you very much for the help.  I didn't want to reply back until I'd run all the tests you suggested a few times to make sure I wasn't going nuts.

Unfortunately, it looks like something major-leagued screwed up with Tomcat since I can't even run it outside Eclipse anymore though what sort of voodoo caused that, I have no idea.
0
 
LVL 27

Expert Comment

by:dpearson
ID: 38802501
Sounds like it's time for a complete re-install of Tomcat and then re-integration into Eclipse.

Doug
0
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

 

Author Comment

by:CoderParthena
ID: 38802756
Yeah, that was one of the things I tried originally, but it didn't work.
0
 
LVL 27

Expert Comment

by:dpearson
ID: 38804379
You're saying that even after a clean re-install of tomcat you can't start it outside of Eclipse and bring up the default apps?  What OS are you using?
0
 

Author Comment

by:CoderParthena
ID: 38806883
Windows 7.  And, yes, that's what I was saying.

I'm currently reverting the machine back to the factory settings.  I've got all my code backed up in SVN, but it seems that other programs are having bugs, too.  The antivirus isn't picking up anything, so it seems that there's something glitchy with the machine that, hopefully, a clean install will fix.

If it does, do you mind if I award you at least partial points, Doug?  You were very helpful in trying to get it to work.
0
 
LVL 27

Accepted Solution

by:
dpearson earned 500 total points
ID: 38807012
Sorry to hear you're having so many problems with the machine.  I think you're doing the right thing by resetting the machine itself back as far as possible - hopefully you'll uncover the root cause.  And of course I'd be only too happy to accept any points you wish to share for at least moral support :)

Doug
0
 

Author Closing Comment

by:CoderParthena
ID: 38807130
Thanks, Doug.  :)  I really appreciate all your help.
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
servlet filter example 37 72
iterator/ListIterator approach 17 39
runtime exception 2 42
What is the use of Forwarding Class in java 1 15
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
How to install Selenium IDE and loops for quick automated testing. Get Selenium IDE from http://seleniumhq.org Go to that link and select download selenium in the right hand columnThat will then direct you to their download page.From that page s…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question