File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Unable to load configuration Caused by: Action class not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Unable to load configuration Caused by: Action class not found " Watch "Unable to load configuration Caused by: Action class not found " New topic
Author

Unable to load configuration Caused by: Action class not found

Naresh Shanmugam
Ranch Hand

Joined: Jul 16, 2010
Posts: 84
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

Joined: Jul 16, 2010
Posts: 84
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to load configuration Caused by: Action class not found
 
Similar Threads
Unable to load configuration-struts2
Struts 2 Starting Problem
Does Eclipse Ganymede create a class file automatically
Exception in Struts2
Struts 2 error (first struts 2 application)