This is just a hello world program which i tried with struts2 and tomcat 6.0 and have created a dynamic web project in eclipse and i am working from eclipse, when i start my server from eclipse i could see the below exception from my server. It says that the action is not found, but .class file of the action is present under build -> classes folder in my project directory.Can any body thrown some light on this please
Unable to load configuration. - action - file:/D:/Naresh/CaseStudy/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Project/WEB-INF/classes/struts.xml:8:83 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
Caused by: Action class [com.keane.presentaton.action.InsertBookAction] not found - action - file:/D:/Naresh/CaseStudy/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Project/WEB-INF/classes/struts.xml:8:83 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:405)
I tried cleaning the project and rebuild but still same exception.
Joined: Jul 16, 2010
Have fixed the problem. Hope the solution would be useful for some one else:
struts.xml file must be present under WebContent - WEB-INF - classes - struts.xml when using eclipse
The mistake i did was when ever i did a clean project it used to delete my files under classes folder, so do make sure that this particular file is present.
subject: Unable to load configuration Caused by: Action class not found