2 xiaolzhuz xiaolzhuz 于 2013.08.07 12:43 提问

关于Myeclipse的错误org.springframework.beans.factory.BeanCreationException

严重: 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

'daoSupport' defined in ServletContext resource [/WEB-INF/classes/applicationContext-

bean.xml]: Instantiation of bean failed; nested exception is

org.springframework.beans.BeanInstantiationException: Could not instantiate bean class

[com.lc.service.base.DaoSupport]: Is it an abstract class?; nested exception is

java.lang.InstantiationException
at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBea

n(AbstractAutowireCapableBeanFactory.java:946)
at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInst

ance(AbstractAutowireCapableBeanFactory.java:892)
at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean

(AbstractAutowireCapableBeanFactory.java:479)
at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean

(AbstractAutowireCapableBeanFactory.java:450)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject

(AbstractBeanFactory.java:290)
at

org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton

(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean

(AbstractBeanFactory.java:287)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean

(AbstractBeanFactory.java:189)
at

org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingleto

ns(DefaultListableBeanFactory.java:562)
at

org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitializat

ion(AbstractApplicationContext.java:871)
at org.springframework.context.support.AbstractApplicationContext.refresh

(AbstractApplicationContext.java:423)
at org.springframework.web.context.ContextLoader.createWebApplicationContext

(ContextLoader.java:272)
at org.springframework.web.context.ContextLoader.initWebApplicationContext

(ContextLoader.java:196)
at org.springframework.web.context.ContextLoaderListener.contextInitialized

(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart

(StandardContext.java:3843)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)
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:926)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
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: org.springframework.beans.BeanInstantiationException: Could not instantiate bean

class [com.lc.service.base.DaoSupport]: Is it an abstract class?; nested exception is

java.lang.InstantiationException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:129)
at

org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate

(SimpleInstantiationStrategy.java:72)
at

org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBea

n(AbstractAutowireCapableBeanFactory.java:939)
... 37 more
Caused by: java.lang.InstantiationException
at sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance

(InstantiationExceptionConstructorAccessorImpl.java:30)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 39 more
2013-8-7 12:38:32 org.apache.catalina.core.StandardContext start
严重: Error listenerStart
2013-8-7 12:38:32 org.apache.catalina.core.StandardContext start
严重: Context [/LcClothes] startup failed due to previous errors
2013-8-7 12:38:32 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2013-8-7 12:38:34 org.apache.catalina.core.ApplicationContext log
信息: org.tuckey.web.filters.urlrewrite.utils.Log ERROR: logLevelConf: WARN
2013-8-7 12:38:35 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-8181
2013-8-7 12:38:35 org.apache.jk.common.ChannelSocket init
信息: JK: ajp13 listening on /0.0.0.0:8009
2013-8-7 12:38:35 org.apache.jk.server.JkMain start
信息: Jk running ID=0 time=0/28 config=null
2013-8-7 12:38:35 org.apache.catalina.startup.Catalina start
信息: Server startup in 12529 ms

在applicationContext.xml
配置一个就行,配置两个就这错误,





在线等大神门求教!!

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field
1 错误描述 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.sc.oa.test.timer.dao.TimerDaoTest': Injection of autowired dependencies failed; nested exception is
整合SSH时,遇到了org.springframework.beans.factory.BeanCreationException
错误是:  Error creating bean with name 'staffService' defined in class path resource [bean.xml]: Cannot resolve reference to bean 'staffDaoImpl' while setting bean property 'staffDao'; nested exception
搭建SSH框架解决的小问题org.springframework.beans.factory.BeanCreationException
在以前搭建的一个SSH框架Demo在今天运行时报了如下错误信息: 严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener org.springframework.beans.factory
题目:org.springframework.beans.factory.BeanCreationException(hibernate中的jar包和spring中的jar包冲突)异常产生的原因和解决方案。
题目:org.springframework.beans.factory.BeanCreationException异常产生的原因和解决方案。org.springframework.beans.factory.BeanCreationException: Error creating bean with name dataSource defined in ServletContext
测试ssm框架用例时编译报错之org.springframework.beans.factory.BeanCreationException
第一次出现异常的地方:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService':Could not autowire field: private com.taotao.service.ItemService com.taotao.controller.I...
Spring读取配置文件org.springframework.beans.factory.BeanCreationException异常产生的原因和解决方案
Spring读取properties文件
整合Spring和Mybatis 中org.springframework.beans.factory.BeanCreationException错误
这两天学习strut2和spring的整合,启动服务器后总是爆粗如下错误, org.springframework.beans.factory.BeanCreationException:  Error creating bean with name 'sqlSessionFactory' defined in URL [file:/E:/workspace/.metadata/.plugin
org.springframework.beans.factory.BeanCreationException异常的解决办法
1 异常描述在从 SVN 检出项目并配置完成后,启动 Tomcat 服务器,报出如下错误:2 异常原因通过观察上图中被标记出来的异常信息,咱们可以知道org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘XXX’此异常,为:注入 bean 失败异常。说白了,出现这个异常,就是找...
spring-AOP编程出现org.springframework.beans.factory.BeanCreationException
若你的项目出现如下异常: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in class path resource [beans.xml]: BeanPostProcessor before instantiation of
SpringMVC的Service互相循环调用错误: org.springframework.beans.factory.BeanCurrentlyInCreationException
以下是报错的内容,我的项目这种错误的导致原因:是我在SpringMVC的Service中的两个Service进行了互相调用,即servce1中注解了service2,又在service2中注解了service1,并且调用了方法,这里就会产生错误,大概是循环调用的原因,类似于数据库表的自关联循环产生的错误,即自己调用的方法里还有自己,造成无限循环。解决办法:比较简单的对数据库的操作直接注解Model层