org.apache.struts.tiles.FactoryNotFoundException: null : Can't find file '/WEB-INF/tiles-defs.xml'

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

    Getting it to work with Tiles and the Validat

    strutstestcase | 1 decade ago | nobody
    org.apache.struts.tiles.FactoryNotFoundException: null : Can't find file '/WEB-INF/tiles-defs.xml'

    Root Cause Analysis

    1. org.apache.struts.tiles.FactoryNotFoundException

      null : Can't find file '/WEB-INF/tiles-defs.xml'

      at org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory()
    2. struts
      ActionServlet.init
      1. org.apache.struts.tiles.xmlDefinition.I18nFactorySet.initFactory(I18nFactorySet.java:224)
      2. org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.init(ComponentDefinitionsFactoryWrapper.java:139)
      3. org.apache.struts.tiles.TilesUtilImpl.createDefinitionsFactory(TilesUtilImpl.java:168)
      4. org.apache.struts.tiles.TilesUtil.createDefinitionsFactory(TilesUtil.java:205)
      5. org.apache.struts.tiles.TilesPlugin.init(TilesPlugin.java:230)
      6. org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
      7. org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
      7 frames
    3. JavaServlet
      GenericServlet.init
      1. javax.servlet.GenericServlet.init(GenericServlet.java:258)
      1 frame
    4. servletunit.struts
      MockStrutsTestCase.actionPerform
      1. servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:279)
      2. servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:332)
      2 frames
    5. test.ashland.webapp
      SearchActionTest.testFindName
      1. test.ashland.webapp.dos.search.SearchActionTest.testFindName(SearchActionTest.java:45)
      1 frame
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invoke(Native Method)
      1 frame
    7. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runTest(TestCase.java:154)
      2. junit.framework.TestCase.runBare(TestCase.java:127)
      3. junit.framework.TestResult$1.protect(TestResult.java:106)
      4. junit.framework.TestResult.runProtected(TestResult.java:124)
      5. junit.framework.TestResult.run(TestResult.java:109)
      6. junit.framework.TestCase.run(TestCase.java:118)
      7. junit.framework.TestSuite.runTest(TestSuite.java:208)
      8. junit.framework.TestSuite.run(TestSuite.java:203)
      8 frames
    8. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:392)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:276)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:167)
      3 frames