eclipse Java项目访问、发布出现问题,输入地址找不到资源页面不显示
10:41:32,458 ERROR ContextLoader:307 - Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean name 'userDao' is already used in this <beans> element
Offending resource: class path resource [applicationContext.xml]
一月 16, 2017 10:41:32 上午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Bean name 'userDao' is already used in this <beans> element
Offending resource: class path resource [applicationContext.xml]
严重: Error listenerStart
一月 16, 2017 10:41:32 上午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Shop] startup failed due to previous errors
一月 16, 2017 10:41:32 上午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
10:41:32,466 INFO XmlWebApplicationContext:1042 - Closing Root WebApplicationContext: startup date [Mon Jan 16 10:41:31 CST 2017]; root of context hierarchy
10:41:32,470 WARN XmlWebApplicationContext:1052 - Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: Root WebApplicationContext: startup date [Mon Jan 16 10:41:31 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:347)
10:41:32,471 WARN XmlWebApplicationContext:1060 - Exception thrown from LifecycleProcessor on context close
java.lang.IllegalStateException: LifecycleProcessor not initialized - call 'refresh' before invoking lifecycle methods via the context: Root WebApplicationContext: startup date [Mon Jan 16 10:41:31 CST 2017]; root of context hierarchy
at org.springframework.context.support.AbstractApplicationContext.getLifecycleProcessor(AbstractApplicationContext.java:360)
严重: Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext
at org.springframework.context.support.AbstractRefreshableApplicationContext.getBeanFactory(AbstractRefreshableApplicationContext.java:172)