This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I just installed Tomcat and deployed my struts application (which works with Websphere) and now I'm getting Cannot find ActionMappings or ActionFormBeans collection. I am confident that this is happening because the struts jar files can not be located.
I have all the struts jar file in the lib directory under the WEB-INF folder.
This message is not necessarily the result of a bad placement of the struts.jar file. It indicates that the Struts Action servlet did not initialize properly. This could happen because of one of two things:
1. You didn't specify <load-on-startup>1</load-on-startup> in the Actoin servlet definition in web.xml.
2. The Action servlet is throwing an exception when it tries to initialize. Check your SystemOut log to see if there are any errors when the application starts up.
This project is working with no problems on websphere. So I'm pretty sure I have all the files I need and web.xml and struts-config files are structred properly. Thanks for the help
Joined: Feb 15, 2005
Since you have included a <load-on-startup> tag, this problem is most likely occuring due to the Struts Action servlet throwing an exception when it tries to initialize.
The stack trace you've shown us is the one that is occurring when you try to display your login JSP, and it's not particularly useful.
You need to look at the Server's SystemOut and SystemErr logs when the server is first starting up and look for exceptions being thrown by the Action servlet. Once you have found the error in these logs, show us the stack trace that occurs there.