日期:2014-05-17  浏览次数:23222 次

关闭tomcat时出错了!!!怎么回事
息: Stopping Coyote HTTP/1.1 on http-8080
Exception in thread "ShutdownHook" java.lang.NullPointerException
Exception in thread "ShutdownHook" at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)
at org.logicalcobwebs.proxool.ShutdownHook.run(ShutdownHook.java:93)
at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)
at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)
at org.logicalcobwebs.proxool.ShutdownHook.run(ShutdownHook.java:93)
at java.lang.Thread.run(Thread.java:619)

------解决方案--------------------
你的项目没log4j。。。。
------解决方案--------------------
8080端口给占用了,建议先杀掉tomcat的进程,然后再确认服务停止状态!