Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UT

这个错误是字符编码转换错误

严重: Context initialization failed<br />
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:883)<br />
    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:593)<br />
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:351)<br />
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)<br />
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)<br />
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)<br />
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)<br />
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)<br />
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)<br />
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)<br />
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)<br />
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)<br />
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)<br />
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)<br />
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)<br />
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)<br />
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br />
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)<br />
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)<br />
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)<br />
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)<br />
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br />
    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br />
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
    at java.lang.reflect.Method.invoke(Unknown Source)<br />
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br />
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:229)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:98)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:84)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:334)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1368)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)<br />
    ... 37 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)<br />
    ... 56 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:268)<br />
    ... 64 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1362)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:268)<br />
    ... 76 more<br />
Caused by: net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:101)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:137)<br />
    at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:272)<br />
    at net.sf.ehcache.CacheManager.init(CacheManager.java:220)<br />
    at net.sf.ehcache.CacheManager.<init>(CacheManager.java:213)<br />
    at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:131)<br />
    at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72)<br />
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:248)<br />
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)<br />
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:753)<br />
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:691)<br />
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1390)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1359)<br />
    ... 85 more<br />
Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:155)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:99)<br />
    ... 98 more<br />
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br />
    at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />
    at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:153)<br />
    ... 99 more<br />
2011-10-8 23:08:27 org.apache.catalina.core.StandardContext listenerStart<br />
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener<br />
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:547)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:883)<br />
    at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:593)<br />
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:351)<br />
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:251)<br />
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:190)<br />
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)<br />
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)<br />
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)<br />
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)<br />
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)<br />
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)<br />
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)<br />
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)<br />
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)<br />
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)<br />
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)<br />
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)<br />
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)<br />
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)<br />
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)<br />
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br />
    at org.apache.catalina.core.StandardService.start(StandardService.java:448)<br />
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br />
    at org.apache.catalina.startup.Catalina.start(Catalina.java:552)<br />
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br />
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br />
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br />
    at java.lang.reflect.Method.invoke(Unknown Source)<br />
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br />
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:229)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:122)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.aop.framework.autoproxy.BeanFactoryAdvisorRetrievalHelper.findAdvisorBeans(BeanFactoryAdvisorRetrievalHelper.java:87)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findCandidateAdvisors(AbstractAdvisorAutoProxyCreator.java:98)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.findEligibleAdvisors(AbstractAdvisorAutoProxyCreator.java:84)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAdvisorAutoProxyCreator.getAdvicesAndAdvisorsForBean(AbstractAdvisorAutoProxyCreator.java:66)<br />
    at org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator.postProcessAfterInitialization(AbstractAutoProxyCreator.java:296)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:334)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1368)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)<br />
    ... 37 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': Cannot resolve reference to bean 'txManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:219)<br />
    ... 56 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'txManager' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:274)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1274)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1042)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:539)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:268)<br />
    ... 64 more<br />
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\ssh10_8_1\WEB-INF\classes\applicationContext_db.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1362)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:540)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:485)<br />
    at java.security.AccessController.doPrivileged(Native Method)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:455)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)<br />
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:169)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)<br />
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:170)<br />
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:268)<br />
    ... 76 more<br />
Caused by: net.sf.ehcache.CacheException: Error configuring from file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:101)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:137)<br />
    at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:272)<br />
    at net.sf.ehcache.CacheManager.init(CacheManager.java:220)<br />
    at net.sf.ehcache.CacheManager.<init>(CacheManager.java:213)<br />
    at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:131)<br />
    at org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72)<br />
    at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:248)<br />
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)<br />
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:753)<br />
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:691)<br />
    at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1390)<br />
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1359)<br />
    ... 85 more<br />
Caused by: net.sf.ehcache.CacheException: Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:155)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:99)<br />
    ... 98 more<br />
Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.<br />
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.scanData(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLScanner.scanComment(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)<br />
    at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)<br />
    at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />
    at javax.xml.parsers.SAXParser.parse(Unknown Source)<br />
    at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:153)<br />
    ... 99 more<br />
2011-10-8 23:08:27 org.apache.catalina.core.StandardContext start<br />
严重: Error listenerStart<br />
2011-10-8 23:08:27 org.apache.catalina.core.StandardContext start<br />
严重: Context [/ssh10_8_1] startup failed due to previous errors<br />

<p>
	2011-10-8 23:08:27 org.apache.catalina.core.ApplicationContext log
</p>
<p>
	ehcache.xml内容为	<br />
	<ehcache><diskstore path="user.dir"></diskstore><!--
		默认缓存设置: maxElementsInMemory 每个实体类元素在缓存中的缓存最大个数 eternal 元素在缓存中的持久度
		true为一直存,若为 false需设置时间 timeToIdleSeconds 空闲时间 timeToLiveSeconds 存活时间
		overflowToDisk 缓存溢出到硬盘
	--><defaultcache maxelementsinmemory="10000" eternal="false" timetoidleseconds="120" timetoliveseconds="120" overflowtodisk="true"><!--
     name 为对应的实体类     
     
       --><cache name="cn.com.hibernate.pojo.DeptPojo" maxelementsinmemory="10000" eternal="false" timetoidleseconds="300" timetoliveseconds="600" overflowtodisk="true"><cache name="cn.com.hibernate.pojo.EmpPojo" maxelementsinmemory="10000" eternal="false" timetoidleseconds="300" timetoliveseconds="600" overflowtodisk="true"></cache></cache></defaultcache></ehcache>
</p>
<p>
	<span style="color:#990000;"><em>原因:由“Invocation of init method failed;....../webapps/ssh10_8_1/WEB-INF/classes/ehcache.xml. Initial cause was Error configuring from input stream. Initial cause was Invalid byte 1 of 1-byte UTF-8 sequence.”可知 是由于‘ehcache.xml‘’文件中的编码问题所致 <br />
	</em></span>
</p>
<p>
	<span style="color:#990000;"><em>故将其中的汉字注释去掉 ,问题就解决啦!<br />
	</em></span>
</p>


你可能感兴趣的:(bean,exception,input,byte,reference,nested)