gpt4 book ai didi

java - struts2-image-plugin在struts 2.3.16.1版本无法加载

转载 作者:行者123 更新时间:2023-11-28 22:20:25 26 4
gpt4 key购买 nike

我已经通过 http://mvnrepository.com/struts 2.0 升级到 2.3.16.1在我的网络应用程序中一旦我部署在 tomcat 服务器中,它就会出现以下错误:

Unable to load configuration. - bean - jar:file:/C:/Projects/apache-tomcat-7.0.50/webapps/myweb/WEB-INF/lib/struts2-image-plugin-0.1.jar!/struts-plugin.xml:8:136
...

Caused by: Unable to load configuration. - bean - jar:file:/C:/Projects/apache-tomcat-7.0.50/webapps/myweb/WEB-INF/lib/struts2-image-plugin-0.1.jar!/struts-plugin.xml:8:136
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:445)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:489)

Caused by: Unable to load bean: type:org.apache.struts2.views.TagLibrary class:com.aurifa.struts2.plugin.image.views.ImageTagLibrary - bean - jar:file:/C:/Projects/apache-tomcat-7.0.50/webapps/myweb/WEB-INF/lib/struts2-image-plugin-0.1.jar!/struts-plugin.xml:8:136
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:224)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:102)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:169)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)

我更新了所有struts相关的插件,但是我找不到任何版本来更新struts2-image-plugin

是否有任何struts2-image-plugin 的替代品 或任何其他方法来解决此问题?

感谢任何人提供解决方案或想法。

最佳答案

查看以下 struts2 jira:https://issues.apache.org/jira/browse/WW-4255

TagLibrary 接口(interface)已从 struts2 中删除,并由另外两个接口(interface)代替。 (不知道2.3.17会不会重新加入)

如果您有勇气或降级到 2.3.15.3 并希望该界面在 2.3.17 中恢复,您可以自己更新插件以使用新界面。

关于java - struts2-image-plugin在struts 2.3.16.1版本无法加载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22835757/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com