问题描述
我的项目上面使用了spring代理servlet,XML文件都配置没问题,可是我一访问servlet就老提示错误HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: Wrapper cannot find servlet class org.springFramework.web.servlet.DispatcherServlet or a class it depends onorg.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)java.lang.Thread.run(Thread.java:595) root cause java.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServletorg.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)java.lang.Thread.run(Thread.java:595) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.Apache Tomcat/5.0.28==========================tomcat log 2008-10-10 19:43:42 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]2008-10-10 19:43:43 StandardContext[/jsp-examples]ContextListener: contextInitialized()2008-10-10 19:43:43 StandardContext[/jsp-examples]SessionListener: contextInitialized()2008-10-10 19:43:46 StandardContext[/reserve]Loading Spring root WebApplicationContext2008-10-10 19:43:55 StandardContext[/reserve]Initializing WebApplicationContext for Struts ActionServlet 'action', module ''2008-10-10 19:43:55 StandardContext[/servlets-examples]ContextListener: contextInitialized()2008-10-10 19:43:55 StandardContext[/servlets-examples]SessionListener: contextInitialized()2008-10-10 19:45:15 StandardContext[/reserve]Marking servlet ListServlet as unavailable2008-10-10 19:45:15 StandardContext[/reserve]Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/----------> Parent Classloader:StandardClassLoader delegate: true repositories: file:I:TomcatTomcat5.0sharedclasses----------> Parent Classloader:StandardClassLoader delegate: true repositories: file:I:TomcatTomcat5.0commonclasses file:I:TomcatTomcat5.0commonendorsedxalan.jar file:I:TomcatTomcat5.0commonlibant-launcher.jar file:I:TomcatTomcat5.0commonlibant.jar file:I:TomcatTomcat5.0commonlibcommons-collections-3.1.jar file:I:TomcatTomcat5.0commonlibcommons-dbcp-1.2.1.jar file:I:TomcatTomcat5.0commonlibcommons-el.jar file:I:TomcatTomcat5.0commonlibcommons-pool-1.2.jar file:I:TomcatTomcat5.0commonlibjasper-compiler.jar file:I:TomcatTomcat5.0commonlibjasper-runtime.jar file:I:TomcatTomcat5.0commonlibjsp-api.jar file:I:TomcatTomcat5.0commonlibmsbase.jar file:I:TomcatTomcat5.0commonlibmssqlserver.jar file:I:TomcatTomcat5.0commonlibmsutil.jar file:I:TomcatTomcat5.0commonlibnaming-common.jar file:I:TomcatTomcat5.0commonlibnaming-factory.jar file:I:TomcatTomcat5.0commonlibnaming-java.jar file:I:TomcatTomcat5.0commonlibnaming-resources.jar file:I:TomcatTomcat5.0commonlibservlet-api.jar file:I:TomcatTomcat5.0commonlibtools.jar----------> Parent Classloader:sun.misc.Launcher$AppClassLoader@181afa3 org.springFramework.web.servlet.DispatcherServletjava.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595)2008-10-10 19:45:15 StandardWrapperValve[ListServlet]: Allocate exception for servlet ListServletjavax.servlet.ServletException: Wrapper cannot find servlet class org.springFramework.web.servlet.DispatcherServlet or a class it depends on at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:974) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595)----- Root Cause -----java.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServlet at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:687) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:144) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:595) ========================= web.xml <!----><context-param><param-name>contextConfigLocation</param-name><param-value>/WEB-INF/classes/config/spring/applicationContext-*.xml</param-value></context-param><listener><listener-class>org.springframework.web.context.ContextLoaderListener</listener-class></listener><!----><filter><filter-name>ActivityTimeFilter</filter-name><filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class><init-param><param-name>targetFilterLifecycle</param-name><param-value>true</param-value></init-param></filter><filter-mapping><filter-name>ActivityTimeFilter</filter-name><url-pattern>/*</url-pattern></filter-mapping><!----><servlet><servlet-name>ListServlet</servlet-name><servlet-class>org.springFramework.web.servlet.DispatcherServlet</servlet-class></servlet><!----><servlet-mapping><servlet-name>ListServlet</servlet-name><url-pattern>/servlet/list_xml</url-pattern></servlet-mapping> ======================= applicationContext-servlet.xml <!----><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd"><bean id="ListServlet" class="com.reserve.web.servlet.ListServlet"><property name="listServletLogic" ref="ListServletLogic"></bean></beans> =========================== spring.jar包我也都加上了,版本也都对~找了半天我还是找不出来什么地方错误,请指教~谢谢~问题补充:spring-webmvc.jar 这个我也试 过了,也不行,然后我才换的spring.jar的,还是不行是不是我配置文件写的有问题呢?问题补充:我spring是2.0的,是eclipse里面我用myeclipse加载的,选择的是2.0问题补充:这个是我今天的tomcat的log2008-10-10 19:56:26 StandardContext[/balancer]org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: http://www.yahoo.com], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]2008-10-10 19:56:26 StandardContext[/jsp-examples]ContextListener: contextInitialized()2008-10-10 19:56:26 StandardContext[/jsp-examples]SessionListener: contextInitialized()2008-10-10 19:56:28 StandardContext[/reserve]Loading Spring root WebApplicationContext2008-10-10 19:56:34 StandardContext[/reserve]Marking servlet ListServlet as unavailable2008-10-10 19:56:34 StandardContext[/reserve]Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/----------> Parent Classloader:StandardClassLoader delegate: true repositories: file:I:TomcatTomcat5.0sharedclasses----------> Parent Classloader:StandardClassLoader delegate: true repositories: file:I:TomcatTomcat5.0commonclasses file:I:TomcatTomcat5.0commonendorsedxalan.jar file:I:TomcatTomcat5.0commonlibant-launcher.jar file:I:TomcatTomcat5.0commonlibant.jar file:I:TomcatTomcat5.0commonlibcommons-collections-3.1.jar file:I:TomcatTomcat5.0commonlibcommons-dbcp-1.2.1.jar file:I:TomcatTomcat5.0commonlibcommons-el.jar file:I:TomcatTomcat5.0commonlibcommons-pool-1.2.jar file:I:TomcatTomcat5.0commonlibjasper-compiler.jar file:I:TomcatTomcat5.0commonlibjasper-runtime.jar file:I:TomcatTomcat5.0commonlibjsp-api.jar file:I:TomcatTomcat5.0commonlibmsbase.jar file:I:TomcatTomcat5.0commonlibmssqlserver.jar file:I:TomcatTomcat5.0commonlibmsutil.jar file:I:TomcatTomcat5.0commonlibnaming-common.jar file:I:TomcatTomcat5.0commonlibnaming-factory.jar file:I:TomcatTomcat5.0commonlibnaming-java.jar file:I:TomcatTomcat5.0commonlibnaming-resources.jar file:I:TomcatTomcat5.0commonlibservlet-api.jar file:I:TomcatTomcat5.0commonlibtools.jar----------> Parent Classloader:sun.misc.Launcher$AppClassLoader@181afa3 org.springFramework.web.servlet.DispatcherServletjava.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServletat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)at org.apache.commons.digester.Rule.end(Rule.java:276)at org.apache.commons.digester.Digester.endElement(Digester.java:1058)at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)at org.apache.commons.digester.Digester.parse(Digester.java:1567)at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)at org.apache.catalina.core.StandardService.start(StandardService.java:480)at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)at org.apache.catalina.startup.Catalina.start(Catalina.java:556)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)2008-10-10 19:56:34 StandardContext[/reserve]Servlet /reserve threw load() exceptionjavax.servlet.ServletException: Wrapper cannot find servlet class org.springFramework.web.servlet.DispatcherServlet or a class it depends onat org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:974)at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)at org.apache.commons.digester.Rule.end(Rule.java:276)at org.apache.commons.digester.Digester.endElement(Digester.java:1058)at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)at org.apache.commons.digester.Digester.parse(Digester.java:1567)at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)at org.apache.catalina.core.StandardService.start(StandardService.java:480)at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)at org.apache.catalina.startup.Catalina.start(Catalina.java:556)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)----- Root Cause -----java.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServletat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:964)at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:862)at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4013)at org.apache.catalina.core.StandardContext.start(StandardContext.java:4357)at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDeployer.java:903)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java:216)at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256)at org.apache.commons.digester.Rule.end(Rule.java:276)at org.apache.commons.digester.Digester.endElement(Digester.java:1058)at org.apache.catalina.util.CatalinaDigester.endElement(CatalinaDigester.java:76)at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)at org.apache.commons.digester.Digester.parse(Digester.java:1567)at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:488)at org.apache.catalina.core.StandardHost.install(StandardHost.java:863)at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:483)at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:427)at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)at org.apache.catalina.core.StandardService.start(StandardService.java:480)at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)at org.apache.catalina.startup.Catalina.start(Catalina.java:556)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java:585)at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)2008-10-10 19:56:35 StandardContext[/reserve]Initializing WebApplicationContext for Struts ActionServlet 'action', module ''2008-10-10 19:56:35 StandardContext[/servlets-examples]ContextListener: contextInitialized()2008-10-10 19:56:35 StandardContext[/servlets-examples]SessionListener: contextInitialized()2008-10-10 19:56:55 StandardWrapperValve[ListServlet]: Servlet ListServlet is currently unavailable2008-10-10 19:56:56 StandardWrapperValve[ListServlet]: Servlet ListServlet is currently unavailable2008-10-10 19:56:57 StandardWrapperValve[ListServlet]: Servlet ListServlet is currently unavailable
解决方案
看错误的提示,提示的是找不到org.springFramework.web.servlet.DispatcherServlet你检查一下,这个类是不是两个jar包都有,或者根本没有这个类
解决方案二:
看看加载是否正常,或许没加载进去哦
解决方案三:
你的spring用的什么版本的,spring2.5之后,spring mvc就不在spring.jar里面了,找一找spring-webmvc.jar你可以去maven2仓库里面找一下http://repo1.maven.org/maven2/org/springframework/spring-webmvc/