启动tomcat 报错,什么情况.

wanjianguang 2013-01-30
org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.rop.ServiceRouter] is defined: expected single bean but found 0:
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:258)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1052)
at com.rop.RopServlet.init(RopServlet.java:60)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
2013-1-30 17:29:18 org.apache.catalina.core.StandardContext loadOnStartup
yanzi1225627 2013-02-09
您可以重新下载一个版本。我的是免安装的,使用过程可以参考这:http://blog.csdn.net/yanzi1225627/article/details/8531627
yanzi1225627 2013-02-09
您可以重新下载一个版本。我的是免安装的,使用过程可以参考这:http://blog.csdn.net/yanzi1225627/article/details/8531627
yujingtaojing 2013-02-27
spring bean不正确

NoSuchBeanDefinitionException
J_lyf 2013-02-27
错误第二行中提示,希望有一个bean,但是找到了0个,说明bean的配置存在问题
freezingsky 2013-02-27
spring配置时,出了问题,缺少对应的bean定义 。
mryangjw 2013-02-28
典型的bean配置不正确。
zhangxianwen1392 2013-08-06
resources目录和src目录放在同一级目录中
Global site tag (gtag.js) - Google Analytics