信息: No Spring WebApplicationInitializer types detected on classpath
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR Dispatcher Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/D:/workspace-jee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/02_Struts2_Extension/WEB-INF/lib/struts2-gxp-plugin-2.5.5.jar!/struts-plugin.xml:8:162
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
ERROR StatusLogger Log4j2 could not find a logging implementation. Please add log4j-core to the classpath. Using SimpleLogger to log to the console...
ERROR Dispatcher Dispatcher initialization failed
Unable to load configuration. - bean - jar:file:/D:/workspace-jee/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/02_Struts2_Extension/WEB-INF/lib/struts2-gxp-plugin-2.5.5.jar!/struts-plugin.xml:8:162
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:906)
错误StatusLogger Log4j2找不到一个日志的实现。请将log4j-core添加到类路径中。使用SimpleLogger控制台日志…
错误调度程序调度程序初始化失败
无法加载配置。- bean jar文件:/
1:去官方下载:
http://www.apache.org/dyn/closer.lua/logging/log4j/2.7/apache-log4j-2.7-bin.zip
2.在下载的struts-2.5.5的文件中的示例下:
C:\Users\lzhpc\Desktop\Struts2.5.5\struts-2.5.5-all\struts-2.5.5\apps\struts2-rest-showcase\WEB-INF\lib
将“log4j-core-2.7.jar”复制到项目的lib下即可。