Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Startup/Restart Resource Not Found Problem

 
Ethan Schreiber
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a strange problem with struts and Tomcat. I am using Struts 1.1 and I have tried both Tomcat 5.0.27 and 4.1.30.

Here is the problem:

When I deploy my war file and start Tomcat, the server starts up fine. When I try to access any struts action, I get "The requested resource (/xxx.do) is not available."

Here is the strange part. If I stop and start Tomcat once, I can then access any action just fine with no resource not available errors.. This happens every time I deploy the app. Anyone know what is going on?

Thank you for your time,

Ethan Schreiber
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Strange.

Is the .do set up as your welcome file in web.xml??? If so, you can't do that.

It might also be worth it to check web.xml for ActionServlet's load-on-startup value.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic