Solved

Tomcat 5.5 Returns 404 Error in Eclipse Despite Using Knowledgebase Fixes

Posted on 2013-01-17
8
698 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 26

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 26

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
 

Author Comment

by:CoderParthena
ID: 38802756
Yeah, that was one of the things I tried originally, but it didn't work.
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 26

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 26

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
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 about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

744 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now