0

Facing this issue while building a simple Struts application

All the jar files are correctly imported as my another struts application is working perfectly

Web.xml

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://java.sun.com/xml/ns/javaee" xmlns:jsp="http://java.sun.com/xml/ns/javaee/jsp"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    id="WebApp_ID" version="2.5">

    <display-name>WB AOS Data Admin App</display-name>

    <filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  </filter>
  <filter-mapping>
    <filter-name>struts2</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
4
  • No....already tried everything mentioned there Commented Nov 6, 2019 at 13:39
  • How do you build the application? check the WEB-INF/lib where the required jar is there. Commented Nov 6, 2019 at 13:58
  • What version of Struts 2? That's an older filter. Commented Nov 7, 2019 at 13:11
  • @DaveNewton I checked the class , it is present with the same address Commented Nov 8, 2019 at 11:11

1 Answer 1

0

Sometimes additional imported dependencies can cause this type of error. Try reducing to the minimum required dependencies for a Struts 2 application.

See the linked question/answer for more help regarding this error.

Additional information:

How To Create A Struts 2 Web Application

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for help..some of my dependencies were imported twice and that was causing these error

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.