spingmvc 用tomcat访问路径时报错

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/molei199082/article/details/79972280

今天在学习用idea 配置 spingmvc页面访问路径时:

用tomcat访问时报错:

Error instantiating servlet class [org.springframework.web.servlet.DispatcherServlet]



java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet

很明显的第一反应就是没有SpringMVC的包,于是检查pom.xml,发现没有问题,spring web mvc包是正确引入了的,查看Maven Dependencies,发现也是正常的,打开jar包,也没有问题,web.xml配置也没有问题…

在网上收了许多答案都是说没有导入jar包,没有部署成功,都是说eclipse的解决办法 

而且 我用idea2017 Maven 创建的webapp 在创建时 生成的webapp下的文件夹是没有像eclipse一样会生成lib目录,所以导致启动tomc时会出现加载类无法找到的错误


解决方法就是:




启动tomcat报错

01-24

启动tomcat时报错。用的是commons-digester-1.7.jar这个版本rn错误信息:rn2007-1-24 9:22:28 org.apache.commons.digester.Digester fatalErrorrn严重: Parse Fatal Error at line -1 column -1: Premature end of file.rnorg.xml.sax.SAXParseException: Premature end of file.rn at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)rn at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)rn at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)rn at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig applicationConfigrn严重: Parse error in application web.xmlrnorg.xml.sax.SAXParseException: Premature end of file.rn at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)rn at org.apache.commons.digester.Digester.parse(Digester.java:1548)rn at org.apache.catalina.startup.ContextConfig.applicationConfig(ContextConfig.java:263)rn at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:624)rn at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:216)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4290)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig applicationConfigrn严重: Occurred at line -1 column -1rn2007-1-24 9:22:28 org.apache.catalina.startup.ContextConfig startrn严重: Marking this application unavailable due to previous error(s)rn2007-1-24 9:22:28 org.apache.catalina.core.StandardContext startrn严重: Error getConfiguredrn2007-1-24 9:22:28 org.apache.catalina.core.StandardContext startrn严重: Context startup failed due to previous errors

启动Tomcat报错

10-18

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrnCaused by: org.springframework.beans.TypeMismatchException: Failed to convert property value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource'; nested exception is java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrnCaused by: java.lang.IllegalArgumentException: Cannot convert value of type [java.lang.String] to required type [javax.sql.DataSource] for property 'dataSource': no matching editors or conversion strategy foundrn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:231)rn at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:138)rn at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:380)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1112)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:862)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2011-10-18 7:55:27 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2011-10-18 7:55:27 org.apache.catalina.core.StandardContext startrn严重: Context [/guest] startup failed due to previous errorsrn2011-10-18 7:55:27 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.apache.struts.util.PropertyMessageResources).rnlog4j:WARN Please initialize the log4j system properly.rn2011-10-18 7:55:32 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2011-10-18 7:55:32 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2011-10-18 7:55:32 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/30 config=nullrn2011-10-18 7:55:32 org.apache.catalina.startup.Catalina startrn信息: Server startup in 16786 msrn

Tomcat在reload时报错

08-22

我在tomcat5.0的 conf/server.xml下为程序配置了 reloadable="true"rnrn开始reload是正常的,但是后来每次reload都报错:rnrn2009-8-22 16:23:41 org.apache.catalina.core.StandardContext reloadrn信息: Reloading this Context has startedrn2009-8-22 16:23:41 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)rn2009-8-22 16:23:41 org.apache.catalina.loader.WebappClassLoader loadClassrn信息: Illegal access: this web application instance has been stopped already (the eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact)rn2009-8-22 16:23:41 org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor processChildrenrn严重: Exception invoking periodic operation: rnjava.lang.ThreadDeathrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1253)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1213)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)rn at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:49)rn at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:333)rn at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:295)rn at org.apache.log4j.RollingFileAppender.subAppend(RollingFileAppender.java:225)rn at org.apache.log4j.WriterAppender.append(WriterAppender.java:150)rn at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:221)rn at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:57)rn at org.apache.log4j.Category.callAppenders(Category.java:187)rn at org.apache.log4j.Category.forcedLog(Category.java:372)rn at org.apache.log4j.Category.log(Category.java:864)rn at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:193)rn at org.apache.catalina.session.StandardManager.start(StandardManager.java:692)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:2992)rn at org.apache.catalina.core.StandardContext.backgroundProcess(StandardContext.java:4576)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1659)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1668)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1648)rn at java.lang.Thread.run(Thread.java:536)rnrn然后程序就死掉了无法访问,只有重启tomcat,这是怎么回事,真心求教!!!谢谢了!!!rn

启动 tomcat报错!!!

01-13

Servlet /pctest threw load() exceptionrnjava.lang.Error: Unresolved compilation problems: rn The import java.io cannot be resolvedrn The import java.io cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn The import javax cannot be resolvedrn HttpServlet cannot be resolved to a typern The constructor Object() is undefinedrn The method destroy() is undefined for the type Objectrn HttpServletRequest cannot be resolved to a typern HttpServletResponse cannot be resolved to a typern ServletException cannot be resolved to a typern IOException cannot be resolved to a typern PrintWriter cannot be resolved to a typern The method getClass() is undefined for the type InitServletrn HttpServletRequest cannot be resolved to a typern HttpServletResponse cannot be resolved to a typern ServletException cannot be resolved to a typern IOException cannot be resolved to a typern PrintWriter cannot be resolved to a typern The method getClass() is undefined for the type InitServletrn ServletException cannot be resolved to a typern ServletConfig cannot be resolved to a typern The method getServletConfig() is undefined for the type InitServletrn String cannot be resolved to a typern String cannot be resolved to a typern String cannot be resolved to a typern JinghuaConn.USERNAME cannot be resolvedrn JinghuaConn.PASSWORD cannot be resolvedrn JinghuaConn.PHYPATH cannot be resolvedrn JinghuaConn.rootpath cannot be resolvedrn JinghuaConn.chartPath cannot be resolvedrnrn at sys.InitServlet.(InitServlet.java:3)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at java.lang.Class.newInstance0(Class.java:355)rn at java.lang.Class.newInstance(Class.java:308)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1104)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn[color=#FF0000]我翻译过来 就是:[/color]rn服务器/ pctest扔负荷( )例外 rnjava.lang.Error :未汇编的问题: rn进口java.io不能得到解决 rn进口java.io不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rn进口javax不能得到解决 rnHttpServlet解决不了的类型 rn该构造函数对象( )是未定义 rn销毁的方法( )是未定义的类型对象 rnHttpServletRequest解决不了的类型 rnHttpServletResponse解决不了的类型 rnServletException解决不了的类型 rnIOException解决不了的类型 rnPrintWriter解决不了的类型 rn该方法getClass ( )是未定义类型InitServlet rnHttpServletRequest解决不了的类型 rnHttpServletResponse解决不了的类型 rnServletException解决不了的类型 rnIOException解决不了的类型 rnPrintWriter解决不了的类型 rn该方法getClass ( )是未定义类型InitServlet rnServletException解决不了的类型 rnServletConfig解决不了的类型 rn该方法getServletConfig ( )是未定义类型InitServlet rn字符串不能得到解决的类型 rn字符串不能得到解决的类型 rn字符串不能得到解决,以一种类型 rnJinghuaConn.USERNAME不能得到解决 rnJinghuaConn.PASSWORD不能得到解决 rnJinghuaConn.PHYPATH不能得到解决 rnJinghuaConn.rootpath不能得到解决 rnJinghuaConn.chartPath不能得到解决 rnrn在sys.InitServlet 。 ( InitServlet.java : 3 ) rn在sun.reflect.NativeConstructorAccessorImpl.newInstance0 (本地方法) rn在sun.reflect.NativeConstructorAccessorImpl.newInstance ( NativeConstructorAccessorImpl.java : 39 ) rn在sun.reflect.DelegatingConstructorAccessorImpl.newInstance ( DelegatingConstructorAccessorImpl.java : 27 ) rn在java.lang.reflect.Constructor.newInstance ( Constructor.java : 513 ) rn在java.lang.Class.newInstance0 ( Class.java : 355 ) rn在java.lang.Class.newInstance ( Class.java : 308 ) rn在org.apache.catalina.core.StandardWrapper.loadServlet ( StandardWrapper.java : 1104 ) rn在org.apache.catalina.core.StandardWrapper.load ( StandardWrapper.java : 981 ) rn在org.apache.catalina.core.StandardContext.loadOnStartup ( StandardContext.java : 4058 ) rn在org.apache.catalina.core.StandardContext.start ( StandardContext.java : 4364 ) rn在org.apache.catalina.core.ContainerBase.addChildInternal ( ContainerBase.java : 791 ) rn在org.apache.catalina.core.ContainerBase.addChild ( ContainerBase.java : 771 ) rn在org.apache.catalina.core.StandardHost.addChild ( StandardHost.java : 525 ) rn在org.apache.catalina.startup.HostConfig.deployDirectory ( HostConfig.java : 924 ) rn在org.apache.catalina.startup.HostConfig.deployDirectories ( HostConfig.java : 887 ) rn在org.apache.catalina.startup.HostConfig.deployApps ( HostConfig.java : 492 ) rn在org.apache.catalina.startup.HostConfig.start ( HostConfig.java : 1147 ) rn在org.apache.catalina.startup.HostConfig.lifecycleEvent ( HostConfig.java : 311 ) rn在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent ( LifecycleSupport.java : 117 ) rn在org.apache.catalina.core.ContainerBase.start ( ContainerBase.java : 1053 ) rn在org.apache.catalina.core.StandardHost.start ( StandardHost.java : 719 ) rn在org.apache.catalina.core.ContainerBase.start ( ContainerBase.java : 1045 ) rn在org.apache.catalina.core.StandardEngine.start ( StandardEngine.java : 443 ) rn在org.apache.catalina.core.StandardService.start ( StandardService.java : 516 ) rn在org.apache.catalina.core.StandardServer.start ( StandardServer.java : 710 ) rn在org.apache.catalina.startup.Catalina.start ( Catalina.java : 578 ) rn在sun.reflect.NativeMethodAccessorImpl.invoke0 (本地方法) rn在sun.reflect.NativeMethodAccessorImpl.invoke ( NativeMethodAccessorImpl.java : 39 ) rn在sun.reflect.DelegatingMethodAccessorImpl.invoke ( DelegatingMethodAccessorImpl.java : 25 ) rn在java.lang.reflect.Method.invoke ( Method.java : 597 ) rn在org.apache.catalina.startup.Bootstrap.start ( Bootstrap.java : 288 ) rn在org.apache.catalina.startup.Bootstrap.main ( Bootstrap.java : 413 )

关闭tomcat报错

02-18

2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A 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.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [oracle.jdbc.driver.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A 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.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store sampleCache1 Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store sampleCache1 Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store query.Document Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByLevel(int) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDepartmentByLevel(int) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDatasByParent(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getDatasByParent(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.role.ejb.RoleProcessBean.doViewByName(java.lang.String,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.role.ejb.RoleProcessBean.doViewByName(java.lang.String,java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.workcalendar.calendar.ejb.CalendarProcessBean.doViewByName(java.lang.String,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.dynaform.form.ejb.FormProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.resource.ejb.ResourceProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.dynaform.document.ejb.DocumentProcessBean.queryByDQLWithCache(java.lang.String,java.lang.String,cn.myapps.base.action.ParamsTable,java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.getUnderDeptList(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.validate.repository.ejb.ValidateRepositoryProcessBean.doView(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.validate.repository.ejb.ValidateRepositoryProcessBean.doView(java.lang.String) Expiry Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.department.ejb.DepartmentProcessBean.doView(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.resource.ejb.ResourceProcessBean.doSimpleQuery(cn.myapps.base.action.ParamsTable,java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.page.ejb.PageProcessBean.getDefaultPage(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Store cn.myapps.core.commoninfo.ejb.CommonInfoProcessBean.doQueryByType(java.lang.String) Spool Thread] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearReferencesThreadsrn严重: A web application appears to have started a thread named [Prototyper] but has failed to stop it. This is very likely to create a memory leak.rn2011-2-18 16:25:41 org.apache.catalina.loader.WebappClassLoader clearThreadLocalMaprn严重: A web application created a ThreadLocal with key of type [org.apache.axis.utils.XMLUtils.ThreadLocalDocumentBuilder] (value [org.apache.axis.utils.XMLUtils$ThreadLocalDocumentBuilder@15d7752]) and a value of type [org.apache.xerces.jaxp.DocumentBuilderImpl] (value [org.apache.xerces.jaxp.DocumentBuilderImpl@144dc7b]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.rnException in thread "ShutdownHook" java.lang.NullPointerExceptionrn at org.apache.log4j.LogManager.getLogger(LogManager.java:188)rn at org.apache.log4j.Logger.getLogger(Logger.java:104)rn at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229)rn at org.apache.commons.logging.impl.Log4JLogger.debug(Log4JLogger.java:110)rn at org.logicalcobwebs.proxool.ShutdownHook.run(ShutdownHook.java:93)rn at java.lang.Thread.run(Thread.java:619)rnrn这个是什么问题,我jdk版本是1.6.0.17,tomcat是6.0.26

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试