FAQ
Hi, after updating to Cloudera Manager 4.1.4, my installation broke down,
and the Cloudera Manager fails to start.

I'm running Ubuntu 12.04. The contents from
/var/log/cloudera-scm-server/cloudera-scm-server.log follows. Does anyone
have an idea about what's wrong, and what I do about it?

2013-02-26 14:05:57,187 INFO
[main:support.ClassPathXmlApplicationContext@456] Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@7f081d2e:
startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
2013-02-26 14:05:57,236 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
XML bean definitions from class path resource
[webapp/WEB-INF/spring/beanRefFactory.xml]
2013-02-26 14:05:57,402 INFO [main:support.DefaultListableBeanFactory@557]
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc0f2e5:
defining beans [bootstrapContext,rootContext]; root of factory hierarchy
2013-02-26 14:05:57,425 INFO [main:support.GenericApplicationContext@456]
Refreshing
org.springframework.context.support.GenericApplicationContext@7ac2b2f6:
startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
2013-02-26 14:05:57,426 INFO [main:support.DefaultListableBeanFactory@557]
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63:
defining beans [commandLineConfigurationBean]; root of factory hierarchy
2013-02-26 14:05:57,465 INFO [main:cmf.Main@197] Starting SCM Server.
Version: 4.5.0 (#241 built by jenkins on 20130225-1844 git:
8416b634cdb03302ad11cc4390239d6c2079298e)
2013-02-26 14:05:57,485 INFO
[main:support.ClassPathXmlApplicationContext@456] Refreshing
org.springframework.context.support.ClassPathXmlApplicationContext@5d3e754f:
startup date [Tue Feb 26 14:05:57 CET 2013]; parent:
org.springframework.context.support.GenericApplicationContext@7ac2b2f6
2013-02-26 14:05:57,486 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
XML bean definitions from class path resource
[webapp/WEB-INF/spring/cmf-root-config.xml]
2013-02-26 14:05:57,577 INFO
[main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
'javax.inject.Named' annotation found and supported for component scanning
2013-02-26 14:05:57,587 INFO
[main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
'javax.inject.Named' annotation found and supported for component scanning
2013-02-26 14:05:57,650 INFO
[main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
'javax.inject.Named' annotation found and supported for component scanning
2013-02-26 14:05:57,678 INFO
[main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
'javax.inject.Named' annotation found and supported for component scanning
2013-02-26 14:05:57,720 INFO
[main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
'javax.inject.Named' annotation found and supported for component scanning
2013-02-26 14:05:58,117 INFO
[main:annotation.AutowiredAnnotationBeanPostProcessor@140] JSR-330
'javax.inject.Inject' annotation found and supported for autowiring
2013-02-26 14:05:58,129 INFO [main:support.DefaultListableBeanFactory@557]
Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
2013-02-26 14:05:58,349 INFO [main:enterprise.CommonMain@100] Reading
database properties from /etc/cloudera-scm-server/db.properties
2013-02-26 14:05:58,356 INFO [main:enterprise.CommonMain@133] Statistics
not enabled, c3p0 JMX disabled
2013-02-26 14:05:58,498 INFO [main:common.Version@37] HCANN000001:
Hibernate Commons Annotations {4.0.1.Final}
2013-02-26 14:05:58,509 INFO [main:hibernate.Version@41] HHH000412:
Hibernate Core {4.1.4.Final}
2013-02-26 14:05:58,513 INFO [main:cfg.Environment@239] HHH000206:
hibernate.properties not found
2013-02-26 14:05:58,515 INFO [main:cfg.Environment@342] HHH000021: Bytecode
provider name : javassist
2013-02-26 14:05:58,795 INFO [main:cfg.Configuration@718] HHH000221:
Reading mappings from resource: cmf.hbm.xml
2013-02-26 14:05:59,240 INFO
[main:internal.ConnectionProviderInitiator@188] HHH000130: Instantiating
explicit connection provider:
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@128]
HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@129]
HHH000046: Connection properties: {user=, password=****, autocommit=true,
release_mode=auto}
2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@132]
HHH000006: Autocommit mode: true
2013-02-26 14:05:59,242 INFO [main:support.DefaultListableBeanFactory@422]
Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
defining beans
[org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
2013-02-26 14:05:59,243 ERROR [main:cmf.Main@173] Server failed.
org.springframework.beans.factory.access.BootstrapException: Unable to
return specified BeanFactory instance: factory key [rootContext], from
group with resource name
[classpath:webapp/WEB-INF/spring/beanRefFactory.xml]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'rootContext' defined in class path resource
[webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'localParcelManager' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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
Related cause:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'entityManagerFactoryBean': Requested bean is
currently in creation: Is there an unresolvable circular reference?
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
at com.cloudera.server.cmf.Main.findBeanFactory(Main.java:323)
at com.cloudera.server.cmf.Main.findRootApplicationContext(Main.java:318)
at com.cloudera.server.cmf.Main.(Main.java:168)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'rootContext' defined in class path resource
[webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'localParcelManager' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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
Related cause:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'entityManagerFactoryBean': Requested bean is
currently in creation: Is there an unresolvable circular reference?
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at
org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
... 4 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'localParcelManager' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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
Related cause:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'entityManagerFactoryBean': Requested bean is
currently in creation: Is there an unresolvable circular reference?
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 14 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'localParcelManager' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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
Related cause:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
creating bean with name 'entityManagerFactoryBean': Requested bean is
currently in creation: Is there an unresolvable circular reference?
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at
org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 16 more
Caused by:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error
creating bean with name 'parcelDownloader' defined in URL
[jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
Unsatisfied dependency expressed through constructor argument with index 0
of type [javax.persistence.EntityManagerFactory]: : 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; nested
exception is 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.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
... 35 more
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:304)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
... 49 more
Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
cmf.server] Unable to build EntityManagerFactory
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:138)
at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:59)
at
com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:95)
at
com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:54)
at
org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
... 58 more
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)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
at
org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
at
org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
at
org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
at
org.hibernate.ejb.EntityManagerFactoryImpl.(Ejb3Configuration.java:905)
... 66 more
Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
Unable to load class [com.mysql.jdbc.Driver]
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
at
org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
... 80 more
Caused by: java.lang.ClassNotFoundException: Could not load requested class
: com.mysql.jdbc.Driver
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:266)
at
org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
... 81 more

Search Discussions

  • Harsh J at Feb 26, 2013 at 2:27 pm
    Caused by: java.lang.ClassNotFoundException: Could not load requested class : com.mysql.jdbc.Driver
    Do you have the MySQL java connector installed under /usr/share/java perhaps?

    On Tue, Feb 26, 2013 at 7:32 PM, Martin Rudi Holaker
    wrote:
    Hi, after updating to Cloudera Manager 4.1.4, my installation broke down,
    and the Cloudera Manager fails to start.

    I'm running Ubuntu 12.04. The contents from
    /var/log/cloudera-scm-server/cloudera-scm-server.log follows. Does anyone
    have an idea about what's wrong, and what I do about it?

    2013-02-26 14:05:57,187 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@7f081d2e:
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,236 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]
    2013-02-26 14:05:57,402 INFO [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc0f2e5:
    defining beans [bootstrapContext,rootContext]; root of factory hierarchy
    2013-02-26 14:05:57,425 INFO [main:support.GenericApplicationContext@456]
    Refreshing
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6:
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,426 INFO [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63:
    defining beans [commandLineConfigurationBean]; root of factory hierarchy
    2013-02-26 14:05:57,465 INFO [main:cmf.Main@197] Starting SCM Server.
    Version: 4.5.0 (#241 built by jenkins on 20130225-1844 git:
    8416b634cdb03302ad11cc4390239d6c2079298e)
    2013-02-26 14:05:57,485 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@5d3e754f:
    startup date [Tue Feb 26 14:05:57 CET 2013]; parent:
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6
    2013-02-26 14:05:57,486 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/cmf-root-config.xml]
    2013-02-26 14:05:57,577 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,587 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,650 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,678 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,720 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:58,117 INFO
    [main:annotation.AutowiredAnnotationBeanPostProcessor@140] JSR-330
    'javax.inject.Inject' annotation found and supported for autowiring
    2013-02-26 14:05:58,129 INFO [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:58,349 INFO [main:enterprise.CommonMain@100] Reading
    database properties from /etc/cloudera-scm-server/db.properties
    2013-02-26 14:05:58,356 INFO [main:enterprise.CommonMain@133] Statistics not
    enabled, c3p0 JMX disabled
    2013-02-26 14:05:58,498 INFO [main:common.Version@37] HCANN000001: Hibernate
    Commons Annotations {4.0.1.Final}
    2013-02-26 14:05:58,509 INFO [main:hibernate.Version@41] HHH000412:
    Hibernate Core {4.1.4.Final}
    2013-02-26 14:05:58,513 INFO [main:cfg.Environment@239] HHH000206:
    hibernate.properties not found
    2013-02-26 14:05:58,515 INFO [main:cfg.Environment@342] HHH000021: Bytecode
    provider name : javassist
    2013-02-26 14:05:58,795 INFO [main:cfg.Configuration@718] HHH000221: Reading
    mappings from resource: cmf.hbm.xml
    2013-02-26 14:05:59,240 INFO [main:internal.ConnectionProviderInitiator@188]
    HHH000130: Instantiating explicit connection provider:
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@128]
    HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
    jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@129]
    HHH000046: Connection properties: {user=, password=****, autocommit=true,
    release_mode=auto}
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@132]
    HHH000006: Autocommit mode: true
    2013-02-26 14:05:59,242 INFO [main:support.DefaultListableBeanFactory@422]
    Destroying singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:59,243 ERROR [main:cmf.Main@173] Server failed.
    org.springframework.beans.factory.access.BootstrapException: Unable to
    return specified BeanFactory instance: factory key [rootContext], from group
    with resource name [classpath:webapp/WEB-INF/spring/beanRefFactory.xml];
    nested exception is org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
    at com.cloudera.server.cmf.Main.findBeanFactory(Main.java:323)
    at com.cloudera.server.cmf.Main.findRootApplicationContext(Main.java:318)
    at com.cloudera.server.cmf.Main.<init>(Main.java:198)
    at com.cloudera.server.cmf.Main.main(Main.java:168)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
    at
    org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
    ... 4 more
    Caused by: org.springframework.beans.BeanInstantiationException: Could not
    instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
    at
    org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
    ... 14 more
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    ... 16 more
    Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 35 more
    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:304)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 49 more
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
    cmf.server] Unable to build EntityManagerFactory
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
    at
    org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
    at
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:138)
    at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:59)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:95)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:54)
    at
    org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
    ... 58 more
    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)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
    at
    org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
    at
    org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
    at
    org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
    ... 66 more
    Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
    Unable to load class [com.mysql.jdbc.Driver]
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
    at
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
    ... 80 more
    Caused by: java.lang.ClassNotFoundException: Could not load requested class
    : com.mysql.jdbc.Driver
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:266)
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
    ... 81 more


    --
    Harsh J
  • Philip Langdale at Feb 26, 2013 at 6:53 pm
    Did you let it replace your db.properties file? If so, the server has now
    lost your db connection info.
    If you look in /etc/cloudera-scm-server/, there will be a backup of the
    db.properties file, which you should
    restore.

    After that it will work again.

    --phil

    On 26 February 2013 06:27, Harsh J wrote:

    Caused by: java.lang.ClassNotFoundException: Could not load requested
    class : com.mysql.jdbc.Driver

    Do you have the MySQL java connector installed under /usr/share/java
    perhaps?

    On Tue, Feb 26, 2013 at 7:32 PM, Martin Rudi Holaker
    wrote:
    Hi, after updating to Cloudera Manager 4.1.4, my installation broke down,
    and the Cloudera Manager fails to start.

    I'm running Ubuntu 12.04. The contents from
    /var/log/cloudera-scm-server/cloudera-scm-server.log follows. Does anyone
    have an idea about what's wrong, and what I do about it?

    2013-02-26 14:05:57,187 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@7f081d2e
    :
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,236 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]
    2013-02-26 14:05:57,402 INFO [main:support.DefaultListableBeanFactory@557 ]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc0f2e5
    :
    defining beans [bootstrapContext,rootContext]; root of factory hierarchy
    2013-02-26 14:05:57,425 INFO [main:support.GenericApplicationContext@456 ]
    Refreshing
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6:
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,426 INFO [main:support.DefaultListableBeanFactory@557 ]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    :
    defining beans [commandLineConfigurationBean]; root of factory hierarchy
    2013-02-26 14:05:57,465 INFO [main:cmf.Main@197] Starting SCM Server.
    Version: 4.5.0 (#241 built by jenkins on 20130225-1844 git:
    8416b634cdb03302ad11cc4390239d6c2079298e)
    2013-02-26 14:05:57,485 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@5d3e754f
    :
    startup date [Tue Feb 26 14:05:57 CET 2013]; parent:
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6
    2013-02-26 14:05:57,486 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/cmf-root-config.xml]
    2013-02-26 14:05:57,577 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,587 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,650 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,678 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,720 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:58,117 INFO
    [main:annotation.AutowiredAnnotationBeanPostProcessor@140] JSR-330
    'javax.inject.Inject' annotation found and supported for autowiring
    2013-02-26 14:05:58,129 INFO [main:support.DefaultListableBeanFactory@557 ]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84
    :
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:58,349 INFO [main:enterprise.CommonMain@100] Reading
    database properties from /etc/cloudera-scm-server/db.properties
    2013-02-26 14:05:58,356 INFO [main:enterprise.CommonMain@133]
    Statistics not
    enabled, c3p0 JMX disabled
    2013-02-26 14:05:58,498 INFO [main:common.Version@37] HCANN000001: Hibernate
    Commons Annotations {4.0.1.Final}
    2013-02-26 14:05:58,509 INFO [main:hibernate.Version@41] HHH000412:
    Hibernate Core {4.1.4.Final}
    2013-02-26 14:05:58,513 INFO [main:cfg.Environment@239] HHH000206:
    hibernate.properties not found
    2013-02-26 14:05:58,515 INFO [main:cfg.Environment@342] HHH000021: Bytecode
    provider name : javassist
    2013-02-26 14:05:58,795 INFO [main:cfg.Configuration@718] HHH000221: Reading
    mappings from resource: cmf.hbm.xml
    2013-02-26 14:05:59,240 INFO
    [main:internal.ConnectionProviderInitiator@188]
    HHH000130: Instantiating explicit connection provider:
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@128]
    HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
    jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@129]
    HHH000046: Connection properties: {user=, password=****, autocommit=true,
    release_mode=auto}
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@132]
    HHH000006: Autocommit mode: true
    2013-02-26 14:05:59,242 INFO [main:support.DefaultListableBeanFactory@422 ]
    Destroying singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84
    :
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:59,243 ERROR [main:cmf.Main@173] Server failed.
    org.springframework.beans.factory.access.BootstrapException: Unable to
    return specified BeanFactory instance: factory key [rootContext], from group
    with resource name [classpath:webapp/WEB-INF/spring/beanRefFactory.xml];
    nested exception is
    org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
    at com.cloudera.server.cmf.Main.findBeanFactory(Main.java:323)
    at com.cloudera.server.cmf.Main.findRootApplicationContext(Main.java:318)
    at com.cloudera.server.cmf.Main.<init>(Main.java:198)
    at com.cloudera.server.cmf.Main.main(Main.java:168)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
    at
    org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
    ... 4 more
    Caused by: org.springframework.beans.BeanInstantiationException: Could not
    instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
    at
    org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
    ... 14 more
    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at
    org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    ... 16 more
    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 35 more
    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:304)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 49 more
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
    cmf.server] Unable to build EntityManagerFactory
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
    at
    org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
    at
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:138)
    at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:59)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:95)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:54)
    at
    org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
    ... 58 more
    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)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at
    org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
    at
    org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
    at
    org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
    at
    org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
    ... 66 more
    Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
    Unable to load class [com.mysql.jdbc.Driver]
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
    at
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
    ... 80 more
    Caused by: java.lang.ClassNotFoundException: Could not load requested class
    : com.mysql.jdbc.Driver
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:266)
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
    ... 81 more


    --
    Harsh J
  • Martin Rudi Holaker at Feb 28, 2013 at 12:35 pm
    Thanks a lot Philip, I did let it overwrite, and reverting to older files
    did indeed work.
    On Tuesday, 26 February 2013 18:45:23 UTC+1, Philip Langdale wrote:

    Did you let it replace your db.properties file? If so, the server has now
    lost your db connection info.
    If you look in /etc/cloudera-scm-server/, there will be a backup of the
    db.properties file, which you should
    restore.

    After that it will work again.

    --phil


    On 26 February 2013 06:27, Harsh J <ha...@cloudera.com <javascript:>>wrote:
    Caused by: java.lang.ClassNotFoundException: Could not load requested
    class : com.mysql.jdbc.Driver

    Do you have the MySQL java connector installed under /usr/share/java
    perhaps?

    On Tue, Feb 26, 2013 at 7:32 PM, Martin Rudi Holaker
    <duri...@gmail.com <javascript:>> wrote:
    Hi, after updating to Cloudera Manager 4.1.4, my installation broke down,
    and the Cloudera Manager fails to start.

    I'm running Ubuntu 12.04. The contents from
    /var/log/cloudera-scm-server/cloudera-scm-server.log follows. Does anyone
    have an idea about what's wrong, and what I do about it?

    2013-02-26 14:05:57,187 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@7f081d2e:
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,236 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]
    2013-02-26 14:05:57,402 INFO
    [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@3bc0f2e5:
    defining beans [bootstrapContext,rootContext]; root of factory hierarchy
    2013-02-26 14:05:57,425 INFO
    [main:support.GenericApplicationContext@456]
    Refreshing
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6:
    startup date [Tue Feb 26 14:05:57 CET 2013]; root of context hierarchy
    2013-02-26 14:05:57,426 INFO
    [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63:
    defining beans [commandLineConfigurationBean]; root of factory hierarchy
    2013-02-26 14:05:57,465 INFO [main:cmf.Main@197] Starting SCM Server.
    Version: 4.5.0 (#241 built by jenkins on 20130225-1844 git:
    8416b634cdb03302ad11cc4390239d6c2079298e)
    2013-02-26 14:05:57,485 INFO
    [main:support.ClassPathXmlApplicationContext@456] Refreshing
    org.springframework.context.support.ClassPathXmlApplicationContext@5d3e754f:
    startup date [Tue Feb 26 14:05:57 CET 2013]; parent:
    org.springframework.context.support.GenericApplicationContext@7ac2b2f6
    2013-02-26 14:05:57,486 INFO [main:xml.XmlBeanDefinitionReader@315] Loading
    XML bean definitions from class path resource
    [webapp/WEB-INF/spring/cmf-root-config.xml]
    2013-02-26 14:05:57,577 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,587 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,650 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,678 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:57,720 INFO
    [main:annotation.ClassPathBeanDefinitionScanner@186] JSR-330
    'javax.inject.Named' annotation found and supported for component scanning
    2013-02-26 14:05:58,117 INFO
    [main:annotation.AutowiredAnnotationBeanPostProcessor@140] JSR-330
    'javax.inject.Inject' annotation found and supported for autowiring
    2013-02-26 14:05:58,129 INFO
    [main:support.DefaultListableBeanFactory@557]
    Pre-instantiating singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:58,349 INFO [main:enterprise.CommonMain@100] Reading
    database properties from /etc/cloudera-scm-server/db.properties
    2013-02-26 14:05:58,356 INFO [main:enterprise.CommonMain@133]
    Statistics not
    enabled, c3p0 JMX disabled
    2013-02-26 14:05:58,498 INFO [main:common.Version@37] HCANN000001: Hibernate
    Commons Annotations {4.0.1.Final}
    2013-02-26 14:05:58,509 INFO [main:hibernate.Version@41] HHH000412:
    Hibernate Core {4.1.4.Final}
    2013-02-26 14:05:58,513 INFO [main:cfg.Environment@239] HHH000206:
    hibernate.properties not found
    2013-02-26 14:05:58,515 INFO [main:cfg.Environment@342] HHH000021: Bytecode
    provider name : javassist
    2013-02-26 14:05:58,795 INFO [main:cfg.Configuration@718] HHH000221: Reading
    mappings from resource: cmf.hbm.xml
    2013-02-26 14:05:59,240 INFO
    [main:internal.ConnectionProviderInitiator@188]
    HHH000130: Instantiating explicit connection provider:
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@128]
    HHH010002: C3P0 using driver: com.mysql.jdbc.Driver at URL:
    jdbc:mysql://null/null?useUnicode=true&characterEncoding=UTF-8
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@129]
    HHH000046: Connection properties: {user=, password=****,
    autocommit=true,
    release_mode=auto}
    2013-02-26 14:05:59,241 INFO [main:internal.C3P0ConnectionProvider@132]
    HHH000006: Autocommit mode: true
    2013-02-26 14:05:59,242 INFO
    [main:support.DefaultListableBeanFactory@422]
    Destroying singletons in
    org.springframework.beans.factory.support.DefaultListableBeanFactory@343aff84:
    defining beans
    [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,localParcelManager,parcelDownloader,parcelManager,parcelInstaller,rulesEngine,scheduleManager,cmfScheduler,cloudStatusDeterminer,serverLogFetcher,logSearchEventsCollectorImpl,ServerLogSearchResponse,agentLogFetcher,hostTemplateManager,entityManagerFactoryBean,clientProtocol,operationsManager,jythonObjectFactory,pythonInterpreterFactory,serviceDataProviderImpl,userSettingTransactionManager,heartbeatChecker,beanConfiguration,getObjectMapper,agentAsyncClient,newHeartbeatRequester,commandRequestsBean,getSupportedLocale,newServiceHandlerRegistry,newEventStoreClientFactory,newUpgradeHandlerRegistry,newAgentResultFetcher,newCmfEntityManager];
    parent:
    org.springframework.beans.factory.support.DefaultListableBeanFactory@7c138c63
    2013-02-26 14:05:59,243 ERROR [main:cmf.Main@173] Server failed.
    org.springframework.beans.factory.access.BootstrapException: Unable to
    return specified BeanFactory instance: factory key [rootContext], from group
    with resource name [classpath:webapp/WEB-INF/spring/beanRefFactory.xml];
    nested exception is
    org.springframework.beans.factory.BeanCreationException:
    Error creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is
    org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:409)
    at com.cloudera.server.cmf.Main.findBeanFactory(Main.java:323)
    at
    com.cloudera.server.cmf.Main.findRootApplicationContext(Main.java:318)
    at com.cloudera.server.cmf.Main.<init>(Main.java:198)
    at com.cloudera.server.cmf.Main.main(Main.java:168)
    Caused by: org.springframework.beans.factory.BeanCreationException: Error
    creating bean with name 'rootContext' defined in class path resource
    [webapp/WEB-INF/spring/beanRefFactory.xml]: Instantiation of bean failed;
    nested exception is
    org.springframework.beans.BeanInstantiationException:
    Could not instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
    at
    org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1079)
    at
    org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:397)
    ... 4 more
    Caused by: org.springframework.beans.BeanInstantiationException: Could not
    instantiate bean class
    [org.springframework.context.support.ClassPathXmlApplicationContext]:
    Constructor threw exception; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
    at
    org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
    ... 14 more
    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'localParcelManager' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/LocalParcelManager.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [com.cloudera.parcel.ParcelDownloader]: : Error creating bean with
    name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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; nested exception is
    org.springframework.beans.factory.UnsatisfiedDependencyException: Error
    creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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
    Related cause:
    org.springframework.beans.factory.BeanCurrentlyInCreationException: Error
    creating bean with name 'entityManagerFactoryBean': Requested bean is
    currently in creation: Is there an unresolvable circular reference?
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
    at
    org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
    at
    org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    at
    org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:105)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
    sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    at
    org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
    ... 16 more
    Caused by:
    org.springframework.beans.factory.UnsatisfiedDependencyException:
    Error creating bean with name 'parcelDownloader' defined in URL
    [jar:file:/usr/share/cmf/lib/server-4.5.0.jar!/com/cloudera/parcel/ParcelDownloader.class]:
    Unsatisfied dependency expressed through constructor argument with index 0
    of type [javax.persistence.EntityManagerFactory]: : 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; nested
    exception is 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.ConstructorResolver.createArgumentArray(ConstructorResolver.java:730)
    at
    org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:196)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
    at
    org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
    at
    org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 35 more
    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:304)
    at
    org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:848)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:790)
    at
    org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:707)
    at
    org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:795)
    at
    org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:723)
    ... 49 more
    Caused by: javax.persistence.PersistenceException: [PersistenceUnit:
    cmf.server] Unable to build EntityManagerFactory
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
    at
    org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
    at
    javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
    at
    com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:138)
    at com.cloudera.enterprise.CommonMain.setupHibernate(CommonMain.java:59)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:95)
    at
    com.cloudera.server.cmf.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:54)
    at
    org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
    ... 58 more
    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)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.buildJdbcConnectionAccess(JdbcServicesImpl.java:223)
    at
    org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:89)
    at
    org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
    at
    org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
    at
    org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:71)
    at
    org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2277)
    at
    org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2273)
    at
    org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
    at
    org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
    at
    org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
    ... 66 more
    Caused by: org.hibernate.service.classloading.spi.ClassLoadingException:
    Unable to load class [com.mysql.jdbc.Driver]
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:141)
    at
    org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:139)
    ... 80 more
    Caused by: java.lang.ClassNotFoundException: Could not load requested class
    : com.mysql.jdbc.Driver
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl$1.findClass(ClassLoaderServiceImpl.java:99)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:266)
    at
    org.hibernate.service.classloading.internal.ClassLoaderServiceImpl.classForName(ClassLoaderServiceImpl.java:138)
    ... 81 more


    --
    Harsh J

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedFeb 26, '13 at 2:02p
activeFeb 28, '13 at 12:35p
posts4
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase