我加了bone的连接池,不导入log4j根本用不了。
加入log4j之后,在myeclipse编辑JAVA文件之后点保存,tomcat就报异常,直接跳到Debug调试,很烦人,每次编译JAVA文件都要从新启动tomcat的,怎么能不让出异常的信息啊?

解决方案 »

  1.   

    2010-7-15 11:24:36 org.apache.catalina.core.StandardContext reload
    信息: Reloading this Context has started
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
    严重: A web application registered the JBDC 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.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [com.google.common.base.internal.Finalizer] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesStopTimerThread
    严重: A web application appears to have started a TimerThread named [MySQL Statement Cancellation Timer] via the java.util.Timer API but has failed to stop it. To prevent a memory leak, the timer (and hence the associated thread) has been forcibly cancelled. 
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-keep-alive-scheduler] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-pool-watch-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-release-thread-helper-thread] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-keep-alive-scheduler] but has failed to stop it. This is very likely to create a memory leak.
    2010-7-15 11:24:36 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
    严重: A web application appears to have started a thread named [BoneCP-pool-watch-thread] but has failed 
      

  2.   

    怎么在开发的阶段不让他监测,上线的时候在监测啊。
    现在tomcat启动的时候不能编译JAVA了,之后关了再开
    太麻烦
      

  3.   

    这可能和项目部署方式有关系,如果你想修改代码不用重启tomcat,要变部署方式
      

  4.   

    直接导出war 部署tomcat上 
      

  5.   

    http://www.blogjava.net/jerry-zhaoj/archive/2009/05/06/269191.html
    我猜你现在的部署方式是第一种
      

  6.   

    这可能和项目部署方式有关系,如果你想修改代码不用重启tomcat,要变部署方式
    怎么变部署方式?
    http://www.blogjava.net/jerry-zhaoj/archive/2009/05/06/269191.html
    我猜你现在的部署方式是第一种
    [/Quote]自己检查好了!