struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Schulze <dean_w_schu...@yahoo.com>
Subject Struts 2.2.1 gives There is no Action mapped for namespace / and action name .
Date Sat, 18 Sep 2010 04:17:15 GMT
I've got a simple Struts 2 application that I build and deploy to glassfish with Netbeans. 
When I point the web browser to http://localhost:8080/Struts2Hello/login.action/ it gives
this error:

There is no Action mapped for namespace / and action name .

My action is named "login".  Why does it think it is names "."?

(In order to get this far I've also had to add the javassist-3.7.ga to my lib/ directory. 
I'm not sure why, but that's what others have done to make Struts 2.2 work.)

Here's my web.xml and struts.xml files (yes, the struts.xml gets deployed to WEB-INF/classes):



    <display-name>Struts2 Application</display-name>

        <!--

    <filter>

        <filter-name>struts2</filter-name>

        <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>

    </filter>

    <filter-mapping>

        <filter-name>struts2</filter-name>

        <url-pattern>/*</url-pattern>

    </filter-mapping>

        -->

<filter>

    <filter-name>struts2</filter-name>

    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

</filter>



<filter-mapping>

    <filter-name>struts2</filter-name>

    <url-pattern>*.action</url-pattern>

</filter-mapping>



<filter-mapping>

    <filter-name>struts2</filter-name>

    <url-pattern>/*</url-pattern>

</filter-mapping>

    <welcome-file-list>

        <welcome-file>Login.jsp</welcome-file>

    </welcome-file-list>





<struts>

    <constant name="struts.enable.DynamicMethodInvocation" value="false" />

    <constant name="struts.devMode" value="false" />

    <constant name="struts.custom.i18n.resources" value="ApplicationResources" />



    <package name="default" extends="struts-default" namespace="/">



        <action name="login" class="action.LoginAction">

            <result name="success">Welcome.jsp</result>

            <result name="error">Login.jsp</result>



        </action>

    </package>

</struts>

Thanks.

Dean




      
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message