This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Reply Bookmark "Tomcat searching for files in a wrong path?" Watch "Tomcat searching for files in a wrong path?" New topic
Author

Tomcat searching for files in a wrong path?

Mike Dsa
Greenhorn

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.

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

Thank you.



[Thumbnail for tomcat error.gif]

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56191
    
  13

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
palla jayakrishna
Greenhorn

Joined: Oct 01, 2008
Posts: 5
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: http://aspose.com/file-tools
 
subject: Tomcat searching for files in a wrong path?
 
Similar Threads
Resource not Found error continues even after resource is removed from xml file
Log4j\Layout error
Netbeans 7.0.1 - failed to deploy web application in Tomcat 7.0.23
Newbie HelloWorld Struts.xml problem
Spring webMVC - org.springframework.web.servlet.DispatcherServlet noHandlerFound