1. Error description
info:2015-05-01 13:06:07[localhost-startstop-1]-Initializing c3p0-0.9.2.1 [built 20-march-2013 10:47:27 +0000; Debug? True trace:10]warn:2015-05-01 13:06:07[localhost-startstop-1]-Exception encountered during context initialization- Cancelling refresh Attemptorg.springframework.beans.factory.BeanCreationException:Error creating bean with Name ' DataSource ' defined in class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' driver_class ' of beans class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' are not writable or have an invalid setter m Ethod. Did you mean ' driverclass '? Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1508) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( Abstractautowirecapablebeanfactory.java:1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:757) at ORG.SPRINGFRAmework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.HostConfig$DeployDirectory. Run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (Executors.java : 471) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:org.springframework.beans.NotWritablePropertyException:Invalid property ' Driver_class ' of Bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' was not writable or had an invalid Setter method. Did you mean ' Driverclass '? at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:1065 ) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:923) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:95) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (AbstraCTPROPERTYACCESSOR.JAVA:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ... moreerror:2015-05-01 13:06:07[localhost-startstop-1]-Context initialization Failedorg.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' dataSource ' defined in Class path resource [Applicationcontext.xml]: Error setting property values; Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' driver_class ' of beans class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' are not writable or have an invalid setter m Ethod. Did you mean ' driverclass '? Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1508) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( Abstractautowirecapablebeanfactory.java: 1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:757) at Org.springframeWork.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$dePloydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (Executors.java : 471) at Java.util.concurrent.FutureTask.run (futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:org.springframework.beans.NotWritablePropertyException:Invalid property ' Driver_class ' of Bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' was not writable or had an invalid Setter method. Did you mean ' Driverclass '? at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:1065 ) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:923) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:95) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (ABSTRACTPROPERTYACCESSOR.JAVA:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ... + More May 01, 2015 1:06:07 PM org.apache.catalina.core.StandardContext listenerstart severity: Exception Sending context initial Ized event to listener instance of class Org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.BeanCreationException: Error creating Bean with Name ' DataSource ' defined in class path resource [Applicationcontext.xml]: Error setting property Values Nested exception is Org.springframework.beans.NotWritablePropertyException:Invalid property ' driver_class ' of beans class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' are not writable or have an invalid setter m Ethod. Did you mean ' driverclass '? Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1508) at Org.Springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean ( abstractautowirecapablebeanfactory.java:1216) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:538) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:476) at org.springframework.beans.factory.support.abstractbeanfactory$1. GetObject (abstractbeanfactory.java:302) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:229) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:298) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:193) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:725) at Org.springframework.contExt.support.AbstractApplicationContext.finishBeanFactoryInitialization (abstractapplicationcontext.java:757) at Org.springframework.context.support.AbstractApplicationContext.refresh (abstractapplicationcontext.java:480) at Org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext (contextloader.java:403) At Org.springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:306) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:106) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4994) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5492) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at Org.apache.catalina.core.ContainerBase.addChildInternal (containerbase.java:901) at Org.apache.catalina.core.ContainerBase.addChild (containerbase.java:877) at Org.apache.catalina.core.StandardHost.addChild (standardhost.java:649) at Org.apache.catalina.startup.HostConfig.deployDirectory (hostconfig.java:1245) at Org.apache.catalina.startup.hostconfig$deploydirectory.run (hostconfig.java:1895) at Java.util.concurrent.executors$runnableadapter.call (executors.java:471) at Java.util.concurrent.FutureTask.run ( futuretask.java:262) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:org.springframework.beans.NotWritablePropertyException:Invalid property ' Driver_class ' of Bean class [Com.mchange.v2.c3p0.ComboPooledDataSource]: Bean property ' Driver_class ' was not writable or had an invalid Setter method. Did you mean ' Driverclass '? at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:1065 ) at Org.springframework.beans.BeanWrapperImpl.setPropertyValue (beanwrapperimpl.java:923) at Org.springframework.beans.AbstractPropertyAccessor.setPropErtyvalues (abstractpropertyaccessor.java:95) at Org.springframework.beans.AbstractPropertyAccessor.setPropertyValues (abstractpropertyaccessor.java:75) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues ( abstractautowirecapablebeanfactory.java:1504) ... + More May 01, 2015 1:06:07 pm com.sun.faces.config.ConfigureListener contextinitialized Info: Initialize context '/SPRINGMVCH ' Mojarra 2.0.3 (FCS b03) May 01, 2015 1:06:08 pm com.sun.faces.spi.InjectionProviderFactory CreateInstance Info: JSF1048: Postconstru Ct/predestroy comments. The Managedbeans method labeled with these comments will indicate that the comment has been processed. May 01, 2015 1:06:09 PM org.apache.catalina.core.StandardContext startinternal severity: Error listenerstart May 01, 2015 1:06:09 PM Org.apache.catalina.core.StandardContext startinternal severity: Context [/springmvch] startup failed due to previous errors May 01, 2015 1:06:09 pm org.apache.catalina.core.ApplicationContext Log Info: Closing Spring root Webapplicationcontext May 01, 20 15 1:06:09 pm Org.apache.catalina.loader.WebappClassLoader Checkthreadlocalmapforleaks Critical: The Web application [/SPRINGMVCH] created a ThreadLocal with key of type [COM.S UN.FACES.UTIL.UTIL$1] (value [[email protected]]) and a value of type [JAVA.UTIL.HASHMAP] (value [{ com.sun.faces.patterncache={=}]) but failed to remove it when the Web application is stopped. Threads is going to being renewed over time to try and avoid a probable memory leak. May 01, 2015 1:06:09 PM Org.apache.catali Na.startup.HostConfig deploydirectory
2. Cause of Error
#MySQL \u9a71\u52a8hibernate.connection.driver_class=com.mysql.jdbc.driver
<property name= "Driver_class" value= "${hibernate.connection.driver_class}"/>
3. Solutions
#MySQL \u9a71\u52a8hibernate.connection.driverclass=com.mysql.jdbc.driver
<property name= "Driverclass" value= "${hibernate.connection.driverclass}"/>
Invalid property ' Driver_class ' of Bean class