qq_32106973
qq_32106973
采纳率87.5%
2018-03-27 10:08 阅读 971
已采纳

tomcat web项目启动报错

10

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.ExceptionInInitializerError
at org.springframework.web.context.ContextLoaderListener.createContextLoader(ContextLoaderListener.java:53)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:543)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:235)
at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:209)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:351)
at org.springframework.web.context.ContextLoader.(ContextLoader.java:146)
... 11 more
Caused by: java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529)
... 15 more
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Unknown Source)
at java.util.Properties.load0(Unknown Source)
at java.util.Properties.load(Unknown Source)
at com.ibm.bmcc.app.config.dao.ApplicationConfigPropertiesDao.read(ApplicationConfigPropertiesDao.java:40)
at com.ibm.bmcc.app.common.log.BmccLog.(BmccLog.java:60)
... 20 more

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

8条回答 默认 最新

  • 已采纳
    qq_19714359 qq_19714359 2018-03-27 10:18

    这报错的意思是初始化出现问题,可能少丢失了jar包吧

    点赞 1 评论 复制链接分享
  • qq_34573113 qq_34573113 2018-03-27 10:22

    Spring配置文件有问题

    点赞 1 评论 复制链接分享
  • wang15735927065 努力努力的小强 2018-03-27 11:29

    可能是web.xml中没有配置

    点赞 评论 复制链接分享
  • qq_32151079 霁无暇 2018-03-27 11:47

    日志没配好,是不是用了日志没配日志文件

    点赞 评论 复制链接分享
  • jesonjoke 「已注销」 2018-03-27 13:15

    目测是jar包冲突的问题,或者是你的类引入错误,引入了错误的同名的类

    点赞 评论 复制链接分享
  • qq_28714041 Arsark 2018-03-28 01:09

    web.xml中没有配置吧

    点赞 评论 复制链接分享
  • yuanhongp yuanhongp 2018-03-28 01:51

    web.xml中没有配置吧,你看下是否有jar没添加

    点赞 评论 复制链接分享
  • weixin_37829274 weixin_37829274 2018-03-28 02:01

    查看“\src\main\resources\spring\”目录下的xml文件,查找提示中出现的,类似:

    如果项目需要,就看是不是缺少项目引用或缺少Jar包引用;
    如果项目不需要,就直接删除就好了。

    点赞 评论 复制链接分享

相关推荐