java.lang.UnsupportedOperationException: getResource operation is not supported\!

strutstestcase | qwang | 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

    MockStrutsTestCase cannot load struts-config.

    strutstestcase | 1 decade ago | qwang
    java.lang.UnsupportedOperationException: getResource operation is not supported\!

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      getResource operation is not supported\!

      at servletunit.ServletContextSimulator.getResource()
    2. servletunit
      ServletContextSimulator.getResource
      1. servletunit.ServletContextSimulator.getResource(ServletContextSimulator.java:273)
      1 frame
    3. struts
      ActionServlet.init
      1. org.apache.struts.action.ActionServlet.initApplicationConfig(ActionServlet.java:856)
      2. org.apache.struts.action.ActionServlet.init(ActionServlet.java:455)
      2 frames
    4. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:258)
      1 frame
    5. servletunit.struts
      MockStrutsTestCase.actionPerform
      1. servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:216)
      2. servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:259)
      2 frames