-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
首页一访问,Tomcat就报错, 自动stop , 然后就退出了cmd窗口 #8
Comments
首先这个错误,我初步判断,和这个项目无关系,应该是环境问题,线程之类的有冲突。请按第一个异常信息“The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.” 建议查看Tomcat里是否有其他项目干扰。还有可能是Tomcat已经损坏,请尝试更换Tomcat。 |
今天一直在忙,现在才回复,抱歉! |
应该就是Tomcat的环境问题,不过,具体原因未找到。 我通过mvn 方式, maven-jetty-plugin 插件 的jetty run 启动项目就没这个问题。 |
redis 也配置好了,数据库也初始化了,启动也是没问题的。应用直接部署在ROOT下。但是,浏览器访问 http://localhost:8080/ 的时候, Tomcat就出错, 然后自动stop 了, 好奇怪啊。 有谁遇到过吗? 或者我配置哪里错了?
日志为:
六月 29, 2017 2:22:30 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deployment of web application directory D:\program\test\apache-tomcat-7.0.59\webapps\ROOT has finished in 4,412 ms
六月 29, 2017 2:22:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-8080"]
六月 29, 2017 2:22:30 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-bio-8009"]
六月 29, 2017 2:22:30 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 4447 ms
六月 29, 2017 2:26:17 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-8080"]
六月 29, 2017 2:26:17 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
六月 29, 2017 2:26:17 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
六月 29, 2017 2:26:17 下午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated for Servlet [springMvc]
六月 29, 2017 2:26:18 下午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated for Servlet [springMvc]
六月 29, 2017 2:26:19 下午 org.apache.catalina.core.StandardWrapper unload
信息: Waiting for 1 instance(s) to be deallocated for Servlet [springMvc]
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] 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.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] is still processing a request that has yet to finish. This is very likely to create a memory leak. You can control the time allowed for requests to finish by using the unloadDelay attribute of the standard Context implementation.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@3267354d}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@5db7f497}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@5db7f497}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@3267354d}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@3267354d}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@5db7f497}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:19 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SECURITY_MANAGER_KEY=org.apache.shiro.web.mgt.DefaultWebSecurityManager@278bd2f7, org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.web.subject.support.WebDelegatingSubject@2ccd4616}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:20 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@5db7f497}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:20 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@3267354d}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:20 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [org.apache.shiro.util.ThreadContext$InheritableThreadLocalMap@5ff3d6b7]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SUBJECT_KEY=org.apache.shiro.subject.support.DelegatingSubject@5db7f497}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
六月 29, 2017 2:26:20 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-bio-8080"]
六月 29, 2017 2:26:20 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["ajp-bio-8009"]
The text was updated successfully, but these errors were encountered: