junit.framework.AssertionFailedError: Error initializing action servlet: Unable to find /WEB-INF/web.xml.  TestCase is running from D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo directory.  Context directory is D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo.  /WEB-INF/web.xml must be found under the context directory, the directory the test case is running from, or in the classpath.

strutstestcase | nobody | 1 decade ago
  1. 0

    MockStrutsTestCase problem

    strutstestcase | 1 decade ago | nobody
    junit.framework.AssertionFailedError: Error initializing action servlet: Unable to find /WEB-INF/web.xml.  TestCase is running from D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo directory.  Context directory is D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo.  /WEB-INF/web.xml must be found under the context directory, the directory the test case is running from, or in the classpath.
  2. 0

    GitHub comment 23#20821349

    GitHub | 3 years ago | ksclarke
    junit.framework.AssertionFailedError: org.custommonkey.xmlunit.Diff [different] Expected text value '2009-01-01T00:00:00Z' but was '2009-01-01T00:00:00-04:00' - comparing [CreatedDate ...]2009-01-01T00:00:00Z[/CreatedDate] at /Profile[1]/CreatedDate[1]/text()[1] to [CreatedDate ...]2009-01-01T00:00:00-04:00[/CreatedDate] at /Profile[1]/CreatedDate[1]/text()[1]
  3. 0

    error

    Oracle Community | 1 decade ago | 807598
    junit.framework.AssertionFailedError: Could not create test 'testBuildDeck'
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Test failure in SQLiteSuiteTest

    GitHub | 3 years ago | jstaffans
    junit.framework.AssertionFailedError: Failed with 1 failure(s) of 402 tests hour(e.timefield) = 3 failed
  6. 0

    Some tests fail occasionally

    GitHub | 2 years ago | julie-sullivan
    junit.framework.AssertionFailedError: org.custommonkey.xmlunit.Diff [different] Expected number of child nodes '5' but was '2' - comparing <collection...> at /item[1]/collection[1] to <collection...> at /item[1]/collection[1]

    4 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. junit.framework.AssertionFailedError

      Error initializing action servlet: Unable to find /WEB-INF/web.xml.  TestCase is running from D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo directory.  Context directory is D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo.  /WEB-INF/web.xml must be found under the context directory, the directory the test case is running from, or in the classpath.

      at junit.framework.Assert.fail()
    2. JUnit
      Assert.fail
      1. junit.framework.Assert.fail(Assert.java:47)
      1 frame
    3. servletunit.struts
      MockStrutsTestCase.getActionServlet
      1. servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:342)
      1 frame
    4. com.yourcompany.struts
      LogonActionTest.setUp
      1. com.yourcompany.struts.test.LogonActionTest.setUp(LogonActionTest.java:42)
      1 frame
    5. JUnit
      TestSuite.run
      1. junit.framework.TestCase.runBare(TestCase.java:125)
      2. junit.framework.TestResult$1.protect(TestResult.java:106)
      3. junit.framework.TestResult.runProtected(TestResult.java:124)
      4. junit.framework.TestResult.run(TestResult.java:109)
      5. junit.framework.TestCase.run(TestCase.java:118)
      6. junit.framework.TestSuite.runTest(TestSuite.java:208)
      7. junit.framework.TestSuite.run(TestSuite.java:203)
      7 frames
    6. JUnit3 Runner
      RemoteTestRunner.main
      1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436)
      2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311)
      3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
      3 frames