• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 740
  • Last Modified:

Tomcat 5.5 Returns 404 Error in Eclipse Despite Using Knowledgebase Fixes

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
CoderParthena
Asked:
CoderParthena
  • 4
  • 4
1 Solution
 
dpearsonCommented:
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
 
CoderParthenaAuthor Commented:
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
 
dpearsonCommented:
Sounds like it's time for a complete re-install of Tomcat and then re-integration into Eclipse.

Doug
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
CoderParthenaAuthor Commented:
Yeah, that was one of the things I tried originally, but it didn't work.
0
 
dpearsonCommented:
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
 
CoderParthenaAuthor Commented:
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
 
dpearsonCommented:
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
 
CoderParthenaAuthor Commented:
Thanks, Doug.  :)  I really appreciate all your help.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now