java.lang.NoSuchFieldError: VERSION_2_3_0 8 a7 Y6 P7 B1 M1 _3 o at org.apache.struts2.views.freemarker.FreemarkerManager.createConfiguration(FreemarkerManager.java:331) ; D# q; ^; ]* B0 s- ]) R, v5 @2 ]9 U at org.apache.struts2.views.freemarker.FreemarkerManager.init(FreemarkerManager.java:282)/ M' T/ [( P7 J' ?0 V
at org.apache.struts2.views.freemarker.FreemarkerManager.getConfiguration(FreemarkerManager.java:269) 5 P0 b; |0 [+ J$ N8 E at org.apache.struts2.dispatcher.DefaultDispatcherErrorHandler.init(DefaultDispatcherErrorHandler.java:47). e Q, f% u$ x9 U0 [6 n3 w
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:488) * A% z0 e$ t& Y& C at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)0 f l$ \8 x; d
at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:57) - R4 _) b7 x% o2 b) Y, C l3 V: U at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281) . b0 y: G! L% j: v5 w% } at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262), Q( w0 t' x( d3 C' U
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107) 9 g$ u* w; N5 {0 h3 K+ r# ^1 ]7 S4 \ at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4746)9 c |8 [) z3 q0 o
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5399)6 X* |- W- T9 I2 ?; F, {
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)) L$ q8 a' s3 w
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) H# G; C; e1 L1 d
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)5 E- y) T( {9 F
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)+ W$ j! _8 F+ v0 f; H3 W+ }: f
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1114) * K; x5 C8 U! r7 M; n at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1672)' ~0 c6 e- y- v4 `! {$ w
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)9 F$ I' C i& a
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)6 ^; @& n5 d- L) c. u) N2 d
at java.util.concurrent.FutureTask.run(FutureTask.java:138)6 m$ C* Y. V) Z T4 f6 f
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)- a- S4 Y6 d* x% _
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) . B: T; V! c2 i2 H. R at java.lang.Thread.run(Thread.java:619)5 A9 ?1 J2 k( ^0 Z+ T9 `) I
+ r- P8 ]* [$ V- s }
由于struts2 最近漏洞 进行了升级到2.3.28.1 但是没有升级相应的freemarker-2.3.23.jar 导致的。; l6 N$ \/ p. @8 E' H% m: s' n
9 h( B! w" v. ^3 L. b6 r