tomcat启动项目报错:
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.包含ssh的工程上午完成一个功能后运行还是正常的,下午修改了一些,运行就报错了,我再试着运行上午的版本还是出错,到底是闹哪样。(svn导过版本的)
求解。运行另一个仅有Struts2的工程,虽然也有如上警告,但能正常启动运行
七月 22, 2017 11:14:52 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.

七月 22, 2017 11:14:54 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [http-nio-8080]
七月 22, 2017 11:14:54 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler [ajp-nio-8009]
七月 22, 2017 11:14:54 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 5494 ms

解决方案 »

  1.   

    ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
    少了log4j2配置文件???
      

  2.   

    网上确实都这么说,但是我好像没有用到log4j2。
    我在src文件夹下添加了一个log4j2.xml,最后一句报错没有出现,但是还是启动不了
      

  3.   

    是运行到你截图运行哪就不继续运行了 然后 报错了吧 ,  设置一下超时时间 然后看看你的数据库  控制台显示的都不是主要问题  你可以发一下你的tomcat最后报的错
      

  4.   

    这个错误是不影响tomcat启动的,还有没有别的异常了?