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

问题描述

关于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
配置一个就行,配置两个就这错误,

在线等大神门求教!!

时间: 2024-11-03 19:15:20

javase-关于Myeclipse的错误org.springframework.beans.factory.BeanCreationException的相关文章

org.springframework.beans.factory.BeanCreationException: Error creating bean wit

问题描述 org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'txEasyjwebProcessorAdvice':Cannotresolvereferencetobean'transactionManager'whilesettingbeanproperty'transactionManager';nestedexceptionisorg.springframework.beans.

ssh整合出错:org.springframework.beans.factory.BeanCreationException: Error creating

问题描述 applicationContent.xml配置<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://w

跪求大神帮解决org.springframework.beans.factory.BeanCreationException: Error creating b

问题描述 org.springframework.beans.factory.BeanCreationException:Errorcreatingbeanwithname'org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor#0':Initializationofbeanfailed;nestedexceptionisorg.springframework.beans.factory.Be

求解决org.springframework.beans.factory.BeanCreationException

问题描述 dwr和spring整合时出的问题,请问有谁知道这是怎么回事呢? 具体代码如下: dwr.xml <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 2.0//EN" "http://getahead.org/dwr/dwr20.dtd">

spring hibernate-org.springframework.beans.factory.BeanCreationException

问题描述 org.springframework.beans.factory.BeanCreationException applicationContext.xml文件 <?xml version=""1.0"" encoding=""UTF-8""?> xmlns=""http://www.springframework.org/schema/beans"" xmlns:

急死人了,SSH整合报错,高手进来帮忙解决啊,org.springframework.beans.factory.BeanCreationException

问题描述 2010-11-13 12:37:39 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: D:InstalledMyEclipsebin;D:In

springmvc-org.springframework.beans.factory.BeanCreationException:

问题描述 org.springframework.beans.factory.BeanCreationException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService' defined in class path resource [application.xml]: Error setting property values; nested

求解:org.springframework.beans.factory.BeanCreationException

问题描述 配置文件<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframew

ibatis和Spring整合抛org.springframework.beans.factory.BeanCreationException

问题描述 『spring2.5和Ibatis2整合』spring配置文件如下:<?xmlversion="1.0"encoding="UTF-8"?><beansxmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://