struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4085) Add empty action name to example apps
Date Thu, 30 May 2013 08:24:21 GMT

     [ https://issues.apache.org/jira/browse/WW-4085?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lukasz Lenart updated WW-4085:
------------------------------

    Issue Type: Improvement  (was: Bug)
    
> Add empty action name to example apps
> -------------------------------------
>
>                 Key: WW-4085
>                 URL: https://issues.apache.org/jira/browse/WW-4085
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Example Applications
>    Affects Versions: 2.3.14.2
>            Reporter: Lukasz Lenart
>            Priority: Trivial
>             Fix For: 2.3.15
>
>
> Right now Struts 2 support blank action name (like below) but it isn't present in example
applications and results in nasty error message
> {code:xml}
>     <package name="/" extends="struts-default">
>         <action name="">
>             <result type="redirectAction">
>                 <param name="actionName">HelloWorld</param>
>                 <param name="namespace">example</param>
>             </result>
>         </action>
>     </package>
> {code}
> {noformat}
> Struts Problem Report
> Struts has detected an unhandled exception:
> Messages: 	
> There is no Action mapped for namespace [/config-browser] and action name [] associated
with context path [/struts2-javatemplate].
> Stacktraces
> There is no Action mapped for namespace [/config-browser] and action name [] associated
with context path [/struts2-javatemplate]. - [unknown location]
>     com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
>     org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
>     org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
>     com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
>     org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:539)
>     org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>     org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:99)
>     org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1307)
>     org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:453)
>     org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
>     org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:559)
>     org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
>     org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
>     org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
>     org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
>     org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
>     org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
>     org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
>     org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
>     org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
>     org.eclipse.jetty.server.Server.handle(Server.java:365)
>     org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
>     org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:926)
>     org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:988)
>     org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:635)
>     org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
>     org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
>     org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:627)
>     org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:51)
>     org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
>     org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
>     java.lang.Thread.run(Thread.java:722)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message