[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Tomcat 5.5 Returns 404 Error in Eclipse Despite Using Knowledgebase Fixes

Posted on 2013-01-17
8
Medium Priority
?
729 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 28

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 28

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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

Author Comment

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

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 28

Accepted Solution

by:
dpearson earned 1500 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

Industry Leaders: 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!

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.
Suggested Courses

650 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