Jsp java.lang.NoClassDefFoundError:com/opensymphony/xwork2/ModelDriven

Jsp java.lang.NoClassDefFoundError:com/opensymphony/xwork2/ModelDriven,jsp,struts2,noclassdeffounderror,Jsp,Struts2,Noclassdeffounderror,我在struts中运行登录应用程序时遇到此错误。每个必需的jar都已安装,因为我看到了许多缺少jar xwork-core-2.3.24.1的解决方案。我执行了此解决方案,但仍然遇到相同的错误 我正在将我的struts.xml和web.xml文件粘贴到这里: <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmln

我在struts中运行登录应用程序时遇到此错误。每个必需的jar都已安装,因为我看到了许多缺少jar xwork-core-2.3.24.1的解决方案。我执行了此解决方案,但仍然遇到相同的错误

我正在将我的
struts.xml
web.xml
文件粘贴到这里:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns="http://java.sun.com/xml/ns/javaee" 
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
             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">
<context-param>
    <param-name>
        org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG</param-name>
    <param-value>/WEB-INF/tiles.xml</param-value>
</context-param>

<listener>
    <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
</listener>

<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>
<welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<error-page>
    <exception-type>java.lang.Throwable</exception-type>
    <location>/error.jsp</location>
</error-page>
<error-page>
    <error-code>400</error-code>
    <location>/error.jsp</location>
</error-page>
<error-page>
    <error-code>401</error-code>
    <location>/error.jsp</location>
</error-page>
<error-page>
    <error-code>404</error-code>
    <location>/error.jsp</location>
</error-page>
<error-page>
    <error-code>500</error-code>
    <location>/error.jsp</location>
</error-page>
<error-page>
    <error-code>501</error-code>
    <location>/error.jsp</location>
</error-page>

org.apache.tiles.impl.basictelescontainer.DEFINITIONS\u CONFIG
/WEB-INF/tiles.xml
org.apache.struts2.tiles.StrutsTilesListener
支柱2
org.apache.struts2.dispatcher.ng.filter.strutspreadexecutefilter
支柱2
/*
index.jsp
java.lang.Throwable
/error.jsp
400
/error.jsp
401
/error.jsp
404
/error.jsp
500
/error.jsp
501
/error.jsp

确保已将其加载到类路径中?您没有所有的依赖项。您使用什么进行依赖关系管理?此问题似乎与在中定义的范围内编程无关。