bonecp 配置 好后 老报 错 各位 大侠 看看 什么 情况 ?

雾霾下的精彩 发布于 2012/04/24 10:47
阅读 2K+
收藏 0
ERROR [Thread-3] - Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AudioDao' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext-Audio.xml]: Cannot resolve reference to bean 'sqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionTemplate' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294)
 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionTemplate' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 23 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.spri2012-4-24 10:46:30 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AudioDao' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext-Audio.xml]: Cannot resolve reference to bean 'sqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionTemplate' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)
 at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:900)
 at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:455)
 at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294)
 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
 at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionTemplate' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'sqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:630)
 at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 23 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\ngframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 35 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 45 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1044)
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:909)
 at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
 at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
 ... 53 more
org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1325)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 35 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [C:\Users\Administrator\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp4\wtpwebapps\Staback\WEB-INF\classes\spring\applicationContext.xml]: Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1361)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1086)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
 at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
 at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
 at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
 at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
 ... 45 more
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'bonecpUrl' of bean class [com.jolbox.bonecp.BoneCPDataSource]: Bean property 'bonecpUrl' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:1044)
 at org.springframework.beans.BeanWrapperImpl.setPropertyValue(BeanWrapperImpl.java:909)
 at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:76)
 at org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:58)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1358)
 ... 53 more
2012-4-24 10:46:30 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
2012-4-24 10:46:30 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Staback] startup failed due to previous errors
2012-4-24 10:46:30 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2012-4-24 10:46:30 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/Staback] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
2012-4-24 10:46:30 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Staback] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@497062]) and a value of type [java.lang.Class] (value [class oracle.sql.TypeDescriptorFactory]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
2012-4-24 10:46:30 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
加载中
0
雾霾下的精彩
雾霾下的精彩
是不是 jar 包 有问题 ?  我看里面的 错误  好多都  是 关于 jar 包 方面的
0
红薯
红薯
bonecpUrl 没有这个属性,你配置是不是搞错了
雾霾下的精彩
雾霾下的精彩
没有呀我把 我的配置 贴出来
0
雾霾下的精彩
雾霾下的精彩
<bean id="dataSource" 
        class="com.jolbox.bonecp.BoneCPDataSource" 
        destroy-method="close"> 
       <property name="driverClass" 
        value="oracle.jdbc.driver.OracleDriver" /> 
       <property name="bonecpUrl" 
        value="jdbc:oracle:thin:@192.168.1.6:1521:excetop" /> 
       <property name="username" 
        value="excetop" /> 
       <property name="password" 
        value="excetop" /> 
       <property name="idleConnectionTestPeriod" 
        value="60" /> 
       <property name="idleMaxAge" 
        value="240" /> 
       <property name="maxConnectionsPerPartition" 
        value="30" /> 
       <property name="minConnectionsPerPartition" 
        value="20" /> 
       <!-- 设置分区个数。这个参数默认为1,建议3-4 --> 
       <property name="partitionCount" 
        value="3" /> 
       <!-- 设置分区中的connection增长数量。这个参数默认为1。 --> 
       <property name="acquireIncrement" 
        value="5" /> 
       <property name="statementsCacheSize" 
        value="100" /> 
       <property name="releaseHelperThreads" 
        value="3" /> 
        </bean> 
   
     <bean id="transactionManagers" 
   class="org.springframework.jdbc.datasource.DataSourceTransactionManager"> 
   <property name="dataSource" ref="dataSource" /> 
     </bean> 
  <bean id="sqlSessionFactory" 
   class="org.mybatis.spring.SqlSessionFactoryBean"> 
   <property name="dataSource"> 
    <ref local="dataSource" /> 
   </property> 
   <property name="configLocation"> 
    <value>/WEB-INF/Configuration.xml</value> 
   </property> 
   </bean> 
   <bean id="sqlSessionTemplate" 
   class="org.mybatis.spring.SqlSessionTemplate"> 
   <constructor-arg ref="sqlSessionFactory" /> 
</bean>
鉴客
鉴客
睁眼说瞎话,还说没有 bonecpUrl
0
雾霾下的精彩
雾霾下的精彩

不是 说没有 这个 参数  ,我是说这个参数  没 有配错

红薯
红薯
没有这样的参数的,bonecpUrl -> url
0
雾霾下的精彩
雾霾下的精彩
噢   改成 url  也 还是 报同样 的 问题    
0
红薯
红薯

另外还有这个错误:

Cannot resolve reference to bean sqlSessionTemplate sqlSessionFactory

0
雾霾下的精彩
雾霾下的精彩
还有这个   Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file  
0
雾霾下的精彩
雾霾下的精彩

以前我用的 proxoool   这个数据 库 连接 池 ,别的 我没动 ,就是  把  proxool 属性配置 改成bonecp  的 啦 然后 就 报错了  

0
雾霾下的精彩
雾霾下的精彩

还有 就是 我用的jar 包  是   

0
雾霾下的精彩
雾霾下的精彩
bonecp-0.7.0.jar  还有   google-collections-1.0.jar     commons-logging-1.1.jar     还有 log4j    几个 jar  包
返回顶部
顶部