Wednesday, 10 July 2013

Error building results for action loginUser in namespace /login - action

if you facing Error building results for action like this:-


SEVERE: Exception starting filter struts2
Error building results for action loginUser in namespace /login - action - file:/Users/Documents/01/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/projectName/WEB-INF/classes/struts/login.xml:80:115
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:340)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:429)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
 at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
 at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
 at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
 at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)
 at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
 at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:637)
Caused by: There is no result type defined for type 'success' mapped with name 'success' - result - file:/Users/Documents/01/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/projectName/WEB-INF/classes/struts/login.xml:81:34
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults(XmlConfigurationProvider.java:584)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:338)
 ... 21 more


reason for this error is (wrong success return) like we write /test.jsp but actual is /test.jsp
(name,type wrong declaration).

Hope this help you.

No comments:

Post a Comment