java.lang.NoSuchFieldException: resourceEntries
at java.lang.Class.getDeclaredField(Class.java:1899) ~[?:1.7.0_07]
at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:880) ~[xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.clearTomcatCache(LocalizedTextUtil.java:850) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:829) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:805) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:217) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:674) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:550) [xwork-core-2.3.28.jar:2.3.28]
at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:378) [xwork-core-2.3.28.jar:2.3.28]
at org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest.cleanUp(JakartaMultiPartRequest.java:391) [struts2-core-2.3.28.jar:2.3.28]
at org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper.cleanUp(MultiPartRequestWrapper.java:278) [struts2-core-2.3.28.jar:2.3.28]
at org.apache.struts2.dispatcher.Dispatcher.cleanUpRequest(Dispatcher.java:882) [struts2-core-2.3.28.jar:2.3.28]
at org.apache.struts2.dispatcher.ng.PrepareOperations.cleanupRequest(PrepareOperations.java:107) [struts2-core-2.3.28.jar:2.3.28]
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:103) [struts2-core-2.3.28.jar:2.3.28]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241) [catalina.jar:7.0.67]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208) [catalina.jar:7.0.67]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220) [catalina.jar:7.0.67]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122) [catalina.jar:7.0.67]
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:505) [catalina.jar:7.0.67]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:169) [catalina.jar:7.0.67]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103) [catalina.jar:7.0.67]
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:956) [catalina.jar:7.0.67]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116) [catalina.jar:7.0.67]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:423) [catalina.jar:7.0.67]
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1079) [tomcat-coyote.jar:7.0.67]
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:625) [tomcat-coyote.jar:7.0.67]
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:318) [tomcat-coyote.jar:7.0.67]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [?:1.7.0_07]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [?:1.7.0_07]
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-coyote.jar:7.0.67]
at java.lang.Thread.run(Thread.java:722) [?:1.7.0_07]
解决方法
打开log4j2.xml
修改为
<Configuration>
<!-- 日志输出位置 -->
<Appenders>
<!-- 在控制台输出 -->
<Console name="STDOUT" target="SYSTEM_OUT">
<PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/>
</Console>
</Appenders>
<!-- 日期输出级别 -->
<Loggers>
<!-- 局部输出级别
name:是指所在的包
level:输出级别
<Logger name="com.yc" level="debug"/>是指com.yc包所有类的日志输出级别为debug
-->
<Logger name="com.yc" level="debug"/>
<Root level="warn">
<AppenderRef ref="STDOUT"/>
</Root>
</Loggers>
</Configuration>
com.yc是自己的日志所在位置