java - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' -
i getting exception while trying run j2ee application. here's full stacktrace:
info: initializing spring root webapplicationcontext 21:15:11,416 error contextloader:308 - context initialization failed org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in servletcontext resource [/web-inf/datasource-config.xml]: invocation of init method failed; nested exception javax.persistence.persistenceexception: [persistenceunit: up_notation] unable build entitymanagerfactory @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1455) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:519) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:294) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:225) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:291) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:567) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:913) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:464) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:385) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:284) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:111) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4973) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722) caused by: javax.persistence.persistenceexception: [persistenceunit: up_notation] unable build entitymanagerfactory @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:915) @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:890) @ org.hibernate.ejb.hibernatepersistence.createcontainerentitymanagerfactory(hibernatepersistence.java:74) @ org.springframework.orm.jpa.localcontainerentitymanagerfactorybean.createnativeentitymanagerfactory(localcontainerentitymanagerfactorybean.java:268) @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.afterpropertiesset(abstractentitymanagerfactorybean.java:310) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1514) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1452) ... 22 more caused by: org.hibernate.hibernateexception: dialect class not found: org.hibernate.dialect.mysqldialect @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.constructdialect(dialectfactoryimpl.java:76) @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.builddialect(dialectfactoryimpl.java:64) @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:146) @ org.hibernate.service.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:75) @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:159) @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:131) @ org.hibernate.cfg.settingsfactory.buildsettings(settingsfactory.java:77) @ org.hibernate.cfg.configuration.buildsettingsinternal(configuration.java:2283) @ org.hibernate.cfg.configuration.buildsettings(configuration.java:2279) @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1748) @ org.hibernate.ejb.entitymanagerfactoryimpl.<init>(entitymanagerfactoryimpl.java:94) @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:905) ... 28 more caused by: org.hibernate.service.classloading.spi.classloadingexception: unable load class [org.hibernate.dialect.mysqldialect] @ org.hibernate.service.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:141) @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.constructdialect(dialectfactoryimpl.java:73) ... 39 more caused by: java.lang.classnotfoundexception: not load requested class : org.hibernate.dialect.mysqldialect @ org.hibernate.service.classloading.internal.classloaderserviceimpl$1.findclass(classloaderserviceimpl.java:99) @ java.lang.classloader.loadclass(classloader.java:423) @ java.lang.classloader.loadclass(classloader.java:356) @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:264) @ org.hibernate.service.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:138) ... 40 more mai 17, 2014 9:15:11 pm org.apache.catalina.core.standardcontext listenerstart severe: exception lors de l'envoi de l'évènement contexte initialisé (context initialized) à l'instance de classe d'écoute (listener) org.springframework.web.context.contextloaderlistener org.springframework.beans.factory.beancreationexception: error creating bean name 'entitymanagerfactory' defined in servletcontext resource [/web-inf/datasource-config.xml]: invocation of init method failed; nested exception javax.persistence.persistenceexception: [persistenceunit: up_notation] unable build entitymanagerfactory @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1455) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:519) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:456) @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:294) @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:225) @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:291) @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:193) @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:567) @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:913) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:464) @ org.springframework.web.context.contextloader.configureandrefreshwebapplicationcontext(contextloader.java:385) @ org.springframework.web.context.contextloader.initwebapplicationcontext(contextloader.java:284) @ org.springframework.web.context.contextloaderlistener.contextinitialized(contextloaderlistener.java:111) @ org.apache.catalina.core.standardcontext.listenerstart(standardcontext.java:4973) @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5467) @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1559) @ org.apache.catalina.core.containerbase$startchild.call(containerbase.java:1549) @ java.util.concurrent.futuretask$sync.innerrun(futuretask.java:334) @ java.util.concurrent.futuretask.run(futuretask.java:166) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1110) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:603) @ java.lang.thread.run(thread.java:722) caused by: javax.persistence.persistenceexception: [persistenceunit: up_notation] unable build entitymanagerfactory @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:915) @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:890) @ org.hibernate.ejb.hibernatepersistence.createcontainerentitymanagerfactory(hibernatepersistence.java:74) @ org.springframework.orm.jpa.localcontainerentitymanagerfactorybean.createnativeentitymanagerfactory(localcontainerentitymanagerfactorybean.java:268) @ org.springframework.orm.jpa.abstractentitymanagerfactorybean.afterpropertiesset(abstractentitymanagerfactorybean.java:310) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.invokeinitmethods(abstractautowirecapablebeanfactory.java:1514) @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1452) ... 22 more caused by: org.hibernate.hibernateexception: dialect class not found: org.hibernate.dialect.mysqldialect @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.constructdialect(dialectfactoryimpl.java:76) @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.builddialect(dialectfactoryimpl.java:64) @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:146) @ org.hibernate.service.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:75) @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:159) @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:131) @ org.hibernate.cfg.settingsfactory.buildsettings(settingsfactory.java:77) @ org.hibernate.cfg.configuration.buildsettingsinternal(configuration.java:2283) @ org.hibernate.cfg.configuration.buildsettings(configuration.java:2279) @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1748) @ org.hibernate.ejb.entitymanagerfactoryimpl.<init>(entitymanagerfactoryimpl.java:94) @ org.hibernate.ejb.ejb3configuration.buildentitymanagerfactory(ejb3configuration.java:905) ... 28 more caused by: org.hibernate.service.classloading.spi.classloadingexception: unable load class [org.hibernate.dialect.mysqldialect] @ org.hibernate.service.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:141) @ org.hibernate.service.jdbc.dialect.internal.dialectfactoryimpl.constructdialect(dialectfactoryimpl.java:73) ... 39 more caused by: java.lang.classnotfoundexception: not load requested class : org.hibernate.dialect.mysqldialect @ org.hibernate.service.classloading.internal.classloaderserviceimpl$1.findclass(classloaderserviceimpl.java:99) @ java.lang.classloader.loadclass(classloader.java:423) @ java.lang.classloader.loadclass(classloader.java:356) @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:264) @ org.hibernate.service.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:138) ... 40 more mai 17, 2014 9:15:11 pm com.sun.faces.config.configurelistener contextinitialized info: initialisation de mojarra 2.2.0 ( 20130502-2118 https://svn.java.net/svn/mojarra~svn/tags/2.2.0@11930) pour le contexte «/notation» mai 17, 2014 9:15:13 pm com.sun.faces.spi.injectionproviderfactory createinstance info: jsf1048 : présence d’annotations postconstruct/predestroy les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées.
Comments
Post a Comment