ERROR org.apache.struts2.dispatcher.Dispatcher - Dispatcher initialization failed

created at 10-26-2021 views: 21

Problem Description

New eclipse project can't run jsp

There are many online solutions, such as jar package conflict in tomcat, reinstall tomcat, but other projects can still run before, there is no blind operation, some things still need to be clear about the essence. In fact, where the problem appears has been prompted.

reason and solution

Caused by: com.opensymphony.xwork2.config.ConfigurationException: Action class [Action.complexAction] not found
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyAction(XmlConfigurationProvider.java:486) ~[xwork-core-2.3.37.jar:2.3.37]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(XmlConfigurationProvider.java:429) ~[xwork-core-2.3.37.jar:2.3.37]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:556) ~[xwork-core-2.3.37.jar:2.3.37]
    at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:295) ~[xwork-core-2.3.37.jar:2.3.37]
    at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:112) ~[struts2-core-2.3.37.jar:2.3.37]
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:264) ~[xwork-core-2.3.37.jar:2.3.37]
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67) ~[xwork-core-2.3.37.jar:2.3.37]

The complexAction is not found in the Action configuration.
It is a problem with the Action configuration of the strust.xml file. If you also encounter this kind of problem, first see if there is a problem with the configuration file.

created at:10-26-2021
edited at: 10-26-2021: