求助!The web application [/Root] registered the JDBC driver [com.mysql.jdbc.Driver

此间游子 2016-07-26 10:33:38
目录结构:D:\xmgk\companyweb\www.test.com\test\Root\工程内容
D:\xmgk\companyweb\www.test.com\testMobile\Root\工程内容
hosts文件添加

127.168.0.0.1 mobile.test.com
tomcat/conf/server:

<Host name="mobile.test.com" appBase="D:\\xmgk\\companyweb\\www.test.com" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" reloadable="true" caseSensitive="false" debug="0"> </Context>
</Host>


严重: The web application [/Root] 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.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] 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.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] 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.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] 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.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] 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.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-3] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-4] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-5] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-6] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-7] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-8] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-9] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/Root] appears to have started a thread named [scheduler_Worker-10] but has failed to stop it. This is very likely to create a memory leak.
七月 26, 2016 10:19:37 上午 org.apache.coyote.AbstractProtocol stop
...全文
2001 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
Masher 2016-11-02
  • 打赏
  • 举报
回复
楼主我也遇到这个问题 <context-param> <param-name>webAppRootKey</param-name> <param-value>cn.woonton.peds</param-value> </context-param> web.xml加段这个解决了
lanshs 2016-07-27
  • 打赏
  • 举报
回复
感谢楼主两次邀请。可是我没折腾过Tomcat,抱歉帮上忙。 我对host这部分比较好奇 127.168.0.0.1 www.test.com 为嘛有5段数字
此间游子 2016-07-26
  • 打赏
  • 举报
回复
引用 2 楼 xiaofanku 的回复:
The web application [/Root] 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. 这行异常是没有注册驱动!你改的path在哪?tomcat server.xml
对 之前没有加。昨天我发的帖子也是你回复的,昨天改成
<Host name="localhost"  appBase="D:\\xmgk\\companyweb\\www.test.com" unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\test" reloadable="true" caseSensitive="false" debug="0"> </Context>   
		</Host>
		<Host name="mobile.test.com" appBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
				<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
					   prefix="localhost_access_log." suffix=".txt"
					   pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" reloadable="true" caseSensitive="false" debug="0"> </Context>
		</Host>
tomcat启动并不报错,但是访问mobile.test.com,404错误。 目录结构:D:\xmgk\companyweb\www.test.com\test\Root\工程内容 D:\xmgk\companyweb\www.test.com\testMobile\Root\工程内容 hosts文件添加 127.168.0.0.1 www.test.com 127.168.0.0.1 mobile.test.com 现在出现这个问题是因为我把第一个host删掉报了这个错。其实我还是想知道访问二级域名为什么报404 这次终于改对了···,
此间游子 2016-07-26
  • 打赏
  • 举报
回复
引用 2 楼 xiaofanku 的回复:
The web application [/Root] 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. 这行异常是没有注册驱动!你改的path在哪?tomcat server.xml
对 之前没有加。昨天我发的帖子也是你回复的,昨天改成
<Host name="test.com"  appBase="D:\\xmgk\\companyweb\\www.test.com" unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\test" reloadable="true" caseSensitive="false" debug="0"> </Context>   
		</Host>
		<Host name="localhost" appBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
				<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
					   prefix="localhost_access_log." suffix=".txt"
					   pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" reloadable="true" caseSensitive="false" debug="0"> </Context>
		</Host>
tomcat启动并不报错,但是访问mobile.test.com,404错误。 目录结构:D:\xmgk\companyweb\www.test.com\test\Root\工程内容 D:\xmgk\companyweb\www.test.com\testMobile\Root\工程内容 hosts文件添加 127.168.0.0.1 www.test.com 127.168.0.0.1 mobile.test.com 现在出现这个问题是因为我把第一个host删掉报了这个错。其实我还是想知道访问二级域名为什么报404
此间游子 2016-07-26
  • 打赏
  • 举报
回复
引用 2 楼 xiaofanku 的回复:
The web application [/Root] 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. 这行异常是没有注册驱动!你改的path在哪?tomcat server.xml
对 之前没有加。昨天我发的帖子也是你回复的,昨天改成
<Host name="test.com"  appBase="D:\\xmgk\\companyweb\\www.test.com" unpackWARs="true" autoDeploy="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\test" reloadable="true" caseSensitive="false" debug="0"> </Context>   
		</Host>
		<Host name="mobile.test.com" appBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
				<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
					   prefix="localhost_access_log." suffix=".txt"
					   pattern="%h %l %u %t "%r" %s %b" />
			<Context path="" docBase="D:\\xmgk\\companyweb\\www.test.com\\testMobile" reloadable="true" caseSensitive="false" debug="0"> </Context>
		</Host>
tomcat启动并不报错,但是访问mobile.test.com,404错误。 目录结构:D:\xmgk\companyweb\www.test.com\test\Root\工程内容 D:\xmgk\companyweb\www.test.com\testMobile\Root\工程内容 hosts文件添加 127.168.0.0.1 www.test.com 127.168.0.0.1 mobile.test.com 现在出现这个问题是因为我把第一个host删掉报了这个错。其实我还是想知道访问二级域名为什么报404
街头小贩 2016-07-26
  • 打赏
  • 举报
回复
The web application [/Root] 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. 这行异常是没有注册驱动!你改的path在哪?tomcat server.xml
此间游子 2016-07-26
  • 打赏
  • 举报
回复
改了path="/mobile"就 不报错了。但是本机访问mobile.test.com:8080/mobile 报404错误

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧