2013-10-30 22:28:55 org.apache.catalina.core.StandardContext reload
信息: Reloading Context with name [/ClaimsSystem] has started
2013-10-30 22:28:55 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/ClaimsSystem] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2013-10-30 22:28:55 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/ClaimsSystem] appears to have started a thread named [Thread-12] but has failed to stop it. This is very likely to create a memory leak.
2013-10-30 22:28:55 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/ClaimsSystem] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@c85c1f]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@180809]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
2013-10-30 22:28:56 org.apache.catalina.loader.WebappClassLoader validateJarFile
信息: validateJarFile(E:\javaWorkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\ClaimsSystem\WEB-INF\lib\javax.servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Exception in thread "Thread-12" java.lang.NullPointerException
at com.pluser.database.ConnectionPool.fillPool(ConnectionPool.java:72)
at com.pluser.database.ConnectionPool.poolTimerEvent(ConnectionPool.java:158)
at com.pluser.database.ConnectionTimer.run(ConnectionTimer.java:35)
自己写了个简单的读.properties文件的连接池,TOMCAT是6.0。
上面就是我出现的错误,不知道是上面错误是上面原因导致的,希望前辈分析下?
希望前辈指点 非常感谢!
明天上完班晚上回来看下,希望前辈能指点下!
JDBC?driver错误 unregister?driver
------解决方案--------------------
你这个问题,把tomcat彻底关了,再重启试试。我记得以前遇到过这样的问题,代码没问题就是关闭的时候会有异常