org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ageAndSexDAO' defined in file [D:\j2ee\tomcat6\webapps\ht_prodata\WEB-INF\classes\spring\AgeAndSexStart_task.xml]: BeanPostProcessor before instantiation 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 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in file [D:\j2ee\tomcat6\webapps\ht_prodata\WEB-INF\classes\spring\applicationContext.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:\j2ee\tomcat6\webapps\ht_prodata\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 [D:\j2ee\tomcat6\webapps\ht_prodata\WEB-INF\classes\spring\applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'maxIdleTimeExcessConnections' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: No property 'maxIdleTimeExcessConnections' found
当我把EIESmProxyApi.jar 移除的时候,项目启动正常。
查看错误最后一句是:maxIdleTimeExcessConnections 没有找到,而我c3p0中的参数明确设置了。
于是把这个参数去掉,项目突然能启动了。却发现项目又报另一种错误。首先这个maxIdleTimeExcessConnections  参数是不能却掉的。求大神指导Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in file [、applicationContext.xml]: Initialization of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'maxIdleTimeExcessConnections' of bean class [com.mchange.v2.c3p0.ComboPooledDataSource]: No property 'maxIdleTimeExcessConnections' foundSpringBean华为信息机