请教一个启动tomcat时发生的错误org.apache.catalina.core.StandardContext listenerStart

haosinx 2012-07-31 10:14:13
2012-7-31 9:46:24 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: Failed to import bean definitions from relative location [biz-context.xml]
Offending resource: ServletContext resource [/WEB-INF/common-context.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'sysParamDAO' for bean class [com.focoon.agilecollab.generated.dao.impl.SysParamDAOImpl] conflicts with existing, non-compatible bean definition of same name and class [com.focoon.agilecollab.common.biz.integration.dao.impl.SysParamDAOImpl]
at org.springframework.beans.factory.parsing.FailFastProblemReporter.error(FailFastProblemReporter.java:68)
巴拉巴拉
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'sysParamDAO' for bean class [com.focoon.agilecollab.generated.dao.impl.SysParamDAOImpl] conflicts with existing, non-compatible bean definition of same name and class [com.focoon.agilecollab.common.biz.integration.dao.impl.SysParamDAOImpl]
巴拉巴拉
2012-7-31 9:46:24 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2012-7-31 9:46:24 org.apache.catalina.core.StandardContext start
严重: Context [/agilecollab] startup failed due to previous errors
2012-7-31 9:46:24 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-7-31 9:46:24 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/agilecollab] registered the JBDC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
...全文
2285 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
五哥 2012-08-15
  • 打赏
  • 举报
回复
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'sysParamDAO' for bean class [com.focoon.agilecollab.generated.dao.impl.SysParamDAOImpl

解析 biz-context.xml时报异常 ,说是 sysParamDAO是无效参数异常
haosinx 2012-07-31
  • 打赏
  • 举报
回复
[Quote=引用 2 楼 的回复:]
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.Illegal……
[/Quote]

您好 谢谢您的回复 可以具体说下么 我还是看不懂。。。。
五哥 2012-07-31
  • 打赏
  • 举报
回复
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'sysParamDAO' for bean class [com.focoon.agilecollab.generated.dao.impl.SysParamDAOImpl] conflicts with existing, non-compatible bean definition of same name and class [com.focoon.agilecollab.common.biz.integration.dao.impl.SysParamDAOImpl
五哥 2012-07-31
  • 打赏
  • 举报
回复
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/biz-context.xml]; nested exception is java.lang.IllegalStateException: Annotation-specified bean name 'sysParamDAO' for bean class [com.focoon.agilecollab.generated.dao.impl.SysParamDAOImpl] conflicts with existing, non-compatible bean definition of same name and class [com.focoon.agilecollab.common.biz.integration.dao.impl.SysParamDAOImpl
java-struts2.2的驱动包 2009-8-29 14:02:04 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_10\bin;C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin 2009-8-29 14:02:05 org.apache.coyote.http11.Http11Protocol init 信息: Initializing Coyote HTTP/1.1 on http-80 2009-8-29 14:02:05 org.apache.catalina.startup.Catalina load 信息: Initialization processed in 2997 ms 2009-8-29 14:02:05 org.apache.catalina.core.StandardService start 信息: Starting service Catalina 2009-8-29 14:02:05 org.apache.catalina.core.StandardEngine start 信息: Starting Servlet Engine: Apache Tomcat/6.0.16 2009-8-29 14:02:11 org.apache.catalina.core.StandardContext addApplicationListener 信息: The listener "org.springframework.web.context.ContextLoaderListener" is already configured for this context. The duplicate definition has been ignored. log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader). log4j:WARN Please initialize the log4j system properly. 2009-8-29 14:02:12 org.apache.catalina.core.ApplicationContext log 信息: Loading Spring root WebApplicationContext 2009-8-29 14:02:25 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.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.AbstractMethodError: org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator.postProcessAfterInstantiation(Ljava/lang/Object;Ljava/lang/String;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:478) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.AbstractMethodError: org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator.postProcessAfterInstantiation(Ljava/lang/Object;Ljava/lang/String;)Z at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:957) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470) ... 39 more 2009-8-29 14:02:25 org.apache.catalina.core.StandardContext start 严重: Error listenerStart 2009-8-29 14:02:25 org.apache.catalina.core.StandardContext start 严重: Context [/OAProject] startup failed due to previous errors 2009-8-29 14:02:25 org.apache.catalina.core.ApplicationContext log 信息: Closing Spring root WebApplicationContext log4j:WARN No appenders could be found for logger (com.opensymphony.xwork2.config.providers.XmlConfigurationProvider). log4j:WARN Please initialize the log4j system properly. 2009-8-29 14:02:46 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-80 2009-8-29 14:02:46 org.apache.jk.common.ChannelSocket init 信息: JK: ajp13 listening on /0.0.0.0:8009 2009-8-29 14:02:46 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/125 config=null 2009-8-29 14:02:46 org.apache.catalina.startup.Catalina start 信息: Server startup in 41293 ms

58,454

社区成员

发帖
与我相关
我的任务
社区描述
Java Eclipse
社区管理员
  • Eclipse
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧