wood burning stoves 2.0
The moose likes Struts and the fly likes WARNING: Could not find action or result Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "WARNING: Could not find action or result" Watch "WARNING: Could not find action or result" New topic

WARNING: Could not find action or result

Ratheesh Kumar K Ratheesh

Joined: Feb 11, 2009
Posts: 2
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)
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63195

Please be sure to post Struts questions in the Struts forum. I have moved this post there for you.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ratheesh Kumar K Ratheesh

Joined: Feb 11, 2009
Posts: 2
Thanks Bear Bibeault !!!

here is the directory structure

Following are the major configuration files:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">


<?xml version="1.0" encoding="UTF-8"?>
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
<constant name="struts.devMode" value="true" />
<package name="Amrita" namespace="Amrita" extends="struts-default">
<action name="loadAmrita" class="org.amrita.testAction">
<result name="input">index.jsp</result>


package org.amrita;

import com.opensymphony.xwork2.ActionSupport;

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

public String execute()
return SUCCESS;


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s" %>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<s:form action="loadAmrita">
<s:submit value="submit"/>


<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
Success !!!
David Newton

Joined: Sep 29, 2008
Posts: 12617

A couple of notes:

* You're missing commons-io.
* Java class names should start with a capital letter, i.e., TestAction.
* You should use the ng filter in 2.1.6.
* Namespaces should begin with a slash ("/").

Is there anything in the log regarding a filter startup failure?
Have you checked out Aspose?
subject: WARNING: Could not find action or result
It's not a secret anymore!