本文主要是介绍javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerF,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
在节前下电,今天启动的过程中,有一套集群cm启动不了。
查看日志
[root@MASTER02 cloudera-scm-server]# tail -100f cloudera-scm-server.out
JAVA_HOME=/usr/java/jdk1.7.0_67-cloudera
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1440)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:247)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 17 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerFactory
.......
........
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException: HHH010003: JDBC Driver class not found: com.mysql.jdbc.Driver
at org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:142)
初步断定是mysql启动不成功。
。。。。结果是用master01 ssh到master02,启动cm不成功。 但是cm是在mster01安装的。
所以这里....
启动完美
这篇关于javax.persistence.PersistenceException: [PersistenceUnit: cmf.server] Unable to build EntityManagerF的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!