Home > Back-end >  Struts 2 deployed to tomcat, on the web. In the XML configuration struts 2 filters, tomcat startup f
Struts 2 deployed to tomcat, on the web. In the XML configuration struts 2 filters, tomcat startup f

Time:10-07

March 17, 2020 afternoon 5:38:30 org. Apache. Catalina. Core. StandardContext filterStart
Severe: Exception starting filter [struts 2]
Java. Lang. NoClassDefFoundError: com/opensymphony/xwork2/ActionContext
At org, apache struts 2. Dispatcher. Ng. InitOperations. Cleanup (InitOperations. Java: 114)
At org, apache struts 2. Dispatcher. Ng. Filter. StrutsPrepareAndExecuteFilter. Init (StrutsPrepareAndExecuteFilter. Java: 69)
The at org. Apache. Catalina. Core. ApplicationFilterConfig. InitFilter (ApplicationFilterConfig. Java: 285)
The at org. Apache. Catalina. Core. ApplicationFilterConfig. GetFilter (ApplicationFilterConfig. Java: 266)
The at org. Apache. Catalina. Core. ApplicationFilterConfig. & lt; init> (ApplicationFilterConfig. Java: 108)
The at org. Apache. Catalina. Core. StandardContext. FilterStart (StandardContext. Java: 4591)
The at org. Apache. Catalina. Core. StandardContext. StartInternal (StandardContext. Java: 5233)
The at org. Apache. Catalina. Util. LifecycleBase. Start (LifecycleBase. Java: 150)
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1419) ContainerBase. Java:
The at org. Apache. Catalina. Core. ContainerBase $StartChild. Call (1409) ContainerBase. Java:
The at Java. Util. Concurrent. FutureTask. Run (Unknown Source)
The at Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (Unknown Source)
The at Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (Unknown Source)
The at Java. Lang. Thread. The run (Unknown Source)
Under Caused by: Java. Lang. ClassNotFoundException: com. Opensymphony. Xwork2. ActionContext
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1291)
The at org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1119)
. 14 more

CodePudding user response:

Lack of jar package
The first line will tell you, the lack of this kind of com/opensymphony/xwork2/ActionContext
  • Related