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

Struts2-Spring & JUnit plugin warn "java.io.FileNotFoundException: class path resource [org/apache/struts2/dispatcher/error.ftl]"

    XMLWordPrintableJSON

Details

    Description

      I wrote JUnit test , Struts2,Spring-plugin,JUnit-plugin version 2.3.16.3 is work fine.
      And I replace Struts2 new version (
      Struts2.3.20 + Spring-plugin2.3.20 + JUnit-plugin2.3.20) cause internal exception and output stacktrace and wait few seconds all tests , but tests work successfully.

      I guess since 2.3.17 , org.apache.struts2.dispatcher.Dispatcher#serviceAction(HttpServletRequest, HttpServletResponse, ServletContext, ActionMapping) was deprecated, test class extends StrutsJUnit4TestCase or StrutsSpringJUnit4TestCase not received Spring configuration or missing classpath at start up test methods.

      regards.

      Attachments

        1. RegisterActionTest.java
          1 kB
          A-pZ
        2. SpringJUnit_2.3.20.log
          7 kB
          A-pZ

        Activity

          People

            lukaszlenart Lukasz Lenart
            alpha-pz A-pZ
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: