Skip to main content

WARNING: Could not find action or result There is no Action mapped for name

2 replies [Last post]
ratheeshkumark
Offline
Joined: 2009-02-11
Points: 0

Hello All,
I am a newbie to the Struts 2 framework. I started with latest version of Struts 2, i.e. Struts 2.1.6 and is strucked with the following error. I have gone through the entire forums and many other mailing list, but was not able to get it corrected. The war file for the project is attached, please go theough it and send me some solutions. Any pointers and tricks are appreciated. Please execute the war file and then comment on it, because I experimented all the tricks explained in most of the user forums. You can download the war file from here or from here

Following are the development environment configurations:
IDE: Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 [Ganymede]
Servelt Engine: Tomcat 6.0.18
Struts version: 2.1.6
Operating System : Windows XP

Following is the error report:

Feb 10, 2009 9:04:25 PM com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Could not find action or result
There is no Action mapped for namespace / and action name . - [unknown location]
at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
romanc
Offline
Joined: 2007-03-31
Points: 0

Couldn't find attached war.

ratheeshkumark
Offline
Joined: 2009-02-11
Points: 0

here is the directory structure
http://www.nabble.com/file/p21969639/directoryStructure.gif
Following are the major configuration files:

web.xml


test1

t1.jsp


struts2
org.apache.struts2.dispatcher.FilterDispatcher


struts2
/*

struts.xml


"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">


index.jsp
success.jsp



testAction.java

package org.amrita;

import com.opensymphony.xwork2.ActionSupport;

public class testAction extends ActionSupport
{
/**
*
*/
private static final long serialVersionUID = 1L;

public String execute()
{
return SUCCESS;
}
}

index.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>

<%@ taglib uri="/struts-tags" prefix="s" %>



Insert title here


haiiiiiiiiiii




success.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>




Insert title here


Success !!!