数据库已成功连接,不过tomcat有如下警告,个人认为以上发邮件不成功与如下警告无关,希望知道的人说下,谢谢(知道一下警告怎么解决的也说一下)警告: Unknown default host: localhost严重: The web application [] registered the JBDC driver [org.logicalcobwebs.proxool.ProxoolDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2010-11-19 5:45:14 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The 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-11-19 5:45:14 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
2010-11-19 5:45:14 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [MySQL Statement Cancellation Timer] but has failed to stop it. This is very likely to create a memory leak.

解决方案 »

  1.   

    看看哪个地方有设置 ip地址的  把localhost改成服务器ip吧估计是这个原因le
      

  2.   

    你发邮件的包没有拷贝到tomcat的环境lib下面呀
      

  3.   


    你试试apache 的commons-email-1.2.jar邮件包试试 HtmlEmail email = new HtmlEmail();
      email.setHostName("mail.myserver.com");
      email.addTo("[email protected]", "John Doe");
      email.setFrom("[email protected]", "Me");
      email.setSubject("Test email with inline image");    URL url = new URL("http://www.apache.org/images/asf_logo_wide.gif");
      String cid = email.embed(url, "Apache logo");
      
        email.setHtmlMsg("<html>The apache logo - <img src=\"cid:"+cid+"\"></html>");    email.setTextMsg("Your email client does not support HTML messages");  email.send();
      

  4.   

    javamail发送邮件的功能其实很简单,一定你的配置有问题!
      

  5.   

    貌似除了数据库连接用了localhost外,没有哪个地方要写到到localhost的吧?求教
      

  6.   

    配置的问题,把所有的localhost改为IP试试。
      

  7.   


    没用过这个,哪天试试。
    问一下,这个和javamail比,有什么有点?