liwei_good
liwei_good
2008-10-10 19:51
浏览 251
已采纳

spring 代理 servlet 问题

我的项目上面使用了spring代理servlet,XML文件都配置没问题,可是我一访问servlet就老提示错误

HTTP Status 500 -


type Exception report

message

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 on
    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)

root cause

java.lang.ClassNotFoundException: org.springFramework.web.servlet.DispatcherServlet
    org.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 WebApplicationContext
2008-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 unavailable
2008-10-10 19:45:15 StandardContext[/reserve]Error loading WebappClassLoader
  delegate: false
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
    file:I:\Tomcat\Tomcat5.0\shared\classes\
----------> Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
    file:I:\Tomcat\Tomcat5.0\common\classes\
    file:I:\Tomcat\Tomcat5.0\common\endorsed\xalan.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\ant-launcher.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\ant.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\commons-collections-3.1.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\commons-dbcp-1.2.1.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\commons-el.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\commons-pool-1.2.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\jasper-compiler.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\jasper-runtime.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\jsp-api.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\msbase.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\mssqlserver.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\msutil.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\naming-common.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\naming-factory.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\naming-java.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\naming-resources.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\servlet-api.jar
    file:I:\Tomcat\Tomcat5.0\common\lib\tools.jar
----------> Parent Classloader:
sun.misc.Launcher$AppClassLoader@181afa3


 org.springFramework.web.servlet.DispatcherServlet
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)

2008-10-10 19:45:15 StandardWrapperValve[ListServlet]: Allocate exception for servlet ListServlet
javax.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的log



2008-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 WebApplicationContext

2008-10-10 19:56:34 StandardContext[/reserve]Marking servlet ListServlet as unavailable

2008-10-10 19:56:34 StandardContext[/reserve]Error loading WebappClassLoader

  delegate: false

  repositories:

    /WEB-INF/classes/

----------> Parent Classloader:

StandardClassLoader

  delegate: true

  repositories:

    file:I:\Tomcat\Tomcat5.0\shared\classes\

----------> Parent Classloader:

StandardClassLoader

  delegate: true

  repositories:

    file:I:\Tomcat\Tomcat5.0\common\classes\

    file:I:\Tomcat\Tomcat5.0\common\endorsed\xalan.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\ant-launcher.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\ant.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\commons-collections-3.1.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\commons-dbcp-1.2.1.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\commons-el.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\commons-pool-1.2.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\jasper-compiler.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\jasper-runtime.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\jsp-api.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\msbase.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\mssqlserver.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\msutil.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\naming-common.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\naming-factory.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\naming-java.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\naming-resources.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\servlet-api.jar

    file:I:\Tomcat\Tomcat5.0\common\lib\tools.jar

----------> Parent Classloader:

sun.misc.Launcher$AppClassLoader@181afa3





org.springFramework.web.servlet.DispatcherServlet

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.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() exception

javax.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.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.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.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 unavailable

2008-10-10 19:56:56 StandardWrapperValve[ListServlet]: Servlet ListServlet is currently unavailable

2008-10-10 19:56:57 StandardWrapperValve[ListServlet]: Servlet ListServlet is currently unavailable

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • totongf
    totongf 2008-10-11 19:57
    已采纳

    看错误的提示,提示的是找不到org.springFramework.web.servlet.DispatcherServlet
    你检查一下,这个类是不是两个jar包都有,或者根本没有这个类

    点赞 评论
  • totongf
    totongf 2008-10-11 12:52

    你的spring用的什么版本的,spring2.5之后,spring mvc就不在spring.jar里面了,找一找spring-webmvc.jar

    你可以去maven2仓库里面找一下
    http://repo1.maven.org/maven2/org/springframework/spring-webmvc/

    点赞 评论
  • xiao_ccos
    xiao_ccos 2008-10-12 10:22

    看看加载是否正常,或许没加载进去哦

    点赞 评论

相关推荐