项目启动报错:Error creating bean with name 'alarmEventService' defined in URL 求大佬指点。感谢 [问题点数:50分,无满意结帖,结帖人TIN9514]

Bbs1
本版专家分:0
结帖率 100%
Bbs4
本版专家分:1535
Blank
GitHub 绑定GitHub第三方账户获取
Blank
红花 2019年7月 Java大版内专家分月排行榜第一
Blank
蓝花 2019年5月 Java大版内专家分月排行榜第三
Bbs1
本版专家分:0
Bbs1
本版专家分:0
Error creating bean with name 'mappingDatabaseService' defined in file
Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'mappingDatabaseService' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\business\business-<em>bean</em>s.xml]: Cannot resolve reference to <em>bean</em> 'commonDao' while setting <em>bean</em> property 'commonDao'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'commonDao' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext-sys.xml]: Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext-sys.xml]: Cannot resolve reference to <em>bean</em> 'dataSource' while setting <em>bean</em> property 'dataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name SZPSPOOL is not bound in this Contextrn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'commonDao' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext-sys.xml]: Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext-sys.xml]: Cannot resolve reference to <em>bean</em> 'dataSource' while setting <em>bean</em> property 'dataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name SZPSPOOL is not bound in this Contextrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn ... 39 morernCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext-sys.xml]: Cannot resolve reference to <em>bean</em> 'dataSource' while setting <em>bean</em> property 'dataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in file [E:\tomcatcmhit\webapps\ROOT\WEB-INF\classes\conf\spring\applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException: Name SZPSPOOL is not bound in this Contextrn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1104)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1054)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn ... 45 morernrn
Error creating bean with name 'dataSource' defined in file
Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in file [E:\code\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\h5Platform\WEB-INF\classes\conf\spring-config.xml]: Invocation of init method failed; nested exception is java.sql.SQLException: Io 异常: The Network Adapter could not establish the connectionrnrn电脑死机之后重启<em>项目</em>就报错了,原来都是可以的,而且报错之后数据库连接一直失败。请问是怎么回事该怎么解决
BeanCreationException: Error creating bean with name 'serverStarting' defined in
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'serverStarting' <em>defined</em> in file [D:\fpi_dev\workspace\workspace_default\prj-changxing-poms\target\classes\custom\dts\dts-core.xml]: Invocation of init method failed; nested exception is com.fpi.bear.common.jms.BearJmsException: regist message listener failed. topic : POMS_MeasureDataTopicrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:605)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)rn at javax.servlet.GenericServlet.init(GenericServlet.java:160)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)rn at java.lang.Thread.run(Thread.java:662)rnCaused by: com.fpi.bear.common.jms.BearJmsException: regist message listener failed. topic : POMS_MeasureDataTopicrn at com.fpi.bear.common.jms.JmsUtil.registMessageListener(JmsUtil.java:108)rn at com.fpi.bear.common.jms.JmsUtil.registMessageListener(JmsUtil.java:85)rn at com.fpi.prd.poms.dts.ServerStarting.startServer(ServerStarting.java:47)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1581)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1522)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 29 more
Error creating bean with name 'sessionfactory' defined in file
===================================application-transaction.xml===============================================rnrnrnrnrn rn rn rn classpath:jdbc.propertiesrn rn rn rnrn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn================================================struts.xml====================================================rnrnrnrn rn rn /regSuc.jsprn /regFail.jsprn rn rn rn /regSuc.jsprn /regFail.jsprn rn rnrn========================================hibernate.cfg.xml=====================================================rnrnrnrn rnrnrn rn updatern truernrnrn rnrn rnrn====================================jar包=================================================================rn[img=C:\Users\Krew-Xuen\Desktop][/img]rn=========================================错误信息========================================================rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionfactory' <em>defined</em> in file [C:\Program Files (x86)\Apache Software Foundation\Tomcat 6.0\webapps\xgh001\WEB-INF\classes\application-transaction.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/dom4j/DocumentExceptionrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn
Error creating bean with name 'sessionFactory' defined in file [
2011-10-30 11:12:58 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rnlog4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.rn2011-10-30 11:13:03 org.apache.catalina.core.StandardContext filterStartrn
Error creating bean with name 'dataSource' defined
rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.SQLServerDialectrn rn rn rn rnrnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in ServletContext resource [/WEB-INF/spring.xml]: Instantiation of <em>bean</em> failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool rn Caused by: rn java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPool rn at java.lang.Class.getDeclaredConstructors0(Native Method) rn at java.lang.Class.privateGetDeclaredConstructors(Unknown Source) rn at java.lang.Class.getConstructor0(Unknown Source) rn at java.lang.Class.getDeclaredConstructor(Unknown Source) rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54) rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:752) rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:717) rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:386) rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249) rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155) rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246) rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291) rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354) rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295) rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225) rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869) rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336) rn at javax.servlet.GenericServlet.init(GenericServlet.java:212) rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139) rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966) rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956) rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889) rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492) rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149) rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) rn at org.apache.catalina.core.StandardService.start(StandardService.java:448) rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552) rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) rn at java.lang.reflect.Method.invoke(Unknown Source) rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Error creating bean with name 'sessionFactory' defined ??
2011-11-7 20:57:31 org.apache.catalina.startup.HostConfig checkResourcesrnorg.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory - Pre-instantiating singletons in org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory@3e584d: defining <em>bean</em>s [dataSource,log4jdbcInterceptor,dataSourceLog4jdbcAutoProxyCreator,jdbcTemplate,sessionFactory,transactionManager,userInfoDao,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,messageSource,propertyConfigurer,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,userInfoManager,validator,messageInterpolator,resourceBundleLocator]; root of factory hierarchyrn2011-11-07 20:57:34,250 [// - - ] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.3.0.GArn2011-11-07 20:57:34,281 [// - - ] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GArnorg.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory - Destroying singletons in org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory@3e584d: defining <em>bean</em>s [dataSource,log4jdbcInterceptor,dataSourceLog4jdbcAutoProxyCreator,jdbcTemplate,sessionFactory,transactionManager,userInfoDao,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,messageSource,propertyConfigurer,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,userInfoManager,validator,messageInterpolator,resourceBundleLocator]; root of factory hierarchyrn2011-11-07 20:57:35,796 [// - - ] ERROR org.springframework.web.context.ContextLoader - Context initialization failedrn[color=#FF0000]org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [C:\Program Files\Apache Software [/color]Foundation\Tomcat 6.0\webapps\struts2_demo2\WEB-INF\classes\spring\applicationContext-hibernate-dao.xml]: Invocation of init method failed; [color=#FF0000]nested exception is java.lang.NoClassDefFoundError: java/sql/SQLClientInfoException[/color] at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NoClassDefFoundError: java/sql/SQLClientInfoExceptionrn at net.sf.log4jdbc.DataSourceSpyInterceptor.invoke(DataSourceSpyInterceptor.java:24)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)rn at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)rn at $Proxy47.getConnection(Unknown Source)rn at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionProvider.java:81)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2119)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2115)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1339)rn at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:915)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)rn ... 23 morern2011-11-7 20:57:35 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\struts2_demo2\WEB-INF\classes\spring\applicationContext-hibernate-dao.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: java/sql/SQLClientInfoExceptionrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn2011-11-7 20:57:35 org.apache.catalina.core.StandardContext startrn严重: Context [/struts2_demo2] startup failed due to previous <em>error</em>srn2011-11-7 20:57:35 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn
Error creating bean with name''
applicationContext.xmlrnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.hql.classic.ClassicQueryTranslatorFactoryrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIREDrn PROPAGATION_REQUIRED,readOnlyrn rn rn rn rn rnrnrnrnrnrnapplicationContext_cf.xmlrnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnrn
Error creating bean with name
严重: Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping#0': Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.handler.MappedInterceptor#1': Could not resolve matching constructor (hint: specify index/type/<em>name</em> arguments for simple parameters to avoid type ambiguities)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5231)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5518)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.handler.MappedInterceptor#1': Could not resolve matching constructor (hint: specify index/type/<em>name</em> arguments for simple parameters to avoid type ambiguities)rn at org.springframework.<em>bean</em>s.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:247)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1075)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:979)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:438)rn at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1188)rn at org.springframework.<em>bean</em>s.factory.BeanFactoryUtils.<em>bean</em>sOfTypeIncludingAncestors(BeanFactoryUtils.java:277)rn at org.springframework.web.servlet.handler.AbstractHandlerMapping.detectMappedInterceptors(AbstractHandlerMapping.java:221)rn at org.springframework.web.servlet.handler.AbstractHandlerMapping.initApplicationContext(AbstractHandlerMapping.java:196)rn at org.springframework.context.support.ApplicationObjectSupport.initApplicationContext(ApplicationObjectSupport.java:119)rn at org.springframework.web.context.support.WebApplicationObjectSupport.initApplicationContext(WebApplicationObjectSupport.java:72)rn at org.springframework.context.support.ApplicationObjectSupport.setApplicationContext(ApplicationObjectSupport.java:73)rn at org.springframework.context.support.ApplicationContextAwareProcessor.invokeAwareInterfaces(ApplicationContextAwareProcessor.java:117)rn at org.springframework.context.support.ApplicationContextAwareProcessor.postProcessBeforeInitialization(ApplicationContextAwareProcessor.java:92)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:396)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1505)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)rn ... 31 morernrn
菜鸟求助,项目启动报错Error creating bean with name
老<em>项目</em>要求加入部分功能,我新加了一个Action,加了几个实体,在一个Service中添加了一些方法,启动就报错,下面是报错代码rn[code=java]2017-03-07 14:23:54,888 [org.springframework.web.context.ContextLoader][org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:220)]-[ERROR] Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'getdataService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.QueryService com.mss.shtoone.service.GetdataService.queryService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'queryService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.SystemService com.mss.shtoone.service.QueryService.sysService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'systemService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.ShaifenshiyanService com.mss.shtoone.service.SystemService.shaifenService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'shaifenshiyanService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.persistence.ShaifenshiyanViewDAO com.mss.shtoone.service.ShaifenshiyanService.sfviewDAO; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No matching <em>bean</em> of type [com.mss.shtoone.persistence.ShaifenshiyanViewDAO] found for dependency: expected at least 1 <em>bean</em> which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.<em>bean</em>s.factory.annotation.Autowired(required=true)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.QueryService com.mss.shtoone.service.GetdataService.queryService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'queryService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.SystemService com.mss.shtoone.service.QueryService.sysService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'systemService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.ShaifenshiyanService com.mss.shtoone.service.SystemService.shaifenService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'shaifenshiyanService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.persistence.ShaifenshiyanViewDAO com.mss.shtoone.service.ShaifenshiyanService.sfviewDAO; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No matching <em>bean</em> of type [com.mss.shtoone.persistence.ShaifenshiyanViewDAO] found for dependency: expected at least 1 <em>bean</em> which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.<em>bean</em>s.factory.annotation.Autowired(required=true)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:507)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:283)rn ... 22 morernCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'queryService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.SystemService com.mss.shtoone.service.QueryService.sysService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'systemService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.service.ShaifenshiyanService com.mss.shtoone.service.SystemService.shaifenService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'shaifenshiyanService': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.mss.shtoone.persistence.ShaifenshiyanViewDAO com.mss.shtoone.service.ShaifenshiyanService.sfviewDAO; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No matching <em>bean</em> of type [com.mss.shtoone.persistence.ShaifenshiyanViewDAO] found for dependency: expected at least 1 <em>bean</em> which qualifies as autowire candidate for this dependency. Dependency annotations: @org.springframework.<em>bean</em>s.factory.annotation.Autowired(required=true)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1064)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:838)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:780)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:697)rn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:478)rn ... 24 morern[/code]
求大神啊Error creating bean with name 'tbItemMapper' defined in file
三月 02, 2018 5:20:33 下午 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'tbItemMapper' <em>defined</em> in file [D:\javaee20171017\e3-manager\e3-manager-dao\target\classes\com\e3mall\mapper\TbItemMapper.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong <em>name</em>space. Expected 'com.e3mall.mapper.TbItemMapper' but found 'com.e3mall.mapper.Item'.rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1578)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:545)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:753)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.IllegalArgumentException: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong <em>name</em>space. Expected 'com.e3mall.mapper.TbItemMapper' but found 'com.e3mall.mapper.Item'.rn at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:100)rn at org.springframework.dao.support.DaoSupport.afterPropertiesSet(DaoSupport.java:44)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)rn ... 21 morernCaused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Wrong <em>name</em>space. Expected 'com.e3mall.mapper.TbItemMapper' but found 'com.e3mall.mapper.Item'.rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92)rn at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.loadXmlResource(MapperAnnotationBuilder.java:166)rn at org.apache.ibatis.builder.annotation.MapperAnnotationBuilder.parse(MapperAnnotationBuilder.java:118)rn at org.apache.ibatis.binding.MapperRegistry.addMapper(MapperRegistry.java:71)rn at org.apache.ibatis.session.Configuration.addMapper(Configuration.java:651)rn at org.mybatis.spring.mapper.MapperFactoryBean.checkDaoConfig(MapperFactoryBean.java:97)rn ... 24 morernCaused by: org.apache.ibatis.builder.BuilderException: Wrong <em>name</em>space. Expected 'com.e3mall.mapper.TbItemMapper' but found 'com.e3mall.mapper.Item'.rn at org.apache.ibatis.builder.MapperBuilderAssistant.setCurrentNamespace(MapperBuilderAssistant.java:78)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:112)rn ... 30 morern
项目启动Error creating bean with name 'org.springframework.transaction.annotation.An
Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0': BeanPostProcessor before instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.cache.config.internalCacheAdvisor': Cannot resolve reference to <em>bean</em> 'org.springframework.cache.annotation.AnnotationCacheOperationSource#0' while setting <em>bean</em> property 'cacheOperationSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.cache.annotation.AnnotationCacheOperationSource#0': BeanPostProcessor before instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Cannot create inner <em>bean</em> '(inner <em>bean</em>)' of type [org.springframework.aop.aspectj.AspectJExpressionPointcut] while setting <em>bean</em> property 'pointcut'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)': Instantiation of <em>bean</em> failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/util/TypeSafeEnumrnrn用的是maven,包应该都下下来了,已启动就这样了rnrn什么情况啊?急死了
springBoot+maven的webservice接口项目Error creating bean with name
springBoot+maven的webservice接口服务,<em>项目</em>下8个接口,endpoint.publish发布rn原本8个接口,服务运行正常,添加一个新的后就报Error <em>creating</em> <em>bean</em> with <em>name</em> 'endpointXyCheck' <em>defined</em> in class path resource [com/jsptpd/Project/service/CxfConfig.class]rnrnrnrn新加的service接口rnrnpackage com.jsptpd.Project.service;rnrnimport com.jsptpd.Project.pojo.XyCheckReturnInfo;rnrnrnimport javax.jws.WebMethod;rnimport javax.jws.WebParam;rnimport javax.jws.WebService;rnrn@WebService(targetNamespace = "http://Project.jsptpd.com")// 命名空间,一般是接口的包名rnpublic interface XycheckService rnrn @WebMethodrn void getX5Message(@WebParam(<em>name</em> = "XyCheckReturnInfo") XyCheckReturnInfo m);rnrn
Error creating bean with name 'sqlMapClient'
struts1.2+spring2.0+ibatis2整合时出现的错误:rnrn信息: Initializing Spring root WebApplicationContextrn[framework] 2009-04-28 10:53:54,156 - org.springframework.web.context.ContextLoader -6125 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in ServletContext resource [/WEB-INF/spring_datasouce.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/com/inspur/web/spring/ibatis/config/SqlMapConfig.xml]rnCaused by: rnjava.io.FileNotFoundException: Could not open ServletContext resource [/com/inspur/web/spring/ibatis/config/SqlMapConfig.xml]rn at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:99)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:315)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:280)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-4-28 10:53:54 org.apache.catalina.core.StandardContext listenerStart
Error creating bean with name 'sessionFactory
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4135)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4630)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:445)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)rn ... 39 morernrnrnspring的配置rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn rn rn rn rn rn com/aa/model/Users.hbm.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnJunit测试能连接数据库.rn
Error creating bean with name 'org.springframework.aop.config.internalAutoProxyC
16:01:02,373 [ERROR] [ContextLoader:307] - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.aop.config.internalAutoProxyCreator': Initialization of <em>bean</em> failed; nested exception is java.lang.NoSuchMethodError: org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata: method ()V not foundrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:527)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:734)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:457)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4210)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4709)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:822)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: java.lang.NoSuchMethodError: org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata: method ()V not foundrn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findPersistenceMetadata(PersistenceAnnotationBeanPostProcessor.java:342)rn at org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessAfterInstantiation(PersistenceAnnotationBeanPostProcessor.java:296)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1068)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn ... 25 morernrnrn错误如上,该有的包我都有!启动报这个错误
Error creating bean with name 'loadTimeWeaver'
请问这种情况需要怎么解决rnError starting ApplicationContext. To display the auto-configuration report enabled debug logging (start with --debug)rnrnrn2016-02-22 11:09:48.686 ERROR 3184 --- [ main] o.s.boot.SpringApplication : Application startup failedrnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'loadTimeWeaver' <em>defined</em> in class path resource [org/springframework/context/annotation/LoadTimeWeavingConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Failed to instantiate [org.springframework.instrument.classloading.LoadTimeWeaver]: Factory method 'loadTimeWeaver' threw exception; nested exception is java.lang.IllegalStateException: ClassLoader [sun.misc.Launcher$AppClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jarrnat org.springframework.<em>bean</em>s.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)rn at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:109)rn at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:691)rn at org.springframework.boot.SpringApplication.run(SpringApplication.java:321)rn at cn.cloudmirror.platform.controller.CloudMirrorApplication.main(CloudMirrorApplication.java:22)rnCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Failed to instantiate [org.springframework.instrument.classloading.LoadTimeWeaver]: Factory method 'loadTimeWeaver' threw exception; nested exception is java.lang.IllegalStateException: ClassLoader [sun.misc.Launcher$AppClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jarrn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)rn at org.springframework.<em>bean</em>s.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)rn ... 15 common frames omittedrnCaused by: java.lang.IllegalStateException: ClassLoader [sun.misc.Launcher$AppClassLoader] does NOT provide an 'addTransformer(ClassFileTransformer)' method. Specify a custom LoadTimeWeaver or start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jarrn at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.setBeanClassLoader(DefaultContextLoadTimeWeaver.java:91)rn at org.springframework.context.weaving.DefaultContextLoadTimeWeaver.(DefaultContextLoadTimeWeaver.java:67)rn at org.springframework.context.annotation.LoadTimeWeavingConfiguration.loadTimeWeaver(LoadTimeWeavingConfiguration.java:84)rn at org.springframework.context.annotation.LoadTimeWeavingConfiguration$$EnhancerBySpringCGLIB$$4b99c051.CGLIB$loadTimeWeaver$0()rn at org.springframework.context.annotation.LoadTimeWeavingConfiguration$$EnhancerBySpringCGLIB$$4b99c051$$FastClassBySpringCGLIB$$22af036d.invoke()rn at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228)rn at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:355)rn at org.springframework.context.annotation.LoadTimeWeavingConfiguration$$EnhancerBySpringCGLIB$$4b99c051.loadTimeWeaver()rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:497)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)rn ... 16 common frames omittedrn
Error creating bean with name 'entityManagerFactoryBean'
使用maven+jetty,jetty启动就报如下异常.奖dataSource注掉则能够启动.rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'datasourceServiceConfig': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.xzsoft.hfms.persistence.JpaDatasourceDao com.xzsoft.hfms.service.internal.DatasourceServiceConfig.datasourceRep; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'JpaDatasourceDao': Injection of persistence dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'entityManagerFactoryBean' <em>defined</em> in URL [jar:file:/E:/.m2/repository/com/xzsoft/hfms/hfms-persistence/1.0-SNAPSHOT/hfms-persistence-1.0-SNAPSHOT.jar!/persistence-config.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerExceptionrn at org.springframework.<em>bean</em>s.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:285)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rnrnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rnrnrn rn rn rnrn rn rn
Error creating bean with name 'org.springframework.web.servlet.mvc.method.annota
rn2017-07-27 14:42:24,549 WARN [springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner <em>bean</em> '(inner <em>bean</em>)#7275b020' of type [org.springframework.web.servlet.handler.ConversionServiceExposingInterceptor] while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)#7275b020': Cannot resolve reference to <em>bean</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0' while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0': Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen spacern2017-07-27 14:42:24,552 ERROR [org.springframework.web.servlet.DispatcherServlet] - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping': Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner <em>bean</em> '(inner <em>bean</em>)#7275b020' of type [org.springframework.web.servlet.handler.ConversionServiceExposingInterceptor] while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)#7275b020': Cannot resolve reference to <em>bean</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0' while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0': Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen spacern at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:755)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:762)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:664)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:630)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:678)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:549)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:490)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5266)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5554)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:4033)rn at org.apache.catalina.loader.WebappLoader.backgroundProcess(WebappLoader.java:425)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1345)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1546)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1556)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1524)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.handler.MappedInterceptor#0': Cannot create inner <em>bean</em> '(inner <em>bean</em>)#7275b020' of type [org.springframework.web.servlet.handler.ConversionServiceExposingInterceptor] while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)#7275b020': Cannot resolve reference to <em>bean</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0' while setting constructor argument; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.format.support.FormattingConversionServiceFactoryBean#0': Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: PermGen spacernrnrnps: 改了service中间的一行代码rn[code=java]if (StringUtils.isBlank(role.getId()))rn role.preInsert();rn roleDao.insert(role);rn //同时将角色的权限添加到finebi数据库rn Curep curep = new Curep(255, 1, 2, 1, 222, 222);rn curepService.save(curep);rn // 同步到Activitirn saveActivitiGroup(role);[/code]rnrn
Error creating bean with name 'sessionFactory'
下面是详细信息n2015-12-17 9:07:58 org.apache.catalina.core.StandardContext listenerStartn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenernorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [spring.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: entity class not found: Newsn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1420)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)n at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)n at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:563)n at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)n at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)n at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)n at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)n at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)n at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)n at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)n at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)n at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)n at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)n at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)n at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)n at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)n at org.apache.catalina.core.StandardService.start(StandardService.java:516)n at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)n at org.apache.catalina.startup.Catalina.start(Catalina.java:566)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)n at java.lang.reflect.Method.invoke(Method.java:597)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)nCaused by: org.hibernate.MappingException: entity class not found: Newsn at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:122)n at org.hibernate.tuple.PropertyFactory.getGetter(PropertyFactory.java:191)n at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:67)n at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:136)n at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:456)n at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:131)n at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)n at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:267)n at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)n at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)n at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)n at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1477)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417)n ... 36 morenCaused by: java.lang.ClassNotFoundException: Newsn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)n at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)n at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)n at java.lang.Class.forName0(Native Method)n at java.lang.Class.forName(Class.java:169)n at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:192)n at org.hibernate.mapping.PersistentClass.getMappedClass(PersistentClass.java:119)n ... 49 moren2015-12-17 9:07:58 org.apache.catalina.core.StandardContext startn严重: Error listenerStartn2015-12-17 9:07:58 org.apache.catalina.core.StandardContext startn严重: Context [/Yes_MakerSpace] startup failed due to previous <em>error</em>sn2015-12-17 9:07:58 org.apache.catalina.core.ApplicationContext logn信息: Closing Spring root WebApplicationContextnlog4j:ERROR LogMananger.repositorySelector was null likely due to <em>error</em> in class reloading, using NOPLoggerRepository.n2015-12-17 9:07:58 org.apache.catalina.loader.WebappClassLoader loadClassn信息: Illegal access: this web application instance has been stopped already. Could not load java.net.BindException. The eventual following stack trace is caused by an <em>error</em> thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.njava.lang.IllegalStateExceptionn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)n at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)n at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)n at com.mysql.jdbc.CommunicationsException.(CommunicationsException.java:161)n at com.mysql.jdbc.MysqlIO.send(MysqlIO.java:2759)n at com.mysql.jdbc.MysqlIO.quit(MysqlIO.java:1410)n at com.mysql.jdbc.Connection.realClose(Connection.java:4947)n at com.mysql.jdbc.Connection.cleanup(Connection.java:2063)n at com.mysql.jdbc.Connection.finalize(Connection.java:3403)n at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)n at java.lang.ref.Finalizer.runFinalizer(Finalizer.java:83)n at java.lang.ref.Finalizer.access$100(Finalizer.java:14)n at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:160)
Error creating bean with name 'defaultHandlerMapping'
rn---------------------------------rn rn rn rn /ainfo.dorn rn rn rn rn org.springframework.web.servlet.mvc.Controller rn rn asecureAdvisorrn rn rn------------------------------rn rn rn rn rn rn rn rn .*rn rn rn rn rn rnrn报错:org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'defaultHandlerMapping' <em>defined</em> in ServletContext resource [/WEB-INF/action-servlet.xml]: Initialization of <em>bean</em> failed; nested exception is java.lang.NullPointerException: nullrnrnrnrnrn
Error creating bean with name 'org.springframework.validation.beanvalidation.Loc
求大神解决rnException in thread "main" org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.validation.<em>bean</em>validation.LocalValidatorFactoryBean#0': Invocation of init method failed; nested exception is javax.validation.ValidationException: Unable to instantiate Configuration.rn
Error creating bean with name 'vipService'
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'vipService' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [business.VipBusinessHibernate]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerErrorn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)n at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)n at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)n at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)n at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)n at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)n at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)n at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)n at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)n at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)n at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)n at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)n at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)n at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)n at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)n at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)n at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)n at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)n at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)n at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)n at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)n at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)n at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)n at org.apache.catalina.core.StandardService.start(StandardService.java:516)n at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)n at org.apache.catalina.startup.Catalina.start(Catalina.java:566)n at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)n at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)n at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)n at java.lang.reflect.Method.invoke(Method.java:597)n at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)n at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)nCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [business.VipBusinessHibernate]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerErrorn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:162)n at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)n at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)n ... 37 morenCaused by: java.lang.ExceptionInInitializerErrorn at util.HibernateUtil.buildSessionFactory(HibernateUtil.java:15)n at util.HibernateUtil.(HibernateUtil.java:7)n at business.VipBusinessHibernate.(VipBusinessHibernate.java:21)n at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)n at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)n at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)n at java.lang.reflect.Constructor.newInstance(Constructor.java:513)n at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:147)n ... 39 morenCaused by: org.hibernate.MappingNotFoundException: resource: <em>bean</em>/program.hbm.xml not foundn at org.hibernate.cfg.Configuration.addResource(Configuration.java:799)n at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:2344)n at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:2310)n at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2290)n at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:2243)n at org.hibernate.cfg.Configuration.configure(Configuration.java:2158)n at org.hibernate.cfg.Configuration.configure(Configuration.java:2137)n at util.HibernateUtil.buildSessionFactory(HibernateUtil.java:11)n ... 46 more
Error creating bean with name'xxx'
根据SSH写了一个功能,根据管路员ID查询出管理员所有信息,但是运行<em>项目</em>出错,下面是全部错误:rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'admainDAO' <em>defined</em> in class path resource [applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)rn ... 42 morernCaused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:433)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 52 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)rn ... 65 morernCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:128)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:78)rn ... 70 more
Error creating bean with name '(inner bean)#3
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter#1': Cannot create inner <em>bean</em> '(inner <em>bean</em>)' of type [org.springframework.web.bind.support.ConfigurableWebBindingInitializer] while setting <em>bean</em> property 'webBindingInitializer'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)#3': Cannot resolve reference to <em>bean</em> 'validator' while setting <em>bean</em> property 'validator'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'validator' <em>defined</em> in file [D:\appspace\eclipseworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\tjyy\WEB-INF\classes\spring-mvc.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.springframework.<em>bean</em>s.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocatorrn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:282)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:126)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:607)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '(inner <em>bean</em>)#3': Cannot resolve reference to <em>bean</em> 'validator' while setting <em>bean</em> property 'validator'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'validator' <em>defined</em> in file [D:\appspace\eclipseworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\tjyy\WEB-INF\classes\spring-mvc.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.springframework.<em>bean</em>s.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocatorrn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1391)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:271)rn ... 24 morernCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'validator' <em>defined</em> in file [D:\appspace\eclipseworkspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\tjyy\WEB-INF\classes\spring-mvc.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.springframework.<em>bean</em>s.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocatorrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1427)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1132)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:522)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:461)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)rn ... 30 morernCaused by: org.springframework.<em>bean</em>s.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.springframework.<em>bean</em>s.MethodInvocationException: Property 'validationMessageSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/validator/resourceloading/ResourceBundleLocatorrn at org.springframework.<em>bean</em>s.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:101)rn at org.springframework.<em>bean</em>s.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:57)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1424)rn ... 38 more
Error creating bean with name 'sessionFactory' defined in ServletContext resource
struts1.3+spring2.5+hibernate3.2rnrn错误内容:rn严重: action: nullrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Unknown Source)rnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)rn ... 31 morern2008-10-17 23:43:07 org.apache.catalina.core.ApplicationContext logrn信息: Marking servlet action as unavailablern2008-10-17 23:43:07 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /teacherInfo threw load() exceptionrnjavax.servlet.UnavailableExceptionrn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:880)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1172)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1116)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1214)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Unknown Source)rnrnrnrn哪位高手给看看 困扰很久了 解决了给加分
Error creating bean with name 'sessionFactory' defined in class path resource
Spring和hibernate整合好了,测试时出现下面异常,希望大神帮忙看下是怎么回事,谢谢了!!!rnrn Exception in thread "main" org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.csw.entity.Userinforn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:545)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at com.csw.test.TestUsers.main(TestUsers.java:16)rnCaused by: org.hibernate.DuplicateMappingException: Duplicate class/entity mapping com.csw.entity.Userinforn at org.hibernate.cfg.Mappings.addClass(Mappings.java:141)rn at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:167)rn at org.hibernate.cfg.Configuration.add(Configuration.java:716)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:551)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:677)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)rn ... 12 morernrn 上面就是异常信息,帮忙看下,谢谢!
Error creating bean with name 'dataSource' defined in ServletContext resource
struts-config.xml配置信息rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnspring.xml配置信息rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rnrn rn rn rn rn rn rn rn rn rnrnrn部署后出现如下错误:rn[color=red]严重: Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in ServletContext resource [/WEB-INF/spring.xml]: Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.InvalidPropertyException: Invalid property 'initialSize' of <em>bean</em> class [org.springframework.jdbc.datasource.DriverManagerDataSource]: No property 'initialSize' foundrnCaused by: org.springframework.<em>bean</em>s.InvalidPropertyException: Invalid property 'initialSize' of <em>bean</em> class [org.springframework.jdbc.datasource.DriverManagerDataSource]: No property 'initialSize' foundrn[/color]rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1107)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Unknown Source)rn2011-1-28 13:53:11 org.apache.catalina.core.ApplicationContext log
Error creating bean with name 'sqlSessionFactory' defined in class path resource
java.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:124)rn at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:83)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:117)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:83)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:230)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:228)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:287)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:289)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:247)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:94)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:363)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:191)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:678)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlSessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\work2\CRUD\target\classes\mapper\EmployeeMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.com.tes.crud.<em>bean</em>.Departmentrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:128)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:60)rn at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.delegateLoading(AbstractDelegatingSmartContextLoader.java:108)rn at org.springframework.test.context.support.AbstractDelegatingSmartContextLoader.loadContext(AbstractDelegatingSmartContextLoader.java:251)rn at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:98)rn at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:116)rn ... 25 morernCaused by: org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file [D:\work2\CRUD\target\classes\mapper\EmployeeMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.com.tes.crud.<em>bean</em>.Departmentrn at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:522)rn at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:381)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)rn ... 40 morernCaused by: org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML. Cause: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.com.tes.crud.<em>bean</em>.Departmentrn at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:120)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.parse(XMLMapperBuilder.java:92)rn at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:520)rn ... 43 morernCaused by: org.apache.ibatis.builder.BuilderException: Error resolving JdbcType. Cause: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.com.tes.crud.<em>bean</em>.Departmentrn at org.apache.ibatis.builder.BaseBuilder.resolveJdbcType(BaseBuilder.java:73)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.buildResultMappingFromContext(XMLMapperBuilder.java:382)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:280)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElement(XMLMapperBuilder.java:252)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.resultMapElements(XMLMapperBuilder.java:244)rn at org.apache.ibatis.builder.xml.XMLMapperBuilder.configurationElement(XMLMapperBuilder.java:116)rn ... 45 morernCaused by: java.lang.IllegalArgumentException: No enum constant org.apache.ibatis.type.JdbcType.com.tes.crud.<em>bean</em>.Departmentrn at java.lang.Enum.valueOf(Enum.java:238)rn at org.apache.ibatis.type.JdbcType.valueOf(JdbcType.java:25)rn at org.apache.ibatis.builder.BaseBuilder.resolveJdbcType(BaseBuilder.java:71)rn ... 50 morernrn我的applicationContext.xml配置:rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn mybatis-config.xml配置:rnrnrn rn rn rn rn rn rn rn rn rnrn
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicationContext.xml]
我用struts1.1+spring2.0+hibernate3.0+ehcache1.3在没有配置ehcache前,都没有问题,程序能正常运行,但加上ehcache的配置后,启动tomcat就报错:rnrn2008-05-07 03:02:33 StandardContext[/testhbn]action: nullrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mappingrnCaused by: org.hibernate.InvalidMappingException: Could not parse mapping document from invalid mappingrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:508)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:651)rnrn不知道是什么原因?请帮我找找原因,先谢了。
Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/applicat……
错误提示:rnjavax.servlet.ServletException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of <em>bean</em> failed; nested exception is org.hibernate.MappingException: An association from the table lunincome_table refers to an unmapped class: com.tank.hm.hib.model.manager.ProInfoTablern org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '[color=#FF0000]sessionFactory[/color]' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Initialization of <em>bean</em> failed; nested exception is org.hibernate.MappingException: An association from the table lunincome_table refers to an unmapped class: com.tank.hm.hib.model.manager.ProInfoTablern org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:403)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)rn org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)rn org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:83)rn javax.servlet.GenericServlet.init(GenericServlet.java:211)rn org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)rn org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)rn org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rnrn
Error creating bean with name 'zddaService' defined in ServletContext resource [
这是公司一个根据ssh+dorado做的<em>项目</em>,今天导入显示内存溢出,我修改了内存发现不行,请各位贴吧大神,回复把忙,帮小弟解决问题rnrnorg.hibernate.util.JDBCExceptionReporter 2017-06-21 17:09:19,840-- ERROR -- Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)rnorg.springframework.web.context.ContextLoader 2017-06-21 17:10:26,755-- ERROR -- Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'zddaService' <em>defined</em> in ServletContext resource [/WEB-INF/classes/conf/spring/xzjc_xinjiang.xml]: Initialization of <em>bean</em> failed; nested exception is java.lang.OutOfMemoryError: Java heap spacernjava.lang.OutOfMemoryError: Java heap spacern at net.sf.cglib.core.EmitUtils$5.transform(EmitUtils.java:261)rn at net.sf.cglib.core.CollectionUtils.bucket(CollectionUtils.java:32)rn at net.sf.cglib.core.EmitUtils.string_switch_hash(EmitUtils.java:259)rn at net.sf.cglib.core.EmitUtils.string_switch(EmitUtils.java:170)rn at net.sf.cglib.proxy.MethodInterceptorGenerator.generateFindProxy(MethodInterceptorGenerator.java:190)rn at net.sf.cglib.proxy.MethodInterceptorGenerator.generate(MethodInterceptorGenerator.java:130)rn at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:942)rn at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)rn at net.sf.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)rn at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:189)rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:143)rn at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:70)rn at org.springframework.transaction.interceptor.TransactionProxyFactoryBean.getProxy(TransactionProxyFactoryBean.java:341)rn at org.springframework.transaction.interceptor.TransactionProxyFactoryBean.afterPropertiesSet(TransactionProxyFactoryBean.java:313)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:851)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn2017-6-21 17:10:26 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'zddaService' <em>defined</em> in ServletContext resource [/WEB-INF/classes/conf/spring/xzjc_xinjiang.xml]: Initialization of <em>bean</em> failed; nested exception is java.lang.OutOfMemoryError: Java heap spacernjava.lang.OutOfMemoryError: Java heap spacern at net.sf.cglib.core.EmitUtils$5.transform(EmitUtils.java:261)rn at net.sf.cglib.core.CollectionUtils.bucket(CollectionUtils.java:32)rn at net.sf.cglib.core.EmitUtils.string_switch_hash(EmitUtils.java:259)rn at net.sf.cglib.core.EmitUtils.string_switch(EmitUtils.java:170)rn at net.sf.cglib.proxy.MethodInterceptorGenerator.generateFindProxy(MethodInterceptorGenerator.java:190)rn at net.sf.cglib.proxy.MethodInterceptorGenerator.generate(MethodInterceptorGenerator.java:130)rn at net.sf.cglib.proxy.Enhancer.emitMethods(Enhancer.java:942)rn at net.sf.cglib.proxy.Enhancer.generateClass(Enhancer.java:498)rn at net.sf.cglib.transform.TransformingClassGenerator.generateClass(TransformingClassGenerator.java:33)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377)rn at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285)rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:189)rn at org.springframework.aop.framework.Cglib2AopProxy.getProxy(Cglib2AopProxy.java:143)rn at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:70)rn at org.springframework.transaction.interceptor.TransactionProxyFactoryBean.getProxy(TransactionProxyFactoryBean.java:341)rn at org.springframework.transaction.interceptor.TransactionProxyFactoryBean.afterPropertiesSet(TransactionProxyFactoryBean.java:313)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1099)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:400)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:851)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:382)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:234)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:144)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:321)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn2017-6-21 17:10:26 org.apache.catalina.core.StandardContext start
Error creating bean with name 'sessionFactory' defined in ServletContext resourc
在做SSH框架的时候发布程序出现这样的错误提示框,已经按照网上很多人说的对ASM的几个包进行删除整理还是出现这样的问题,现在我将错误信息贴出来让大家帮我想想办法。rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.ConfigurationrnCaused by: rnorg.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.ConfigurationrnCaused by: rnjava.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration
Spring和Hibernate的整合错误 Error creating bean with name 'sessionFactory' defined in
[code=java][Health][WARN] [2016-06-11 22:54:31] org.springframework.context.support.AbstractApplicationContext.refresh(487) | Exception encountered during context initialization - cancelling refresh attemptrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [spring-hibernate.xml]: Invocation of init method failed; nested exception is java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjectorrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1566)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:743)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:744)rnCaused by: java.lang.ClassCastException: org.hibernate.annotations.common.reflection.java.JavaReflectionManager cannot be cast to org.hibernate.annotations.common.reflection.MetadataProviderInjectorrn at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2589)rn at org.hibernate.cfg.Configuration.createReflectionManager(Configuration.java:2584)rn at org.hibernate.cfg.Configuration.reset(Configuration.java:300)rn at org.hibernate.cfg.Configuration.(Configuration.java:291)rn at org.hibernate.cfg.Configuration.(Configuration.java:295)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBuilder.(LocalSessionFactoryBuilder.java:140)rn at org.springframework.orm.hibernate4.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:343)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1625)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1562)rn ... 25 morern[Health][INFO] [2016-06-11 22:54:31] com.alibaba.druid.pool.DruidDataSource.close(1385) | dataSource-1 closedrn[Health][ERROR] [2016-06-11 22:54:31] org.springframework.web.context.ContextLoader.initWebApplicationContext(331) | Context initialization failedrn[/code]rn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/8.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/8.gif][/img][img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/onion/8.gif][/img]
Error creating bean with name '/guestbook' defined in ServletContext resource [/WEB-INF/action-servlet.xml]
按照视频教程例子写了<em>项目</em>,但是启动服务和运行都报错,找半天不知道错哪里,还请高手<em>指点</em>,谢谢rn服务启动时报错如下:rnrnERROR - ContextLoaderPlugIn.init(229) | Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '/guestbook' <em>defined</em> in ServletContext resource [/WEB-INF/action-servlet.xml]: Cannot resolve reference to <em>bean</em> 'guestbookManager' while setting <em>bean</em> property 'guestbookManager'; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>name</em>d 'guestbookManager' is <em>defined</em>rnorg.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>name</em>d 'guestbookManager' is <em>defined</em>rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:360)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getMergedBeanDefinition(AbstractBeanFactory.java:686)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:219)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:186)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1046)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:378)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:283)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:353)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:296)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:211)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1044)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:876)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4017)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)rn at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)rn at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:701)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)rn at org.apache.catalina.core.StandardService.start(StandardService.java:480)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:556)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)rn2008-8-22 16:17:40 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path /jsp-examples from URL file:D:\Tomcat 5.0\webapps\jsp-examplesrn2008-8-22 16:17:40 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path from URL file:D:\Tomcat 5.0\webapps\ROOTrn2008-8-22 16:17:40 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path /servlets-examples from URL file:D:\Tomcat 5.0\webapps\servlets-examplesrn2008-8-22 16:17:41 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path /tomcat-docs from URL file:D:\Tomcat 5.0\webapps\tomcat-docsrn2008-8-22 16:17:41 org.apache.catalina.core.StandardHostDeployer installrn信息: Installing web application at context path /webdav from URL file:D:\Tomcat 5.0\webapps\webdavrn2008-8-22 16:17:41 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2008-8-22 16:17:42 org.apache.jk.common.ChannelSocket initrn信息: JK2: ajp13 listening on /0.0.0.0:8009rn2008-8-22 16:17:42 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/79 config=D:\Tomcat 5.0\conf\jk2.propertiesrn2008-8-22 16:17:42 org.apache.catalina.startup.Catalina startrn信息: Server startup in 16281 msrn、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、、rn/////////////////////////////////////////////////////////////////////rn
SSH框架:Error creating bean with name 'sessionFactory' defined in class path
跪求大神帮忙,SSH框架整合<em>启动报错</em>,就这错误检查了整整一天了,实体类映射文件 *.hbm.xml文件是myeclipse自动生成的;这个框架是看着传智播客SSH网上商城一步一步写的,但是报错了,之前都好好的,就发了一个AJAX请求,别的就没动,跪求跪求!!!!!!!!!!!rnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4994)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5492)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1245)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1895)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)rn at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)rn at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)rn at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)rn at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)rn at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)rn at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1782)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:863)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:782)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:188)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 26 morernCaused by: org.hibernate.HibernateException: Could not instantiate connection provider [org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider]rn at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:192)rn at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:114)rn at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.initiateService(ConnectionProviderInitiator.java:54)rn at org.hibernate.service.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:69)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176)rn ... 43 morernCaused by: java.lang.ClassCastException: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider cannot be cast to org.hibernate.service.jdbc.connections.spi.ConnectionProviderrn at org.hibernate.service.jdbc.connections.internal.ConnectionProviderInitiator.instantiateExplicitConnectionProvider(ConnectionProviderInitiator.java:189)rn ... 47 morern2017-2-25 16:38:51 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.service.jdbc.connections.spi.ConnectionProvider]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
Error creating bean with name 'shiroFilter' defined in class path resource [com/
我在启动时报错。求大虾解救,,报错信息如下rnrn[ERROR] 2014-10-16 11:57:46 [ERROR] - org.springframework.web.context.ContextLoader -ContextLoader.java(319) -Context initialization failedrn org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'shiroFilter' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-security.xml]: Cannot resolve reference to <em>bean</em> 'securityManager' while setting <em>bean</em> property 'securityManager'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'securityManager' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-security.xml]: Cannot resolve reference to <em>bean</em> 'myRealm' while setting <em>bean</em> property 'realm'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'myRealm': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.pactera.platform.reqm.core.service.IUserManageService com.pactera.platform.reqm.web.security.MyRealm.userService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'userManageServiceImpl': Injection of persistence dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'entityManagerFactory' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Cannot resolve reference to <em>bean</em> 'hibernateJpaVendorAdapter' while setting <em>bean</em> property 'jpaVendorAdapter'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'hibernateJpaVendorAdapter' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Cannot create inner <em>bean</em> 'com.pactera.platform.reqm.core.util.Hibernates#9fac35' of type [com.pactera.platform.reqm.core.util.Hibernates] while setting <em>bean</em> property 'databasePlatform'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'com.pactera.platform.reqm.core.util.Hibernates#9fac35' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanDefinitionStoreException: Factory method [public static java.lang.String com.pactera.platform.reqm.core.util.Hibernates.getDialect(javax.sql.DataSource)] threw exception; nested exception is java.lang.RuntimeException: Could not get database <em>url</em>rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:198)rn at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:753)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)rn at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'securityManager' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-security.xml]: Cannot resolve reference to <em>bean</em> 'myRealm' while setting <em>bean</em> property 'realm'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'myRealm': Injection of autowired dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Could not autowire field: private com.pactera.platform.reqm.core.service.IUserManageService com.pactera.platform.reqm.web.security.MyRealm.userService; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'userManageServiceImpl': Injection of persistence dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'entityManagerFactory' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Cannot resolve reference to <em>bean</em> 'hibernateJpaVendorAdapter' while setting <em>bean</em> property 'jpaVendorAdapter'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'hibernateJpaVendorAdapter' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Cannot create inner <em>bean</em> 'com.pactera.platform.reqm.core.util.Hibernates#9fac35' of type [com.pactera.platform.reqm.core.util.Hibernates] while setting <em>bean</em> property 'databasePlatform'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'com.pactera.platform.reqm.core.util.Hibernates#9fac35' <em>defined</em> in class path resource [com/pactera/platform/reqm/resources/spring-datasource.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanDefinitionStoreException: Factory method [public static java.lang.String com.pactera.platform.reqm.core.util.Hibernates.getDialect(javax.sql.DataSource)] threw exception; nested exception is java.lang.RuntimeException: Could not get database <em>url</em>rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:329)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:107)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1387)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1128)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:323)rn ... 38 morernrnrnrnrn
Error creating bean with name '/main' defined in class path resource
[code=错误]2009-8-5 14:27:11 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\MyEclipse 6.0\bin;D:\Program Files\MyEclipse 6.0\myeclipse\eclipse\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_6.0.1.zmyeclipse601200710\tomcat\binrn2009-8-5 14:27:11 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2009-8-5 14:27:11 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 614 msrn2009-8-5 14:27:11 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2009-8-5 14:27:11 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2009-8-5 14:27:12 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2009-8-5 14:27:15 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> '/main' <em>defined</em> in class path resource [applicationContext.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.NotWritablePropertyException: Invalid property 'iHmainBiz' of <em>bean</em> class [com.whhd.struts.action.MainAction]: Bean property 'iHmainBiz' is not writable or has an invalid setter method. Did you mean 'IHmainBiz'?rnCaused by: org.springframework.<em>bean</em>s.NotWritablePropertyException: Invalid property 'iHmainBiz' of <em>bean</em> class [com.whhd.struts.action.MainAction]: Bean property 'iHmainBiz' is not writable or has an invalid setter method. Did you mean 'IHmainBiz'?rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:793)rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:645)rn at org.springframework.<em>bean</em>s.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:78)rn at org.springframework.<em>bean</em>s.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1122)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:291)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2009-8-5 14:27:15 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2009-8-5 14:27:15 org.apache.catalina.core.StandardContext startrn严重: Context [/hdDate] startup failed due to previous <em>error</em>srn2009-8-5 14:27:15 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2009-8-5 14:27:16 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2009-8-5 14:27:16 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2009-8-5 14:27:16 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/31 config=nullrn2009-8-5 14:27:16 org.apache.catalina.startup.Catalina startrn信息: Server startup in 5045 msrn[/code]rnrn[code=XML]rnrnrn rn rn rn com.whhd.hd.struts.ApplicationResourcesrn rn rnrn rn rn rn rn rn classpath*:com/whda/entity/Immobility.hbm.xmlrn classpath*:com/whda/entity/Hdmain.hbm.xmlrn classpath*:com/whda/entity/Manhour.hbm.xmlrn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]rn这个“/MAIN” 是我 applicationContext.xml 里 注入的 action 的名字 这个 到底有 什么问题哈
Error creating bean with name 'shoppingLogDao' defined in ServletContext resourc
在用myeclipse开发时,控制台出现如下错误,好几天了一直没解决掉,很郁闷。rn错误如下所示:rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'shoppingLogDao' <em>defined</em> in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [com.onlineShopping.dao.impl.ShoppingLogDAOImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/onlineShopping/domain/ShoppingLogrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:881)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:837)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:593)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [com.onlineShopping.dao.impl.ShoppingLogDAOImpl]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/onlineShopping/domain/ShoppingLogrn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:111)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:875)rn ... 40 morernCaused by: java.lang.NoClassDefFoundError: com/onlineShopping/domain/ShoppingLogrn at com.onlineShopping.dao.impl.ShoppingLogDAOImpl.(ShoppingLogDAOImpl.java:18)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:96)rn ... 42 morernCaused by: java.lang.ClassNotFoundException: com.onlineShopping.domain.ShoppingLogrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1484)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1329)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 48 morernapplicationContext.xml相关配置如下所示:rn[code=XML]rnrn rn rn rn rn rn rn rn rnrnrn[/code]rn从网上也没找到合适的答案,请各位多指教啊。
Error creating bean with name 'sumBo' defined in ServletContext resource [/WEB-I
[code=Java]严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sumBo' <em>defined</em> in ServletContext resource [/WEB-INF/<em>bean</em>s_common.xml]: Cannot resolve reference to <em>bean</em> 'sumDao' while setting <em>bean</em> property 'sumdao'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sumDao' <em>defined</em> in ServletContext resource [/WEB-INF/<em>bean</em>s_common.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/<em>bean</em>s_common.xml]: Cannot resolve reference to <em>bean</em> 'dataSource' while setting <em>bean</em> property 'dataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in ServletContext resource [/WEB-INF/<em>bean</em>s_common.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:rnPropertyAccessException 1: org.springframework.<em>bean</em>s.MethodInvocationException: Property 'driverClassName' threw exception; nested exception is java.lang.IllegalStateException: Could not load JDBC driver class [com.microsoft.sqlserver.jdbc.SQLServerDriver]rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:272)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:196)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4172)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4671)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:701)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:585)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)[/code]rnrnS2SH 报错。 [code=Java]public class SumBoImpl implements SumBo rn private SumDao sumdao;rn public boolean AddSum(Sum sum) rn rn return sumdao.AddSum(sum);rn rnrn public boolean DelSum(Sum sum) rn rn return sumdao.DelSum(sum);rn rnrn public List FindAllSum() rn rn return sumdao.FindAllSum();rn rnrn public Sum FindSumById(int sumId) rn rn return sumdao.FindSumById(sumId);rn rnrn public boolean UpdateSum(Sum sum) rn rn return sumdao.UpdateSum(sum);rn rnrn public SumDao getSumdao() rn return sumdao;rn rnrn public void setSumdao(SumDao sumdao) rn this.sumdao = sumdao;rn rnrn rnrn[/code]Set Get方法齐全。。
Error creating bean with name 'mySessionFactory' defined in class path resource
Error <em>creating</em> <em>bean</em> with <em>name</em> 'mySessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Initialization of <em>bean</em> failed; nested exception is java.lang.NoClassDefFoundError: org/springframework/jdbc/support/SQLExceptionTranslatorrn---------------------------------rnCaused by: java.lang.NoClassDefFoundError: org/springframework/jdbc/support/SQLExceptionTranslatorrn------------------rn这是什么错误,是不是包得问题,如果是到底需要那些包不需要哪些包,请指教
jsf+spring+hibernate的Error creating bean with name 'sessionFactory' defined in ServletContext resource问题
试着在MyEclipse用jsf+spring+hibernate创建一个Web工程,但把工程部署到Tomcat,启动Tomcat后老是出现下面的问题:rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)VrnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:99)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:205)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:63)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:190)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:177)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:149)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:96)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:805)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:745)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1202)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1172)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:428)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:284)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:244)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:187)rn at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:82)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:585)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rn2007-7-13 11:12:19 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /User threw load() exceptionrnjava.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(ILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
Error creating bean with name 'sessionFactory' defined in class path resource [a
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.XMLContext$Default.getDelimitedIdentifier()Ljava/lang/Boolean;rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:606)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoSuchMethodError: org.hibernate.cfg.annotations.reflection.XMLContext$Default.getDelimitedIdentifier()Ljava/lang/Boolean;rn at org.hibernate.cfg.annotations.reflection.JPAMetadataProvider.getDefaults(JPAMetadataProvider.java:87)rn at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.getDefaults(JavaReflectionManager.java:226)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1317)rn at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:1307)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:717)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 36 more
求助Error creating bean with name 'sessionFactory' defined in class path resource
2009-8-4 10:50:36 org.apache.catalina.startup.HostConfig checkResourcesrn信息: Reloading context [/hd]rn2009-8-4 10:50:37 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrnlog4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).rnlog4j:WARN Please initialize the log4j system properly.rn2009-8-4 10:50:40 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: [color=#FF0000]Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingNotFoundException: resource: com/whda/entity/Immobility.hbm.xml not found[/color]rnCaused by: org.hibernate.MappingNotFoundException: resource: com/whda/entity/Immobility.hbm.xml not foundrn at org.hibernate.cfg.Configuration.addResource(Configuration.java:563)rn at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1587)rn at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1555)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)rn at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)rn at org.hibernate.cfg.Configuration.configure(Configuration.java:1443)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:634)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:134)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1198)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1167)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:427)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:285)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:245)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:188)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1105)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1203)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)rn at java.lang.Thread.run(Unknown Source)rn2009-8-4 10:50:40 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2009-8-4 10:50:40 org.apache.catalina.core.StandardContext startrn严重: Context [/hd] startup failed due to previous <em>error</em>srn2009-8-4 10:50:40 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrnrn从字面上看是警告我的"创建sessionFactory找不到类的路径"rn然后说在com/whda/entity/Immobility路径下找不到这个东西rnrn[color=#FF0000]applicationContext.xml文件[/color]rnrnrn rn rn rn com.whhd.hd.struts.ApplicationResourcesrn rn rnrn rn rn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn[color=#FF0000]web文件[/color]rnrnrn rn rn rn /springrn /WEB-INF/spring.tldrn rn rn /spring-formrn /WEB-INF/spring-form.tldrn rn rnrn rn org.springframework.web.context.ContextLoaderListenerrn rn rn contextConfigLocationrn classpath:applicationContext.xmlrn rnrn rn dwrrn org.directwebremoting.servlet.DwrServletrn rn debugrn truern rn rn rn rn dwrrn /dwr/*rn rn rn rn actionrn org.apache.struts.action.ActionServletrn rn configrn /WEB-INF/struts-config.xmlrn rn rn debugrn 3rn rn rn detailrn 3rn rn 0rn rn rn rn actionrn *.dorn rn rn rn index.jsprn rnrnrn这个是什么原因哈
Error creating bean with name 'sqlMapClient' defined in class path resource [con
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in class path resource [config/dataSource.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. rnCause: com.ibatis.common.xml.NodeletException: Error parsing XML. rnCause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. rnCause: com.ibatis.common.xml.NodeletException: Error parsing XML. rnCause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/update'. rnCause: com.ibatis.sqlmap.client.SqlMapException: Error. Could not initialize class. rnCause: java.lang.ClassNotFoundException: questioinrnrn这个怎么解决啊 急急急
Error creating bean with name 'dataSource' defined in class path resource [sprin
Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in class path resource [spring-pool.xml]: Invocation of init method failed;
Error creating bean with name 'userAction' defined in class path resource
Error <em>creating</em> <em>bean</em> with <em>name</em> 'userAction' <em>defined</em> in class path resource [applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [action.AmlUserAction]: Constructor threw exception; nested exception is java.lang.NullPointerException 报的错误rnapplicationContext.xml配置文件如下:rnrnrn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle10gDialectrn truern rn rn rn rn rn entity/Amluser.hbm.xmlrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnAmlUserAction部分代码:rnpublic class AmlUserAction extends ActionSupport rn rn /**rn * rn */rn private static final long serialVersionUID = 1L;rn private Amluser user;rn private UserBiz userBiz =null;rnrn求救啊,,,怎么解决这么个玩意,,
Error creating bean with name 'sqlMapClient' defined in ServletContext resource
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sqlMapClient' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [SqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 3; The markup in the document preceding the root element must be well-formed.rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:567)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:385)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:284)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rnCaused by: org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [SqlMapConfig.xml]; nested exception is com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 3; The markup in the document preceding the root element must be well-formed.rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:341)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 22 morernCaused by: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 3; The markup in the document preceding the root element must be well-formed.rn at com.ibatis.common.xml.NodeletParser.parse(NodeletParser.java:62)rn at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:106)rn at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:95)rn at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:338)rn ... 25 morernCaused by: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 3; The markup in the document preceding the root element must be well-formed.rnrnWEB-INF/applicationContext.xml配置rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn rn rn truern rn rn rn rn rn com/thinsheng/etc/bas/vo/WfPosition.hbm.xmlrn com/thinsheng/etc/bas/vo/LonginLog.hbm.xmlrn com/thinsheng/etc/bas/vo/WfStaff.hbm.xmlrn com/thinsheng/etc/bas/vo/WfDevolve.hbm.xmlrn com/thinsheng/etc/bas/vo/WfRole.hbm.xmlrn com/thinsheng/etc/bas/vo/WfUnitBizType.hbm.xmlrn com/thinsheng/etc/bas/vo/WfGroup.hbm.xmlrn com/thinsheng/etc/bas/vo/WfGroupMember.hbm.xmlrn com/thinsheng/etc/bas/vo/WfExplicitReportPath.hbm.xmlrn com/thinsheng/etc/bas/vo/WfDuty.hbm.xmlrn com/thinsheng/etc/bas/vo/WfUnit.hbm.xmlrn com/thinsheng/etc/bas/vo/WfReportBizType.hbm.xmlrn rn rn rn rn rn rn rn rn classpath:SqlMapConfig.xmlrn rn rn rn truern rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrnsrc/SqlMapConfig.xml配置rnrn rn rn rn rn rn rn rn rn rn rn rn rn rnrnsrc/Wf_Staff_SqlMap.xml配置rnrn rn rn rn select * from dual rn rn
spring整合hibernate错误(Error creating bean with name 'sessionFactory' defined
org.springframework.<em>bean</em>s.factory.BeanCreationException: [color=#FF0000]Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em>[/color] in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.UnsupportedClassVersionError: [color=#FF0000]Bad version number in .class file[/color]rnsessionfactory的错误看到了不少的解答,但是都和我的不太一样,rnrnapplicationContext.xml内容rnrn rn rn rn rn rn rn org.hibernate.dialect.Oracle9Dialectrn truern truern rn rn rn rn xml/login.hbm.xmlrn xml/Class.hbm.xmlrn xml/Student.hbm.xmlrn rn rn rn rn rn oracle.jdbc.driver.OracleDriverrn rn rn jdbc:oracle:thin:@127.0.0.1:1521:tianfeirn rn rn scottrn rn rn tigerrn rn rnrn rnweb.xml内容rnrn rn org.springframework.web.context.ContextLoaderListenerrn rn rn filterrn org.springframework.orm.hibernate3.support.OpenSessionInViewFilterrn rn rn filterrn *.dorn rn rn rn springWebrn rn springrn org.springframework.web.servlet.DispatcherServletrn 2rn rn rn springrn *.dorn rn rn rn index.htmlrn index.htmrn index.jsprn default.htmlrn default.htmrn default.jsprn rn rnrn用的myeclipse,tomcat一启动就报错
ssh整合,Error creating bean with name 'autoNewService' defined in ServletContext r
在网上找了很多方法,但是还是不成功,大家帮帮忙……rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'autoNewService' <em>defined</em> in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advicernat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rnat java.security.AccessController.doPrivileged(Native Method)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rnat org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rnat org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rnat org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rnat org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rnat org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rnat org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rnat org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rnat org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rnat org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rnat org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rnat org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rnat org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rnat org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rnat org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rnat org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rnat org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rnat org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rnat org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rnat org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rnat org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rnat org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rnat org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rnat org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rnat org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rnat org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rnat org.apache.catalina.core.StandardService.start(StandardService.java:516)rnat org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rnat org.apache.catalina.startup.Catalina.start(Catalina.java:566)rnat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rnat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rnat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rnat java.lang.reflect.Method.invoke(Method.java:597)rnat org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rnat org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoClassDefFoundError: org/aopalliance/aop/Advicernat java.lang.Class.getDeclaredConstructors0(Native Method)rnat java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rnat java.lang.Class.getConstructor0(Class.java:2699)rnat java.lang.Class.getDeclaredConstructor(Class.java:1985)rnat org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)rn... 40 morernCaused by: java.lang.ClassNotFoundException: org.aopalliance.aop.Advicernat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rnat org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rnat java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn... 46 morern2010-9-16 13:04:50 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2010-9-16 13:04:50 org.apache.catalina.core.StandardContext startrn严重: Context [/auto_new] startup failed due to previous <em>error</em>srnrnrnrn
头痛呀Error creating bean with name 'sessionFactory' defined in ServletContext resource
今天我把工程做了一点移植和修改结果报错了,怎么也解决不了啊,各位GG帮帮我呀~~~小女人在线等待rn17:52:25,625 INFO [STDOUT] 17:52:25,609 ERROR [ContextLoaderPlugIn] Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException: Could not parse mapping document from file E:\jboss-4.2.0.CR1\server\default\deploy\xAdslMIBS.war\WEB-INF\classes\dao\com\hiaward\framework\xbankmibs\model\Fee.hbm.xmlrnCaused by: rnorg.hibernate.InvalidMappingException: Could not parse mapping document from file E:\jboss-4.2.0.CR1\server\default\deploy\xAdslMIBS.war\WEB-INF\classes\dao\com\hiaward\framework\xbankmibs\model\Fee.hbm.xmlrn at org.hibernate.cfg.Configuration.addFile(Configuration.java:319)rn at org.hibernate.cfg.Configuration.addDirectory(Configuration.java:662)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:707)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)rn
Error creating bean with name 'sessionFactory' defined in class path resource...
求高手帮助解决下。。感觉是缺jar包。。但是不知道到底缺哪个包。。各种<em>感谢</em>~~rnrnlog4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).rnlog4j:WARN Please initialize the log4j system properly.rnException in thread "main" org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundErrorrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)rn at db.DBTest2.main(DBTest2.java:12)rnCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundErrorrn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:115)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)rn ... 16 morernCaused by: java.lang.NoClassDefFoundErrorrn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.class$(LocalSessionFactoryBean.java:174)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.(LocalSessionFactoryBean.java:174)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:100)rn ... 18 morernCaused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configurationrn at java.net.URLClassLoader$1.run(Unknown Source)rn at java.security.AccessController.doPrivileged(Native Method)rn at java.net.URLClassLoader.findClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)rn at java.lang.ClassLoader.loadClass(Unknown Source)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn ... 25 more
Error creating bean with name 'extendPropertyConfigService' defined in class pa
11:25:31,338 WARN XmlWebApplicationContext:551 - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'extendPropertyConfigService' <em>defined</em> in class path resource [frameworkContext.xml]: Cannot resolve reference to <em>bean</em> 'transactionManager' while setting <em>bean</em> property 'transactionManager'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'transactionManager' <em>defined</em> in class path resource [applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn11:25:31,344 ERROR ContextLoader:350 - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'extendPropertyConfigService' <em>defined</em> in class path resource [frameworkContext.xml]: Cannot resolve reference to <em>bean</em> 'transactionManager' while setting <em>bean</em> property 'transactionManager'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'transactionManager' <em>defined</em> in class path resource [applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:742)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4842)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5303)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1407)rn at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1397)rn at java.util.concurrent.FutureTask.run(FutureTask.java:266)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'transactionManager' <em>defined</em> in class path resource [applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1531)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1276)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)rn ... 24 morernCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)rn ... 34 morernCaused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)rn at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)rn at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)rn at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)rn at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418)rn at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:692)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:727)rn at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:511)rn at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:495)rnrn ... 41 morern
spring+ dubbo tomcat启动报错 Error creating bean with name
使用http://blog.csdn.net/aixiaoyang168/article/details/51362675#comments方式,<em>启动报错</em>,信息太长发到这里,请rn帮忙看一下rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'testService': Instantiation of <em>bean</em> failed; nested exception is java.lang.ExceptionInInitializerErrorrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:997)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:943)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:589)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:925)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:472)rn at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:631)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:588)rn at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:645)rn at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:508)rn at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:449)rn at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:133)rn at javax.servlet.GenericServlet.init(GenericServlet.java:158)rn at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1284)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1197)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1087)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5229)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5516)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1247)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1898)rn at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)rn at java.util.concurrent.FutureTask.run(FutureTask.java:262)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.ExceptionInInitializerErrorrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:526)rn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)rn ... 33 morernCaused by: java.lang.IllegalStateException: fail to create adaptive instance: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/D:/stydu-tomcat-7.8.0/webapps/dubbo-controller/WEB-INF/lib/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:459)rn at com.alibaba.dubbo.config.ReferenceConfig.(ReferenceConfig.java:63)rn ... 40 morernCaused by: java.lang.IllegalStateException: Can not create adaptive extenstion interface com.alibaba.dubbo.rpc.Protocol, cause: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/D:/stydu-tomcat-7.8.0/webapps/dubbo-controller/WEB-INF/lib/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:723)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn ... 41 morernCaused by: java.lang.IllegalStateException: Failed to load extension class(interface: interface com.alibaba.dubbo.common.compiler.Compiler, class line: com.alibaba.dubbo.common.compiler.support.JavassistCompiler) in jar:file:/D:/stydu-tomcat-7.8.0/webapps/dubbo-controller/WEB-INF/lib/dubbo-2.5.3.jar!/META-INF/dubbo/internal/com.alibaba.dubbo.common.compiler.Compiler, cause: javassist/ClassPathrn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:685)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:591)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:567)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:728)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:738)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn ... 42 morernCaused by: java.lang.NoClassDefFoundError: javassist/ClassPathrn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:278)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:627)rn ... 50 morernCaused by: java.lang.ClassNotFoundException: javassist.ClassPathrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn ... 53 morern八月 18, 2017 4:06:38 下午 org.apache.catalina.core.StandardContext loadOnStartuprn严重: Servlet /dubbo-controller threw load() exceptionrnjava.lang.ClassNotFoundException: javassist.ClassPathrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1720)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1571)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Class.java:278)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadFile(ExtensionLoader.java:627)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.loadExtensionClasses(ExtensionLoader.java:591)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionClasses(ExtensionLoader.java:567)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:728)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:738)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:732)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:721)rn at com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:455)rn at com.alibaba.dubbo.config.ReferenceConfig.(ReferenceConfig.java:63)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:526)rn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:147)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:87)rnrn
ss搭建 Error creating bean with name 'sessionFactory'
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundErrorrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:883)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:839)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:785)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:519)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:581)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundErrorrn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:115)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:61)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:877)rn ... 40 morernCaused by: java.lang.NoClassDefFoundErrorrn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.class$(LocalSessionFactoryBean.java:174)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.(LocalSessionFactoryBean.java:174)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:100)rn ... 42 morernCaused by: java.lang.ClassNotFoundException: org.hibernate.cfg.Configurationrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1516)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1361)rn at java.lang.Class.forName0(Native Method)rn at java.lang.Class.forName(Unknown Source)rn ... 49 morern2012-3-31 21:32:51 org.apache.catalina.core.StandardContext startrn严重: Error listenerStartrn2012-3-31 21:32:51 org.apache.catalina.core.StandardContext startrn严重: Context [/kefuProject] startup failed due to previous <em>error</em>srn2012-3-31 21:32:51 org.apache.catalina.core.ApplicationContext logrn信息: Closing Spring root WebApplicationContextrn2012-3-31 21:32:51 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcrn严重: A web application registered the JBDC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
Spring求助:Error creating bean with name
在applicationContext.xml中定义了userDAOrnrn但为何在利用spring作单元测试的时候报错:rnrnorg.springframework.<em>bean</em>s.factory.UnsatisfiedDependencyException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.appfuse.dao.UserDAOTest' <em>defined</em> in null: Unsatisfied dependency expressed through <em>bean</em> property 'userDAO': set this property value or disable dependency checking for this <em>bean</em>rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.checkDependencies(AbstractAutowireCapableBeanFactory.java:961)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:822)rnat org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.autowireBeanProperties(AbstractAutowireCapableBeanFactory.java:200)rnat org.springframework.test.AbstractDependencyInjectionSpringContextTests.setUp(AbstractDependencyInjectionSpringContextTests.java:138)rnat junit.framework.TestCase.runBare(TestCase.java:125)rnat junit.framework.TestResult$1.protect(TestResult.java:106)rnat junit.framework.TestResult.runProtected(TestResult.java:124)rnat junit.framework.TestResult.run(TestResult.java:109)rnat junit.framework.TestCase.run(TestCase.java:118)rnat junit.framework.TestSuite.runTest(TestSuite.java:208)rnat junit.framework.TestSuite.run(TestSuite.java:203)rnat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)rnat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)rnat org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)rnrn谢谢!
关于:Error creating bean with name 'org.apache.struts2.dispatcher.ServletDispatche
当Action执行完[color=#FF0000]return success;[/color]后出现以下:rn[code=Html]rnNo <em>bean</em> <em>name</em>d 'org.apache.struts2.dispatcher.ServletDispatcherResult' found in org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory@45bf65: defining <em>bean</em>s [OracleDStarget,OracleDS,sessionFactory,hibernateTemplate,UoAdmingroupDAO,UoAdminDAO,adminService,adminLoginAction,UoAdminappDAO,UoAdminappclassDAO]; root of factory hierarchyrnrnIgnoring constructor [public org.apache.struts2.dispatcher.ServletDispatcherResult(java.lang.String)] of <em>bean</em> 'org.apache.struts2.dispatcher.ServletDispatcherResult': org.springframework.<em>bean</em>s.factory.UnsatisfiedDependencyException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.apache.struts2.dispatcher.ServletDispatcherResult': Unsatisfied dependency expressed through constructor argument with index 0 of type [java.lang.String]: : No unique <em>bean</em> of type [java.lang.String] is <em>defined</em>: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching <em>bean</em>; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No unique <em>bean</em> of type [java.lang.String] is <em>defined</em>: Unsatisfied dependency of type [class java.lang.String]: expected at least 1 matching <em>bean</em>rn[/code]rnrn程序执行正常,这个异常不影响系统运行,但是看着不舒服。rnrn请问是什么问题?
SSH整合的问题 Error creating bean with name 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。=
报如下错误rn[code=Java]rnjavax.servlet.ServletException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'datasourse' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/objectweb/asm/Typern org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:286)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:763)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:856)rnrnrn[/code]rn是spring配置的问题吧?下面是spring配置文件rn[code=Java]rnrnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.SQLServerDialectrn rn updatern rn rn rn rn com/linkchina/DAO/Userinfo.hbm.xmlrn rn rn rn rn rn rnrn[/code]rnrnrn[color=#339966]--------------------------------------------------------------------rn以下内容为自动编辑的内容,并非楼主的发贴内容,此仅用于显示而已,并无任何其他特殊作用rn楼主【withwind_】截止到2008-08-05 09:57:55的历史汇总数据(不包括此帖):rn发帖的总数量:22 发帖的总分数:690 每贴平均分数:31 rn回帖的总数量:31 得分贴总数量:10 回帖的得分率:32% rn结贴的总数量:21 结贴的总分数:640 rn无满意结贴数:4 无满意结贴分:95 rn未结的帖子数:1 未结的总分数:50 rn结贴的百分比:95.45 % 结分的百分比:92.75 % rn无满意结贴率:19.05 % 无满意结分率:14.84 % rn[img=http://p.blog.csdn.net/images/p_blog_csdn_net/java2000_net/381633/o_support.gif][/img]值得尊敬[/color]rn取消马甲机器人,请点这里:[<em>url</em>=http://www.java2000.net/mycsdn/robotStop.jsp?usern=withwind_][/<em>url</em>]
Spring注解报错:Error creating bean with name
大神们路过给帮帮忙,小弟这个错纠结了好久,实在没办法上来求救rnrn[img=https://img-bbs.csdn.net/upload/201503/06/1425650737_225121.jpg][/img]rnrnSpring载入配置如下:rn[img=https://img-bbs.csdn.net/upload/201503/06/1425650841_899103.jpg][/img]rnrnDAO层代码如下:rn[img=https://img-bbs.csdn.net/upload/201503/06/1425650894_518789.jpg][/img]rnrnService层代码如下:rn[img=https://img-bbs.csdn.net/upload/201503/06/1425650987_115495.jpg][/img]rnrn再看看我的JAR:rn[img=https://img-bbs.csdn.net/upload/201503/06/1425651152_25632.jpg][/img][img=https://img-bbs.csdn.net/upload/201503/06/1425651167_475458.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201503/06/1425651177_92726.jpg][/img][img=https://img-bbs.csdn.net/upload/201503/06/1425651186_287922.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201503/06/1425651196_846160.jpg][/img][img=https://img-bbs.csdn.net/upload/201503/06/1425651205_533464.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201503/06/1425651216_651311.jpg][/img]
Error creating bean with name 'adminLoginJCaptchaFilter': Injection of resource
ERROR org.springframework.web.context.ContextLoader - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'adminLoginJCaptchaFilter': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'captchaService' <em>defined</em> in class path resource [applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same packagern at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:300)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1074)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4887)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5381)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:977)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:542)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1462)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:301)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)rn at com.sun.jmx.m<em>bean</em>server.JmxMBeanServer.invoke(JmxMBeanServer.java:761)rn at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1445)rn at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:677)rn at org.apache.catalina.manager.ManagerServlet.doPut(ManagerServlet.java:435)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:650)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)rn at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009)rn at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)rn at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn at java.lang.Thread.run(Thread.java:619)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'captchaService' <em>defined</em> in class path resource [applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same packagern at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:435)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:409)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:541)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:147)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:297)rn ... 53 morernCaused by: org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [com.octo.captcha.service.image.DefaultManageableImageCaptchaService]: Constructor threw exception; nested exception is java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same packagern at org.springframework.<em>bean</em>s.BeanUtils.instantiateClass(BeanUtils.java:141)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)rn ... 66 morernCaused by: java.lang.SecurityException: class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer information of other classes in the same packagern at java.lang.ClassLoader.checkCerts(ClassLoader.java:776)rn at java.lang.ClassLoader.preDefineClass(ClassLoader.java:488)rn at java.lang.ClassLoader.defineClass(ClassLoader.java:615)rn at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)rn at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2888)rn at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1172)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1558)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn at com.octo.captcha.service.captchastore.FastHashMapCaptchaStore.rn帮我看看是什么问题
Error creating bean with name 'sessionFactory' 错误
严重: action: nullrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)rn ... 44 more
SSH运行报错Error creating bean with name 'sessionFactory'
小女子第一次建SSH的<em>项目</em>,用的是struts1.2 + spring2.5 + hibernate3.2,tomcat6.0, 大部分文件都是直接生成的,在启动之后,排除其他问题之后,如今只剩一个问题,就是每次提交数据都会报一个错误:如下:rnrn严重: Servlet.service() for servlet action threw exceptionrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderServlet.init(ContextLoaderServlet.java:81)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4042)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4348)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:433)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 42 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)rn at java.lang.reflect.Constructor.newInstance(Unknown Source)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)rn ... 55 morernCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:128)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:78)rn ... 60 morernrn找了半天,也没能解决,求大神帮忙!!!rnPS:另外,在tomcat启动的时候,报了一些找不到class的错,但是能正常启动,不值之间有没有什么关系??
spring报错Error creating bean with name
org.springframework.<em>bean</em>s.factory.BeanCreationException: [color=#FF0000]Error <em>creating</em> <em>bean</em> with <em>name</em> 'service1' <em>defined</em> in class path resource[/color] [applicationContext_<em>bean</em>postprocessor.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerExceptionrnCaused by: java.lang.NullPointerExceptionrnrnxml如下rnrnrn rn rnrn rn rn rn rn rn rn rn rn rn Alexrn Georgern rn rn rn rn Adminrn Userrn rn rn rn rn rn rn rnrn
error creating bean with name 'entitymanagerfactory' def
<em>error</em> <em>creating</em> <em>bean</em> with <em>name</em> 'entitymanagerfactory' def
Error creating bean with name 'mySessionFactory'被困扰
在做spring和hibernate 的实验的时候就是老出现这个问题,jdbc就正常!rnrnrn[color=#FF0000][b]异常信息:[/b][color=#FF0000][/color][/color]rnrn Exception in thread "main" org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'mySessionFactory' <em>defined</em> in class path resource [dao/hibernate/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Unable to determine entity <em>name</em>rnCaused by: org.hibernate.MappingException: Unable to determine entity <em>name</em>rn at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:528)rn at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:280)rn at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:153)rn at org.hibernate.cfg.Configuration.add(Configuration.java:386)rn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:427)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:655)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1118)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:270)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:92)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:77)rn at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:68)rn at test.Test_hibernate.main(Test_hibernate.java:11)rn
解决spring报错 Error creating bean with name
以下是错误详细内容:rnrnError <em>creating</em> <em>bean</em> with <em>name</em> '/login' <em>defined</em> in ServletContext resource [/WEB-INF/classes/modules/action-servlet.xml]: Cannot resolve reference to <em>bean</em> 'userManager' while setting <em>bean</em> property 'userManager'; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No <em>bean</em> <em>name</em>d 'userManager' is <em>defined</em>rnrn说明:我在LoginAction 写了 setUserManager 在 applicationContext.xml配了rn 在 action-servlet.xml 写了 rn rn rn rn rn怎么还会报错呢?
Error creating bean with name 'dataSource' defined in URL [file:/D:/Tomcat%206.0
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in URL [file:/D:/Tomcat%206.0/webapps/wirelessCityWeb/WEB-INF/classes/applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPoolrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:881)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:837)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoClassDefFoundError: org/apache/commons/pool/impl/GenericObjectPoolrn at java.lang.Class.getDeclaredConstructors0(Native Method)rn at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)rn at java.lang.Class.getConstructor0(Class.java:2699)rn at java.lang.Class.getDeclaredConstructor(Class.java:1985)rn at org.springframework.<em>bean</em>s.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:54)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:875)rn ... 40 morernCaused by: java.lang.ClassNotFoundException: org.apache.commons.pool.impl.GenericObjectPoolrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1358)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)rn at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)rn ... 46 morernrnrn----------------rnrn求助!!!!!<em>感谢</em>大虾么!!!
求大神解救,Error creating bean with name 'eADPerforReportDao'
tomcat启动报如下异常,小弟调试了很久都没调试出来,求各位大神解救。rnrn[code=java]2014-04-26 23:10:11,821 ERROR [org.springframework.web.context.ContextLoader] - Context initialization failedrnrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'eADPerforReportDao': Injectionrn of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error rn<em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method rnfailed; nested exception is org.hibernate.MappingException: Could not determine type for: java.util.List, at table: table_tree, rnfor columns: [org.hibernate.mapping.Column(child_tabletrees)]rnrn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: java.util.List, at table: table_tree, for columns: [org.hibernate.mapping.Column(child_tabletrees)]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:442)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:416)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:549)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:159)rn at org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303)rn ... 28 morernCaused by: org.hibernate.MappingException: Could not determine type for: java.util.List, at table: table_tree, for columns: [org.hibernate.mapping.Column(child_tabletrees)]rn at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:306)rn at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:290)rn at org.hibernate.mapping.Property.isValid(Property.java:217)rn at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:464)rn at org.hibernate.mapping.RootClass.validate(RootClass.java:235)rn at org.hibernate.cfg.Configuration.validate(Configuration.java:1362)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1865)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:860)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:779)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)rn ... 40 morern[/code]
Error creating bean with name 'adminController':求帮助解决
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'adminController': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'MoneyAuditService': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No qualifying <em>bean</em> of type [com.xinali.util.UtilEditor] found for dependency: expected at least 1 <em>bean</em> which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, <em>name</em>=, type=class java.lang.Object, authenticationType=CONTAINER)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)rn org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)rn org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)rn org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn javax.servlet.GenericServlet.init(GenericServlet.java:160)rn org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)rn org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)rn java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn java.lang.Thread.run(Thread.java:619)rnroot causernrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'MoneyAuditService': Injection of resource dependencies failed; nested exception is org.springframework.<em>bean</em>s.factory.NoSuchBeanDefinitionException: No qualifying <em>bean</em> of type [com.xinali.util.UtilEditor] found for dependency: expected at least 1 <em>bean</em> which qualifies as autowire candidate for this dependency. Dependency annotations: @javax.annotation.Resource(shareable=true, mappedName=, description=, <em>name</em>=, type=class java.lang.Object, authenticationType=CONTAINER)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:306)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:912)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:855)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:770)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.autowireResource(CommonAnnotationBeanPostProcessor.java:440)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.getResource(CommonAnnotationBeanPostProcessor.java:418)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor$ResourceElement.getResourceToInject(CommonAnnotationBeanPostProcessor.java:546)rn org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:155)rn org.springframework.<em>bean</em>s.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)rn org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessPropertyValues(CommonAnnotationBeanPostProcessor.java:303)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)rn org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:651)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:602)rn org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:665)rn org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:521)rn org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:462)rn org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:136)rn javax.servlet.GenericServlet.init(GenericServlet.java:160)rn org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)rn org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)rn org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)rn org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)rn org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)rn org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)rn java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)rn java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)rn java.lang.Thread.run(Thread.java:619)rnadminController方法,运行和部署都成功,地址栏访问就出错rn@Controllerrnpublic class AdminController extends BaseControllerrn private static final int SUCCESS =0;rn private static final int NAME_ERRO =1;rn private static final int PASSWORD_ERRO =2;rn @Resourcern private AdminService adminService;rn @Resourcern private UserService userService;rn @Resourcern private MoneyAuditService moneyAuditService;rn rn //后台登录页面rn @RequestMapping("toBackLogin.do")rn public String toBackLogin()rn return "back/login";rn rn //注销rn @RequestMapping("logOut.do")rn public String logOut(HttpSession session)rn session.invalidate();//清除sessionrn return "redirect:../admin/toLogin.do";rn rn}rnrnrn配置文件:rnrn rn rn rn rn rn rn rn rn rn rn rn rnrnrn rn rn rn rn rn rn rn
Error creating bean with
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'org.springframework.security.filterChainProxy': Cannot resolve reference to <em>bean</em> 'myfilterSecurityInterceptor' while setting <em>bean</em> property 'filterChainMap' with key [Root <em>bean</em>: class [java.lang.String]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] with key [10]; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'myfilterSecurityInterceptor' <em>defined</em> in URL [file:/D:/Tomcat/webapps/mobile/WEB-INF/classes/spring/security/applicationContext-security.xml]: Cannot resolve reference to <em>bean</em> 'mySecurityMetadataSource' while setting <em>bean</em> property 'securityMetadataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'mySecurityMetadataSource' <em>defined</em> in URL [file:/D:/Tomcat/webapps/mobile/WEB-INF/classes/spring/security/applicationContext-security.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [net.java.dev.security.web.support.MyInvocationSecurityMetadataSource]: Constructor threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveManagedList(BeanDefinitionValueResolver.java:355)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:153)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:383)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:161)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:574)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'myfilterSecurityInterceptor' <em>defined</em> in URL [file:/D:/Tomcat/webapps/mobile/WEB-INF/classes/spring/security/applicationContext-security.xml]: Cannot resolve reference to <em>bean</em> 'mySecurityMetadataSource' while setting <em>bean</em> property 'securityMetadataSource'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'mySecurityMetadataSource' <em>defined</em> in URL [file:/D:/Tomcat/webapps/mobile/WEB-INF/classes/spring/security/applicationContext-security.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [net.java.dev.security.web.support.MyInvocationSecurityMetadataSource]: Constructor threw exception; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (Io 异常: The Network Adapter could not establish the connection)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1317)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1076)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)rn ... 43 morern
org.springframework.beans.factory.BeanCreationException: Error creating bean
[Evil] ERROR [main] org.springframework.web.context.ContextLoader.initWebApplicationContext(319) | Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [C:\Program Files\apache-tomcat-6.0.32\webapps\flow-web\WEB-INF\classes\applicationContext.xml]: Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.lang.Class[]' for property 'annotatedClasses'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.wujun.web.entity.FsFlowOffer]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.springframework.<em>bean</em>s.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.lang.Class[]' for property 'annotatedClasses'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.wujun.web.entity.FsFlowOffer]rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:468)rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:494)rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:488)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.convertForProperty(AbstractAutowireCapableBeanFactory.java:1463)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1422)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1158)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)rn ... 35 morernCaused by: java.lang.IllegalArgumentException: Cannot find class [com.wujun.web.entity.FsFlowOffer]rn at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:293)rn at org.springframework.<em>bean</em>s.propertyeditors.ClassEditor.setAsText(ClassEditor.java:63)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:455)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:427)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:128)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.convertToTypedArray(TypeConverterDelegate.java:466)rn at org.springframework.<em>bean</em>s.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:198)rn at org.springframework.<em>bean</em>s.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448)rn ... 41 morernCaused by: java.lang.ClassNotFoundException: com.wujun.web.entity.FsFlowOfferrn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)rn at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)rn at org.springframework.util.ClassUtils.forName(ClassUtils.java:257)rn at org.springframework.util.ClassUtils.resolveClassName(ClassUtils.java:290)rn ... 49 morern2015-7-16 11:07:09 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [C:\Program Files\apache-tomcat-6.0.32\webapps\flow-web\WEB-INF\classes\applicationContext.xml]: Initialization of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.TypeMismatchException: Failed to convert property value of type 'java.util.ArrayList' to required type 'java.lang.Class[]' for property 'annotatedClasses'; nested exception is java.lang.IllegalArgumentException: Cannot find class [com.wujun.web.entity.FsFlowOffer]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:529)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:610)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4205)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4704)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn rnrn rnrnrnrn
spring:Error creating bean with name 'dataSource',求解答
xml:rnrn rn rn java:comp/UserTransactionrn rn rn rn rn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn PROPAGATION_REQUIRED rn rn rn rn rn rnrnrntomcat下server.xmlrnrn rn rn rn rn rn maxActivern rn 100rn rn rn maxIdlern rn 30rn rn rn maxWaitrn rn 10000rn rn rn removeAbandonedrn rn truern rn rn removeAbandonedTimeoutrn rn 60rn rn rn logAbandonedrn rn falsern rn rn factoryrn rn org.apache.commons.dbcp.BasicDataSourceFactoryrn rn rn user<em>name</em>rn rn sarn rn rn passwordrn rn sarn rn rn driverClassNamern rn net.sourceforge.jtds.jdbc.Driverrn rn rn <em>url</em>rn rn jdbc:jtds:sqlserver://10.0.0.2:1433/spring_testrn rn rn rnrnrntomcat下web.xmlrnrnrn rn rn connectDB testrn java:comp/UserTransactionrn javax.sql.DataSourcern Containerrn rn rnrnrnrnrn这样启动tomcat然后新建个页面做测试的时候就报org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'dataSource' <em>defined</em> in file [D:\Tomcat 5.0\bin\<em>bean</em>.xml]: Initialization of <em>bean</em> failed; nested exception is javax.naming.NamingException: Cannot create resource instancernjavax.naming.NamingException: Cannot create resource instancernrn谁能告诉我这是什么原因啊?分不够再给rn
SSH项目报 Error creating bean with name 'sessionFactory' defined in class pat
这是applicationContext.xml配置rn[img=https://img-bbs.csdn.net/upload/201610/31/1477920211_941598.png][/img]rnrn这是web.xml配置rn[img=https://img-bbs.csdn.net/upload/201610/31/1477920313_955100.png][/img]rnrnrnrnrn求大神帮忙,在线等!!!!!
Error creating bean
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/applicationContext-hibernate.xml]: Initialization of <em>bean</em> failed; nested exception is org.hibernate.MappingException: Could not parse mapping document in input streamrnorg.hibernate.MappingException: Could not parse mapping document in input streamrn at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:431)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:679)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1091)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:396)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:233)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:145)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:277)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:313)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:139)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:252)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at cn.com.mstar.web.listener.StartupListener.contextInitialized(StartupListener.java:50)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
Error creating bean with name 'shiroFilter': Requested bean is currently in crea
Error <em>creating</em> <em>bean</em> with <em>name</em> 'shiroFilter': Requested <em>bean</em> is currently in creation: Is there an unresolvable circular reference?rnrn[code=text]rnrn rn rn rn rn rn rn rn rn rn rn rn rn /=anonrn /services/**=anonrn /mobileservices/**=anonrn /rms/login/checkUser** =anonrn /schedule/** =anonrn /web/map/** =anonrn /mobileVersions/** =anonrn /rms/login/** = loginfilterrn /android/** = anonrn /servlet/UploadImageServlet = anonrn /js/** = anonrn /css/** = anonrn /common/** = anonrn /images/** = anonrn /pages/** = anonrn /DoTimerTask.jsp = anonrn /handDo/** = anonrn /apk/** = anonrn rn /web/rms/task/addTask.jsp =perms[RMS0051]rn rn /** = loginfilterrn rn rn rn[/code]rnrn[code=text]rnShiro Configurationrn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn rn rn rn rn rn rn rn rn rn[/code]
Spring注入bean报错:Error creating bean with name的网上找不到的解决方案
今天在研究BaseService,在进行单元测试时,发现tomcat一直报错,错误代码如下: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> ‘这是我的service测试类’: Injection of resource dependencies failed; nest
rror creating bean with name 'sessionFactory' defined in ServletContext resource
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4420)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4733)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1315)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1061)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)rn at org.apache.catalina.core.StandardService.start(StandardService.java:525)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:595)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)rnCaused by: org.hibernate.HibernateException: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.PojoEntityTuplizer]rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:110)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:135)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:323)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:433)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:231)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1313)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)rn ... 44 morernCaused by: java.lang.reflect.InvocationTargetExceptionrn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:107)rn ... 57 morernCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:188)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:128)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:78)rn ... 62 more
小弟才学框架,求各位解答Error creating bean with name 'userDao' defined in file [E:\WorkSpac
2016-1-14 11:45:09 org.apache.catalina.core.AprLifecycleListener initrn信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Myeclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\bin;D:\Myeclipse\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201109141806\tomcat\binrn2016-1-14 11:45:09 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2016-1-14 11:45:09 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 301 msrn2016-1-14 11:45:09 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2016-1-14 11:45:09 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.13rn2016-1-14 11:45:10 org.apache.catalina.core.ApplicationContext logrn信息: Initializing Spring root WebApplicationContextrn2016-01-14 11:45:10,118 INFO [org.springframework.web.context.ContextLoader] - rn2016-01-14 11:45:10,198 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - rn2016-01-14 11:45:10,324 INFO [org.springframework.<em>bean</em>s.factory.xml.XmlBeanDefinitionReader] - rn2016-01-14 11:45:10,723 INFO [org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory] - rn2016-01-14 11:45:10,920 INFO [org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory] - rn2016-01-14 11:45:10,921 ERROR [org.springframework.web.context.ContextLoader] - rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'userDao' <em>defined</em> in file [E:\WorkSpace(Myeclipse)\.metadata\.me_tcat\webapps\Archive\WEB-INF\classes\applicationContext.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [E:\WorkSpace(Myeclipse)\.metadata\.me_tcat\webapps\Archive\WEB-INF\classes\applicationContext.xml]: Instantiation of <em>bean</em> failed; nested exception is org.springframework.<em>bean</em>s.BeanInstantiationException: Could not instantiate <em>bean</em> class [org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org/hibernate/annotations/Entityrn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:566)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnrn求各位告知可能解决的办法,小弟在做毕设,感激不尽(错误信息还没贴完。。。)rn
求大神帮帮菜鸟Error creating bean with name 'sessionFactory' defined in class path reso
Exception in thread "main" org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: interger, at table: employee, for columns: [org.hibernate.mapping.Column(id)]rnrn这个问题怎么解决?求帮忙:rnrn rn rn rn rn rn rn rnrnrnrnrn rn rn rn com/wqy/domain/Employee.hbm.xmlrn rn rn rn rn hibernate.dialect=org.hibernate.dialect.MySQLDialectrn hibernate.hbm2ddl.auto=updatern hibernate.show_sql=truern hibernate.format_sql=false rn rn rn
rror creating bean with name 'sessionFactory' defined in class path resource [ap
org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)rn at org.springframework.web.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:354)rn at org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.java:295)rn at org.springframework.web.struts.ContextLoaderPlugIn.init(ContextLoaderPlugIn.java:225)rn at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:869)rn at org.apache.struts.action.ActionServlet.init(ActionServlet.java:336)rn at javax.servlet.GenericServlet.init(GenericServlet.java:212)rn at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)rn at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)rn at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:924)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:887)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:516)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:578)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)rn at java.lang.reflect.Method.invoke(Unknown Source)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Vrn at net.sf.cglib.core.ClassEmitter.begin_class(ClassEmitter.java:77)rn at net.sf.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:173)rn at net.sf.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)rn at net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:216)rn at net.sf.cglib.core.KeyFactory$Generator.create(KeyFactory.java:145)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:117)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:108)rn at net.sf.cglib.core.KeyFactory.create(KeyFactory.java:104)rn at net.sf.cglib.proxy.Enhancer.(Enhancer.java:69)rn at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.getProxyFactory(CGLIBLazyInitializer.java:117)rn at org.hibernate.proxy.pojo.cglib.CGLIBProxyFactory.postInstantiate(CGLIBProxyFactory.java:43)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)rn at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:135)rn at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:55)rn at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:56)rn at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:295)rn at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:434)rn at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:109)rn at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)rn at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:226)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)rn ... 44 morern2009-12-30 16:24:01 org.apache.catalina.core.ApplicationContext logrn
请大家帮帮忙啊?: Error creating bean with name 'orgManager' defined in file Error crea
18:37:30,175 ERROR ContextLoader:205 - Context initialization failedrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'orgManager' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-<em>bean</em>s.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.OrgnizationrnCaused by: rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.OrgnizationrnCaused by: rnorg.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.Orgnizationrn at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2370)rn at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2652)rn at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1054)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1210)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject[img=http://][/img](AbstractBeanFactory.java:245)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)rn at org.springframework.<em>bean</em>s.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:290)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:348)rn at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)rn 2010-2-19 18:37:30 org.apache.catalina.core.StandardContext listenerStartrn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerrnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'orgManager' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-<em>bean</em>s.xml]: Cannot resolve reference to <em>bean</em> 'sessionFactory' while setting <em>bean</em> property 'sessionFactory'; nested exception is org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.OrgnizationrnCaused by: org.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'sessionFactory' <em>defined</em> in file [D:\apache-tomcat-6.0.24\webapps\oa2\WEB-INF\classes\applicationContext-common.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.OrgnizationrnCaused by: org.hibernate.MappingException: Association references unmapped class: com.bjsxt.oa.model.Orgnizationrn at org.hibernate.cfg.HbmBinder.bindCollectionSecondPass(HbmBinder.java:2370)rn at org.hibernate.cfg.HbmBinder$CollectionSecondPass.secondPass(HbmBinder.java:2652)rn at org.hibernate.cfg.CollectionSecondPass.doSecondPass(CollectionSecondPass.java:43)rn at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1054)rn at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1210)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:807)rn at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:740)rn at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:131)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1062)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1029)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:420)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)rn at org.springframework.<em>bean</em>s.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:955)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:729)rn at org.springframework.<em>bean</em>s.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:416)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)rn at org.springframework.<em>bean</em>s.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)rn at org.springframework.<em>bean</em>s.factory.support.AbstractBeanFactory.getBean严重: Context [/oa2] startup failed due to previous <em>error</em>s
org.springframework.beans.factory.BeanCreationException: Error creating bean wit
最近在学习springMVC,搭建好框架后,报出了如下错误,求大神指教:rnorg.springframework.<em>bean</em>s.factory.BeanCreationException: Error <em>creating</em> <em>bean</em> with <em>name</em> 'userManagerBase' <em>defined</em> in file [F:\Software\apache-tomcat-7.0.65\webapps\spring\WEB-INF\classes\comm\buaa\xml\spring-user.xml]: Error setting property values; nested exception is org.springframework.<em>bean</em>s.NotWritablePropertyException: Invalid property 'uersDao' of <em>bean</em> class [comm.buaa.service.impl.UserService]: Bean property 'uersDao' is not writable or has an invalid setter method. Did you mean 'usersDao'?rn我的<em>项目</em>结构:[img=https://img-bbs.csdn.net/upload/201605/17/1463491940_339365.png][/img]rnrnspring-hibernate.xmlrn[code=text]rnrnrn]>rnrnrn rn rn rn rn rn rn rn rn rn rn rn org.hibernate.dialect.OracleDialectrn update rn truern truern rn rn rn rn classpath:comm/buaa/hibernate/user.cfg.xmlrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_REQUIRED,-Exceptionrn PROPAGATION_NEVERrn rn rn rnrn[/code]rnrnspring-core.xmlrn[code=text]rnrnrn]>rnrnrn rnrn[/code]rnrnspring-user.xmlrn[code=text]rnrnrn]>rnrn rn rn rn rn rn rn rn rn rn rn rnrn[/code]rnrnuser.cfg.xmlrn[code=text]rnrnrn rnrn rn rn rnrn[/code]rnrnUserService.classrn[code=text]rnpackage comm.buaa.service.impl;rnrnimport comm.buaa.<em>bean</em>.Users;rnimport comm.buaa.dao.IUserDao;rnimport comm.buaa.service.IUserService;rnrnpublic class UserService implements IUserServicernrn private IUserDao usersDao;rnrn public void setUsersDao(IUserDao usersDao) rn this.usersDao = usersDao;rn rn public IUserDao getUsersDao()rn return usersDao;rn rn public void addUser(Users user) rn usersDao.addUser(user);rn rnrn[/code]
并行程序设计东北大学课件下载
东北大学并行程序设计课程核心课件,该课件实现并行程序的定义,设计以及实现等问题。 相关下载链接:[url=//download.csdn.net/download/yuhuichao/2123187?utm_source=bbsseo]//download.csdn.net/download/yuhuichao/2123187?utm_source=bbsseo[/url]
linux sed 命令详解下载
linux sed 命令详解 资源收集 linux sed 命令详解 资源收集 相关下载链接:[url=//download.csdn.net/download/b02042236/2924935?utm_source=bbsseo]//download.csdn.net/download/b02042236/2924935?utm_source=bbsseo[/url]
JavaScript实例下载
对于javascript的学习者,这些实例是非常有用。包括了javascript的各种函数类型。 相关下载链接:[url=//download.csdn.net/download/yan_xi_zao/3510568?utm_source=bbsseo]//download.csdn.net/download/yan_xi_zao/3510568?utm_source=bbsseo[/url]
我们是很有底线的