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

ContextPath show be included in log when could not find a action or result

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.14, 2.1.8.1, 2.2.3.1, 2.3.1
    • Fix Version/s: 2.3.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      APP server: JBossAS or Tomcat
      JDK version: 1.6.0

      Description

      When a invalid action is requested, only 'namespace' and 'action name' value are given in the warning log. I suggest that 'ContextPath' show also be included.

      11:40:36,570 WARN [org.apache.struts2.dispatcher.Dispatcher:60] Could not find action or result
      11:40:36,572 There is no Action mapped for namespace / and action name xxxx. - [unknown location]
      11:40:36,573 at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:189)
      11:40:36,574 at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
      11:40:36,576 at org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
      11:40:36,576 at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58)
      11:40:36,579 at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:500)
      11:40:36,579 at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:434)
      11:40:36,582 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
      11:40:36,582 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
      11:40:36,584 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
      11:40:36,585 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
      11:40:36,588 at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
      11:40:36,588 at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
      11:40:36,590 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
      11:40:36,591 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      11:40:36,594 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      11:40:36,595 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
      11:40:36,597 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
      11:40:36,598 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
      11:40:36,600 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
      11:40:36,600 at java.lang.Thread.run(Thread.java:662)

        Attachments

        1. WW-3687.patch
          8 kB
          Lukasz Lenart

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              mlw5415 lwen.ma

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment