日期:2014-05-18  浏览次数:20984 次

No bean named '' is defined
在eclipse的控制台启动tomcat后,tomcat正常运行,可是通过tomcat访问页面时,tomcat报如下的错误信息:
信息:   Server   startup   in   11766   ms
2007-7-29   22:29:33   org.apache.catalina.core.ApplicationContext   log
信息:   HTMLManager:   init:   Associated   with   Deployer   'Catalina:type=Deployer,host=localhost '
2007-7-29   22:29:33   org.apache.catalina.core.ApplicationContext   log
信息:   HTMLManager:   init:   Global   resources   are   available
2007-7-29   22:29:33   org.apache.catalina.core.ApplicationContext   log
信息:   HTMLManager:   list:   Listing   contexts   for   virtual   host   'localhost '
2007-7-29   22:29:36   org.apache.catalina.core.ApplicationContext   log
信息:   HTMLManager:   list:   Listing   contexts   for   virtual   host   'localhost '
  2007-07-29   22:29:37   ERROR   [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/spring].[jsp]]   -   <Servlet.service()   for   servlet   jsp   threw   exception>
org.springframework.beans.factory.NoSuchBeanDefinitionException:   No   bean   named   ' '   is   defined
at   org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:686)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219)
at   org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:149)
at   org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:541)
at   org.acegisecurity.util.FilterChainProxy.obtainAllDefinedFilters(FilterChainProxy.java:221)
at   org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:136)
at   org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at   java.lang.Thread.run(Thread.java:595)

向高手请指教错误的原因!