Struts2.5-add log4j-core to the classpath

信息: 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)

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下即可。

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值