File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes IDEs, Version Control and other tools and the fly likes Tomcat searching for files in a wrong path? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Tomcat searching for files in a wrong path?" Watch "Tomcat searching for files in a wrong path?" New topic

Tomcat searching for files in a wrong path?

Mike Dsa

Joined: Nov 01, 2010
Posts: 1
Hello everyone,

I am a newbie to Tomcat and Struts.
I am not really sure where to post this issue, but I reckon it was the Tomcat that was throwing the error, so I shall post this problem here.

Okay, now my problem is that when I try to run a sample Struts web application (One that I downloaded from Struts' website), Tomcat throws me an error.

Now, all the above files are located at:
I cannot for the life of me understand why tomcat's not taking into consideration "WEB-INF" part?

All this happens when I am trying to run and execute the sample Struts application through Eclipse.
If I make a "WAR" file out of the same thing and put it manually on the "webapps" folder on the Tomcat server, it works like a charm.
Just that for some reason it doesn't work under eclipse IDE...

I have attached a GIF for you guys.

Please pardon me if I posted it at the wrong forum or didn't write my post properly.

WIN 7, eclipse 3.6, Tomcat 7, Struts 2.

Thank you.

[Thumbnail for tomcat error.gif]

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63868

As this seems to be an issue with IDE setup, it's been moved to the IDEs forum.

[Asking smart questions] [About Bear] [Books by Bear]
palla jayakrishna

Joined: Oct 01, 2008
Posts: 7
Hi Greenhorn ,
I also had this kind of issue like

"Publishing failed with multiple errors Resource is out of sync with the file system"

after doing this worked fine

Eclipse produces this message when a file in an Eclipse project is changed outside of Eclipse. To avoid it:

a) Don't change files outside of Eclipse
b) Refresh the workspace/project after changing files outside of Eclipse F5 or
c) Enable Window > Preferences > General > Workspace > Refresh Automatically
I agree. Here's the link:
subject: Tomcat searching for files in a wrong path?
It's not a secret anymore!