Turns out that the problem was that my JSPs were in the wrong directory 
(WEB-INF/ instead of web/).  That's a strange error message to give in that 
circumstance.  Anyway, problem solved.


--- On Fri, 9/17/10, Dave Newton <davelnew...@gmail.com> wrote:

From: Dave Newton <davelnew...@gmail.com>
Subject: Re: Struts 2.2.1 gives There is no Action mapped for namespace / and 
action name .
To: "Struts Users Mailing List" <user@struts.apache.org>
Date: Friday, September 17, 2010, 10:20 PM

What happens if you leave off the trailing slash?

(And Javassist is required because OGNL has a dependency on it.)

Dave

On Saturday, September 18, 2010, Dean Schulze <dean_w_schu...@yahoo.com> wrote:
> 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
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




      

Reply via email to