File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to load configuration Caused by: Action class not found

 
Naresh Shanmugam
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:190)

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.
 
Naresh Shanmugam
Ranch Hand
Posts: 86
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic