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.

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web2051

  • via strutstestcase by nobody
    , 1 year ago
    Error initializing action servlet: Unable to find /WEB-INF/web.xmlTestCase is running from D:\eclipse3.0.2\eclipse\workspace\ValidatorDemo directoryContext 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.
  • via strutstestcase by nobody
    , 1 year ago
    The /WEB-INF/web.xml was not found.
  • via strutstestcase by nobody
    , 1 year ago
    The /WEB-INF/web.xml was not found.
  • Stack trace

    • 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(Assert.java:47) at servletunit.struts.MockStrutsTestCase.getActionServlet(MockStrutsTestCase.java:342) at com.yourcompany.struts.test.LogonActionTest.setUp(LogonActionTest.java:42) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:436) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:311) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    2 times, 4 months ago
    5 times, 6 months ago
    Unknown user
    Once, 10 months ago
    9 times, 5 months ago
    Once, 6 months ago
    27 more bugmates