java.lang.NoSuchMethodError: org.apache.struts.action.ActionServlet.findMapping(Ljava/lang/String;)Lorg/apache/struts/action/ActionMapping;

strutstestcase | nobody | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    problem to run the sample code

    strutstestcase | 1 decade ago | nobody
    java.lang.NoSuchMethodError: org.apache.struts.action.ActionServlet.findMapping(Ljava/lang/String;)Lorg/apache/struts/action/ActionMapping;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.struts.action.ActionServlet.findMapping(Ljava/lang/String;)Lorg/apache/struts/action/ActionMapping;

      at servletunit.struts.Common.getActionConfig()
    2. servletunit.struts
      CactusStrutsTestCase.verifyForward
      1. servletunit.struts.Common.getActionConfig(Common.java:260)
      2. servletunit.struts.Common.findForward(Common.java:243)
      3. servletunit.struts.Common.verifyForwardPath(Common.java:137)
      4. servletunit.struts.CactusStrutsTestCase.verifyForward(CactusStrutsTestCase.java:537)
      4 frames
    3. examples.cactus
      TestCactusLoginAction.testSuccessfulLogin
      1. examples.cactus.TestCactusLoginAction.testSuccessfulLogin(TestCactusLoginAction.java:33)
      1 frame
    4. Java RT
      DelegatingMethodAccessorImpl.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      3 frames
    5. org.apache.cactus
      AbstractWebTestCaller.doTest
      1. org.apache.cactus.internal.AbstractCactusTestCase.runBareServer(AbstractCactusTestCase.java:153)
      2. org.apache.cactus.internal.server.AbstractWebTestCaller.doTest(AbstractWebTestCaller.java:119)
      2 frames