Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4085

Add default-action-ref to configuration of example apps

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.3.14.2
    • Fix Version/s: 2.3.15
    • Component/s: Example Applications
    • Labels:
      None

      Description

      To avoid the below error message each application must define default-action-ref in struts.xml

          <package name="/" extends="struts-default">
      
              <default-action-ref name="HelloWorld" />
      
              <action name="HelloWorld">
                  <result type="redirectAction">
                      <param name="actionName">HelloWorld</param>
                      <param name="namespace">example</param>
                  </result>
              </action>
          </package>
      
      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)
      

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              lukaszlenart Lukasz Lenart
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: