• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat searching for files in a wrong path?

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
tomcat-error.gif
[Thumbnail for tomcat-error.gif]
tom
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As this seems to be an issue with IDE setup, it's been moved to the IDEs forum.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic