Here is the console error message:
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Applicationcontext.xml]: Invocation of Init method failed; Nested exception is org.hibernate.MappingException:could not instantiate ID Generator [entity-name=com.tes.entity.cost ] at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1338) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean ( abstractautowirecapablebeanfactory.java:473) at Org.springframework.beans.factory.support.abstractautowirecapablebeanfactory$1.run ( abstractautowirecapablebeanfactory.java:409) at java.security.AccessController.doPrivileged (Native Method) at Org.s Pringframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean ( abstractautowirecapablebeanfactory.java:380) at Org.springframework.beans.factory.support.AbstractBeanFActory$1.getobject (abstractbeanfactory.java:264) at Org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton ( defaultsingletonbeanregistry.java:222) at Org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean (abstractbeanfactory.java:261) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:185) at Org.springframework.beans.factory.support.AbstractBeanFactory.getBean (abstractbeanfactory.java:164) at Org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons ( defaultlistablebeanfactory.java:423) at Org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization ( abstractapplicationcontext.java:728) at Org.springframework.context.support.AbstractApplicationContext.refresh ( abstractapplicationcontext.java:380) at Org.springframework.web.context.ContextLoader.createWebApplicationContext (contextloader.java:255) at org. Springframework.web.context.ContextLoader.initWebApplicationContext (contextloader.java:199) at Org.springframework.web.context.ContextLoaderListener.contextInitialized (contextloaderlistener.java:45) at Org.apache.catalina.core.StandardContext.listenerStart (standardcontext.java:4729) at Org.apache.catalina.core.StandardContext.startInternal (standardcontext.java:5167) at Org.apache.catalina.util.LifecycleBase.start (lifecyclebase.java:150) at org.apache.catalina.core.containerbase$ Startchild.call (containerbase.java:1409) at Org.apache.catalina.core.containerbase$startchild.call ( containerbase.java:1399) 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.hibernate.MappingException:could not instantiate ID Generator [entity-name=com.tEs.entity.Cost] at Org.hibernate.id.IdentifierGeneratorFactory.create (identifiergeneratorfactory.java:109) at Org.hibernate.mapping.SimpleValue.createIdentifierGenerator (simplevalue.java:152) at Org.hibernate.impl.SessionFactoryImpl.<Init>(sessionfactoryimpl.java:197) at Org.hibernate.cfg.Configuration.buildSessionFactory (configuration.java:1313) at Org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory (localsessionfactorybean.java:814) At Org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory (Localsessionfactorybean.java : 732) at Org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet ( abstractsessionfactorybean.java:211) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods ( abstractautowirecapablebeanfactory.java:1369) at Org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean ( abstractautowirecapablebeanfactory.java:1335) ... Morecaused By:org.hibernate.MappingException:Dialect does not support sequences at ORG.HIBERNATE.DIALECT.DIALECT.G Etsequencenextvalstring (dialect.java:619) at Org.hibernate.id.SequenceGenerator.configure (SequencegeneraTOR.JAVA:65) at Org.hibernate.id.IdentifierGeneratorFactory.create (identifiergeneratorfactory.java:104) ... More
The following is a applicationcontext.xml file information:
<!--configuration sessionfactory--><bean id= "sessionfactory" class= " Org.springframework.orm.hibernate3.LocalSessionFactoryBean "><!--dependent data source--><property name=" DataSource " ref= "DB"/><!--Hibernate framework-related configuration--><property name= "Hibernateproperties" ><props><!--metabase dialect --><prop key= "Hibernate.dialect" >org.hibernate.dialect.MySQLDialect</prop><!--Show SQL--< Prop key= "Hibernate.show_sql" >true</prop><!--formatted SQL--<prop key= "Hibernate.formate_sql" > true</prop><!--Query Cache <prop key= "Hibernate.cache.use_query_cache" >true</prop>//two-level cache <prop key= "Hibernate.cache.use_second_level_cache" >false</prop> </props></property>< Property Name= "Mappingresources" ><list><value>com/tes/entity/cost.hbm.xml</value></list ></property></bean>
SSH Project Exercise error when: [Applicationcontext.xml]: Invocation of the Init method failed;