我的网站部署在windows XP下能够正常运行,
运行环境为:tomcat6.0 32位,mysql 5.0 32位,jre 32位。
当我把它移植到windows 2008 X64 服务器时就出错了。
运行环境为:tomcat6.0 64位,mysql 5.0 32位, jre 64位.
请各位高手看看应该如何解决这问题啊?tomcat都是安装版的。
tomcat下日志记录如下:
2011-05-26 11:40:36 Commons Daemon procrun stderr initialized
2011-5-26 11:40:37 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: e:\Tomcat6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;E:\Program Files (x86)\Java\jdk1.6.0_13\bin;E:\MySQL\MySQL Server 5.0\bin
2011-5-26 11:40:37 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2011-5-26 11:40:37 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 725 ms
2011-5-26 11:40:37 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-5-26 11:40:37 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.32
2011-5-26 11:40:37 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-5-26 11:40:38 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory manager
2011-5-26 11:40:38 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2011-5-26 11:40:38 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-80
2011-5-26 11:40:38 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-5-26 11:40:38 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/15  config=null
2011-5-26 11:40:38 org.apache.catalina.startup.Catalina start
信息: Server startup in 527 ms
2011-5-26 11:41:01 org.apache.coyote.http11.Http11Protocol pause
信息: Pausing Coyote HTTP/1.1 on http-80
2011-5-26 11:41:02 org.apache.catalina.core.StandardService stop
信息: Stopping service Catalina
2011-5-26 11:41:02 org.apache.coyote.http11.Http11Protocol destroy
信息: Stopping Coyote HTTP/1.1 on http-802011-05-26 11:41:32 Commons Daemon procrun stderr initialized
2011-5-26 11:41:33 org.apache.catalina.core.AprLifecycleListener init
信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: e:\Tomcat6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;E:\Program Files (x86)\Java\jdk1.6.0_13\bin;E:\MySQL\MySQL Server 5.0\bin
2011-5-26 11:41:34 org.apache.coyote.http11.Http11Protocol init
信息: Initializing Coyote HTTP/1.1 on http-80
2011-5-26 11:41:34 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 718 ms
2011-5-26 11:41:34 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2011-5-26 11:41:34 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.32
2011-5-26 11:41:34 org.apache.catalina.startup.HostConfig deployDescriptor
信息: Deploying configuration descriptor manager.xml
2011-5-26 11:41:34 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory docs
2011-5-26 11:41:34 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory ROOT
2011-5-26 11:41:34 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory zyhgl
2011-5-26 11:41:52 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2011-5-26 11:41:52 org.apache.catalina.core.StandardContext start
严重: Context [/zyhgl] startup failed due to previous errors
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/zyhgl] 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.
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zyhgl] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zyhgl] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zyhgl] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zyhgl] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
2011-5-26 11:41:52 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/zyhgl] 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.
2011-5-26 11:41:52 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-80
2011-5-26 11:41:52 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2011-5-26 11:41:52 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/31  config=null
2011-5-26 11:41:52 org.apache.catalina.startup.Catalina start
信息: Server startup in 18785 ms

解决方案 »

  1.   

     The web application [/zyhgl] 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.我只看懂这一段了,貌似是说能够注册mysql的jdbc驱动,但是在web应用停止的时候无法注销。为了防止内存泄漏,此jdbc驱动被强制注销了。至于原因,尚不明确
      

  2.   

    http://topic.csdn.net/u/20100204/12/5ec366aa-9d3d-4008-b295-1448a879a577.html和你的情况貌似是相同的
      

  3.   

    application注册的监听器在启动时异常,导致application无法成功发布,检查下监听器的代码吧
      

  4.   

    The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: e:\Tomcat6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;E:\Program Files (x86)\Java\jdk1.6.0_13\bin;E:\MySQL\MySQL Server 5.0\bin
    JDK环境变量配置了吗?
      

  5.   

    出错的原则基本都一样的,
    都是看关键的地方。
    这里最关键的错误代码是2011-5-26 11:41:52 org.apache.catalina.core.StandardContext start
    严重: Error listenerStart所以可以得到的信息是Error listenerStart
    其他的错误都不用管了。
    就仔细去配置文件中找listener的配置,是不是,有你配置了空的listener,就是
    你配上去了一个java做listener,但实践上这个java类不存在或被你删掉了。
      

  6.   

    已经找到问题所在了,是我的mysql连接配置有错误,地址写错了。