WARNING: No configuration found for the specified action:

java, struts, struts2

Solution

The error suggests that `Struts 2` couldn't load your XML configuration. Make sure your `struts.xml` is inside `WEB-INF/classes` directory. (The rest of the configuration looks fine.)

Problem

I am getting following exception, please help to solve this issue. ``` Jul 16, 2013 11:18:40 AM org.apache.struts2.components.Form evaluateExtraParamsServletRequest WARNING: No configuration found for the specified action: `'HelloWorld1'` in namespace: `''`. Form action defaulting to 'action' attribute's literal value. ``` `index.jsp`: ``` <s:form action="HelloWorld1" namespace="/" method="post" > <s:textfield name="userName" label="User Name" /> <s:submit /> </s:form> ``` `struts.xml`: ``` <package name="default" namespace="/" extends="struts-default" > <action name="HelloWorld1" class="java.vaannila.HelloWorld"> <result name="SUCCESS">/success.jsp</result> </action> </package> ``` `HelloWorld .java`: ``` public class HelloWorld extends ActionSupport{ //execute method } ```

Original source