主题 : 安装jeebbs出错,请指教 |
级别: 童生
![]() |
1# 发表于:2010-04-08 13:40:04 IP:218.149.*.*
|
||||
---|---|---|---|---|---|
级别: 童生
![]() |
2# 发表于:2010-04-08 15:16:35 IP:218.149.*.*
编译源代码后出错:
08-Apr-2010 15:12:15 org.apache.catalina.core.AprLifecycleListener lifecycleEvent INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Program Files\Java\jdk1.5.0_10\bin;D:\Program Files\Apache Software Foundation\Tomcat *\bin 08-Apr-2010 15:12:15 org.apache.coyote.http11.Http11BaseProtocol init INFO: Initializing Coyote HTTP/1.1 on http-8080 08-Apr-2010 15:12:15 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 922 ms 08-Apr-2010 15:12:15 org.apache.catalina.core.StandardService start INFO: Starting service Catalina 08-Apr-2010 15:12:15 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/*.23 08-Apr-2010 15:12:15 org.apache.catalina.core.StandardHost start INFO: XML validation disabled 2010-04-08 03:12 ERROR o.s.w.c.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumCacheSvc': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.cache.BbsForumCacheSvcImpl.setBbsForumMng(com.jeecms.bbs.manager.BbsForumMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumMngImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.manager.impl.BbsForumMngImpl.setDao(com.jeecms.bbs.dao.BbsForumDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:256) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:998) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:947) [spring-context-2.5.6.jar:2.5.6] at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:701) [spring-context-2.5.6.jar:2.5.6] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:377) [spring-context-2.5.6.jar:2.5.6] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) [spring-web-2.5.6.jar:2.5.6] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) [spring-web-2.5.6.jar:2.5.6] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45) [spring-web-2.5.6.jar:2.5.6] at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764) [catalina.jar:na] at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216) [catalina.jar:na] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) [catalina.jar:na] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) [catalina.jar:na] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) [catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) [catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553) [catalina.jar:na] at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488) [catalina.jar:na] at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138) [catalina.jar:na] at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) [catalina.jar:na] at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120) [catalina.jar:na] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022) [catalina.jar:na] at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) [catalina.jar:na] at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) [catalina.jar:na] at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) [catalina.jar:na] at org.apache.catalina.core.StandardService.start(StandardService.java:448) [catalina.jar:na] at org.apache.catalina.core.StandardServer.start(StandardServer.java:700) [catalina.jar:na] at org.apache.catalina.startup.Catalina.start(Catalina.java:552) [catalina.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.5.0_10] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.5.0_10] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.5.0_10] at java.lang.reflect.Method.invoke(Method.java:585) [na:1.5.0_10] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) [bootstrap.jar:na] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433) [bootstrap.jar:na] Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.cache.BbsForumCacheSvcImpl.setBbsForumMng(com.jeecms.bbs.manager.BbsForumMng); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumMngImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.manager.impl.BbsForumMngImpl.setDao(com.jeecms.bbs.dao.BbsForumDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:543) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253) [spring-beans-2.5.6.jar:2.5.6] ... 41 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumMngImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.manager.impl.BbsForumMngImpl.setDao(com.jeecms.bbs.dao.BbsForumDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:256) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:998) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:499) [spring-beans-2.5.6.jar:2.5.6] ... 43 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.jeecms.bbs.manager.impl.BbsForumMngImpl.setDao(com.jeecms.bbs.dao.BbsForumDao); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:543) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253) [spring-beans-2.5.6.jar:2.5.6] ... 56 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:256) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:998) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:499) [spring-beans-2.5.6.jar:2.5.6] ... 58 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:543) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253) [spring-beans-2.5.6.jar:2.5.6] ... 71 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:499) [spring-beans-2.5.6.jar:2.5.6] ... 73 common frames omitted |
||
---|---|---|---|
级别: 童生
![]() |
3# 发表于:2010-04-08 15:21:35 IP:218.149.*.*
接上:
iled; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:543) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253) [spring-beans-2.5.6.jar:2.5.6] ... 56 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'bbsForumDaoImpl': Autowiring of methods failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:256) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:998) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:499) [spring-beans-2.5.6.jar:2.5.6] ... 58 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire method: public void com.ponyjava.common.hibernate3.BaseDaoImpl.setSessionFactory(org.hibernate.SessionFactory); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:543) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.InjectionMetadata.injectMethods(InjectionMetadata.java:117) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:253) [spring-beans-2.5.6.jar:2.5.6] ... 71 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\projects\jeebbs\WebContent\WEB-INF\classes\applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/projects/jeebbs/WebContent/WEB-INF/classes/ehcache-hibernate.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 3 of 3-byte UTF-8 sequence. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409) [spring-beans-2.5.6.jar:2.5.6] at java.security.AccessController.doPrivileged(Native Method) [na:1.5.0_10] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:671) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:610) [spring-beans-2.5.6.jar:2.5.6] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:499) [spring-beans-2.5.6.jar:2.5.6] ... 73 common frames omitted |
||
---|---|---|---|
级别: 童生
![]() |
4# 发表于:2010-04-08 15:34:27 IP:218.149.*.*
找到原因了,是因为ehcache-hibernate.xml里面有中文字符
|
||
---|---|---|---|
1
共1页