向大家请教,该如何解决以下报错问题。
是否缺少 jar 包文件?
解决以下问题的思路是怎样的?
网上百度未能找到解决问题的思路
谢谢!
- 报错信息原文如下,
其中核心错误提示如下:
2025-01-17 19:07:04.371 [localhost-startStop-1] WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder - Unable to load config class org.apache.struts2.interceptor.I18nInterceptor at interceptor - jar:file:/.../tomcat/webapps/xxxxx/WEB-INF/lib/struts2-core-6.7.0.jar!/struts-default.xml:62:94 probably due to a missing jar, which might be fine if you never plan to use the i18n interceptor
com.opensymphony.xwork2.config.ConfigurationException: Caught Exception while registering Interceptor class org.apache.struts2.interceptor.I18nInterceptor
......
Caused by: java.lang.ArrayIndexOutOfBoundsException: 15851
2025-01-17 19:07:04.371 [localhost-startStop-1] WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder - Unable to load config class org.apache.struts2.interceptor.I18nInterceptor at interceptor - jar:file:/.../tomcat/webapps/xxxxx/WEB-INF/lib/struts2-core-6.7.0.jar!/struts-default.xml:62:94 probably due to a missing jar, which might be fine if you never plan to use the i18n interceptor
com.opensymphony.xwork2.config.ConfigurationException: Caught Exception while registering Interceptor class org.apache.struts2.interceptor.I18nInterceptor
at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:102) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:210) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:73) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lookupInterceptorReference(XmlDocConfigurationProvider.java:1019) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadInterceptorStack$14(XmlDocConfigurationProvider.java:998) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildrenByTagName(XmlDocConfigurationProvider.java:184) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptorStack(XmlDocConfigurationProvider.java:997) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadInterceptorStacks$13(XmlDocConfigurationProvider.java:987) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildrenByTagName(XmlDocConfigurationProvider.java:184) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptorStacks(XmlDocConfigurationProvider.java:986) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptors(XmlDocConfigurationProvider.java:962) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.addPackage(XmlDocConfigurationProvider.java:431) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadPackages$3(XmlDocConfigurationProvider.java:316) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$iterateElementChildren$0(XmlDocConfigurationProvider.java:169) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildren(XmlDocConfigurationProvider.java:176) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateElementChildren(XmlDocConfigurationProvider.java:165) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateElementChildren(XmlDocConfigurationProvider.java:161) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadPackages(XmlDocConfigurationProvider.java:314) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:102) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:141) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:306) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.reload(ConfigurationManager.java:227) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.initialiseConfiguration(ConfigurationManager.java:84) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.wasConfigInitialised(ConfigurationManager.java:72) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:1160) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:661) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:45) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:66) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) ~[catalina.jar:?]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) ~[catalina.jar:?]
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) ~[catalina.jar:?]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4997) ~[catalina.jar:?]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5699) ~[catalina.jar:?]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ~[catalina.jar:?]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707) ~[catalina.jar:?]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697) ~[catalina.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_141]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_141]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 15851
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass(LocalVariableTableParameterNameDiscoverer.java:112) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames(LocalVariableTableParameterNameDiscoverer.java:86) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowire(AbstractAutowireCapableBeanFactory.java:339) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:200) ~[struts2-spring-plugin-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:172) ~[struts2-spring-plugin-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:179) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:65) ~[struts2-core-6.7.0.jar:6.7.0]
... 40 more
- 其他相关信息如下:
- 1 struts2-core-6.7.0.jar 压缩包里配置文件 struts-default.xml:
<interceptors> <interceptor name="i18n" class="org.apache.struts2.interceptor.I18nInterceptor"/> </interceptors>
2.2 /lib/xwork-core-2.3.4.jar
已有以下类文件:
com.opensymphony.xwork2.config.providers.InterceptorBuilder
2.3 /lib/struts2-core-6.7.0.jar
已有以下类文件:
org.apache.struts2.interceptor.I18nInterceptor
2.4 tomcat 版本:v. 7.0.91
向大家请教,该如何解决以下报错问题。
是否缺少 jar 包文件?
解决以下问题的思路是怎样的?
网上百度未能找到解决问题的思路
谢谢!
- 报错信息原文如下,
其中核心错误提示如下:
2025-01-17 19:07:04.371 [localhost-startStop-1] WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder - Unable to load config class org.apache.struts2.interceptor.I18nInterceptor at interceptor - jar:file:/.../tomcat/webapps/xxxxx/WEB-INF/lib/struts2-core-6.7.0.jar!/struts-default.xml:62:94 probably due to a missing jar, which might be fine if you never plan to use the i18n interceptor
com.opensymphony.xwork2.config.ConfigurationException: Caught Exception while registering Interceptor class org.apache.struts2.interceptor.I18nInterceptor
......
Caused by: java.lang.ArrayIndexOutOfBoundsException: 15851
2025-01-17 19:07:04.371 [localhost-startStop-1] WARN com.opensymphony.xwork2.config.providers.InterceptorBuilder - Unable to load config class org.apache.struts2.interceptor.I18nInterceptor at interceptor - jar:file:/.../tomcat/webapps/xxxxx/WEB-INF/lib/struts2-core-6.7.0.jar!/struts-default.xml:62:94 probably due to a missing jar, which might be fine if you never plan to use the i18n interceptor
com.opensymphony.xwork2.config.ConfigurationException: Caught Exception while registering Interceptor class org.apache.struts2.interceptor.I18nInterceptor
at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:102) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:210) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:73) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lookupInterceptorReference(XmlDocConfigurationProvider.java:1019) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadInterceptorStack$14(XmlDocConfigurationProvider.java:998) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildrenByTagName(XmlDocConfigurationProvider.java:184) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptorStack(XmlDocConfigurationProvider.java:997) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadInterceptorStacks$13(XmlDocConfigurationProvider.java:987) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildrenByTagName(XmlDocConfigurationProvider.java:184) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptorStacks(XmlDocConfigurationProvider.java:986) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadInterceptors(XmlDocConfigurationProvider.java:962) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.addPackage(XmlDocConfigurationProvider.java:431) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$loadPackages$3(XmlDocConfigurationProvider.java:316) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.lambda$iterateElementChildren$0(XmlDocConfigurationProvider.java:169) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateChildren(XmlDocConfigurationProvider.java:176) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateElementChildren(XmlDocConfigurationProvider.java:165) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.iterateElementChildren(XmlDocConfigurationProvider.java:161) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlDocConfigurationProvider.loadPackages(XmlDocConfigurationProvider.java:314) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:102) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:141) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:306) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.reload(ConfigurationManager.java:227) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.initialiseConfiguration(ConfigurationManager.java:84) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.wasConfigInitialised(ConfigurationManager.java:72) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:61) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:1160) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:661) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:45) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:66) ~[struts2-core-6.7.0.jar:6.7.0]
at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:285) ~[catalina.jar:?]
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266) ~[catalina.jar:?]
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:108) ~[catalina.jar:?]
at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4997) ~[catalina.jar:?]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5699) ~[catalina.jar:?]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) ~[catalina.jar:?]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1707) ~[catalina.jar:?]
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1697) ~[catalina.jar:?]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_141]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_141]
at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0_141]
Caused by: java.lang.ArrayIndexOutOfBoundsException: 15851
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.asm.ClassReader.<init>(Unknown Source) ~[spring-asm-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.core.LocalVariableTableParameterNameDiscoverer.inspectClass(LocalVariableTableParameterNameDiscoverer.java:112) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.core.LocalVariableTableParameterNameDiscoverer.getParameterNames(LocalVariableTableParameterNameDiscoverer.java:86) ~[spring-core-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:193) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowire(AbstractAutowireCapableBeanFactory.java:339) ~[spring-beans-3.0.5.RELEASE.jar:3.0.5.RELEASE]
at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:200) ~[struts2-spring-plugin-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:172) ~[struts2-spring-plugin-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:179) ~[struts2-core-6.7.0.jar:6.7.0]
at com.opensymphony.xwork2.factory.DefaultInterceptorFactory.buildInterceptor(DefaultInterceptorFactory.java:65) ~[struts2-core-6.7.0.jar:6.7.0]
... 40 more
- 其他相关信息如下:
- 1 struts2-core-6.7.0.jar 压缩包里配置文件 struts-default.xml:
<interceptors> <interceptor name="i18n" class="org.apache.struts2.interceptor.I18nInterceptor"/> </interceptors>
2.2 /lib/xwork-core-2.3.4.jar
已有以下类文件:
com.opensymphony.xwork2.config.providers.InterceptorBuilder
2.3 /lib/struts2-core-6.7.0.jar
已有以下类文件:
org.apache.struts2.interceptor.I18nInterceptor
2.4 tomcat 版本:v. 7.0.91