启动Plexus-Struts集成时发生致命错误

我最初尝试将我的Web应用程序从struts 2.0.6 jdk6升级到struts 2.5.20 jdk 11。 几天后,我遇到了一个我不理解的问题。我已经升级了struts2-plexus-plugin依赖关系,但是在启动时控制台说:

FATAL org.apache.struts2.plexus.PlexusObjectFactory - ********** FATAL 
ERROR STARTING UP PLEXUS-STRUTS INTEGRATION **********
Looks like the Plexus listener was not configured for your web app! 
You need to add the following to web.xml: 

<!-- this should be before the Struts filter -->
<filter>
    <filter-name>plexus</filter-name>
    <filter-class>org.apache.struts2.plexus.PlexusFilter</filter-class>
</filter>
...
<!-- this should be before the Struts filter -->
<filter-mapping>
    <filter-name>plexus</filter-name>
    <url-pattern>/*</url-pattern>
</filter-mapping>
... 
<listener>
    <listener- 
class>org.apache.struts2.plexus.PlexusLifecycleListener</listener-class>
</listener>

我已经修改了web.xml以在开始时添加这些行,但是绝对没有任何变化,但仍然出现错误。 为什么我做错了?

myxiaoyun2007 回答:启动Plexus-Struts集成时发生致命错误

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3137224.html

大家都在问