cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王耀锋 <wilc...@hotmail.com>
Subject cloudstack4.2升级到4.3 无法连接db
Date Tue, 01 Apr 2014 02:37:35 GMT
升级到4.3后,启动服务后在localhost.log文件下报错:Apr 1, 2014 10:32:23 AM
org.apache.catalina.core.ApplicationContext logINFO: Set web app root system property: 'webapp.root'
= [/usr/share/cloudstack-management/webapps/client/]Apr 1, 2014 10:32:23 AM org.apache.catalina.core.ApplicationContext
logINFO: Initializing log4j from [classpath:log4j-cloud.xml]Apr 1, 2014 10:32:26 AM org.apache.catalina.core.StandardContext
listenerStartSEVERE: Exception sending context initialized event to listener instance of class
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListenerorg.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'lockMasterListener' defined in URL [jar:file:/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-server-4.3.0.jar!/META-INF/cloudstack/system/spring-server-system-context.xml]:
Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException:
Could not instantiate bean class [com.cloud.server.LockMasterListener]: Constructor threw
exception; nested exception is com.cloud.utils.exception.CloudRuntimeException: Unable to
initialize a connection to the database for locking purposes:        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:288)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
       at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
       at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:295)
       at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
       at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:292)
       at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
       at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:628)
       at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
       at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContext(DefaultModuleDefinitionSet.java:141)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.with(DefaultModuleDefinitionSet.java:119)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:239)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:244)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.withModule(DefaultModuleDefinitionSet.java:227)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.loadContexts(DefaultModuleDefinitionSet.java:115)
       at org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.load(DefaultModuleDefinitionSet.java:78)
       at org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadModules(ModuleBasedContextFactory.java:37)
       at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(CloudStackSpringContext.java:69)
       at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:56)
       at org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(CloudStackSpringContext.java:60)
       at org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.contextInitialized(CloudStackContextLoaderListener.java:51)
       at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
       at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)      
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)      
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
       at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1079)   
    at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1002)    
   at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:506)        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317)
       at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324)     
  at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
       at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065)        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:840)        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
       at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)        at
org.apache.catalina.core.StandardService.start(StandardService.java:525)        at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
       at org.apache.catalina.startup.Catalina.start(Catalina.java:595)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:622)        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke(Method.java:622)        at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:243)Caused
by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[com.cloud.server.LockMasterListener]: Constructor threw exception; nested exception is com.cloud.utils.exception.CloudRuntimeException:
Unable to initialize a connection to the database for locking purposes:        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:163)
       at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:121)
       at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
       ... 51 moreCaused by: com.cloud.utils.exception.CloudRuntimeException: Unable to initialize
a connection to the database for locking purposes:        at com.cloud.utils.db.Merovingian2.<init>(Merovingian2.java:74)
       at com.cloud.utils.db.Merovingian2.createLockMaster(Merovingian2.java:80)        at
com.cloud.server.LockMasterListener.<init>(LockMasterListener.java:33)        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:534)        at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)
       ... 53 moreCaused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/cloud?autoReconnect=true&prepStmtCacheSize=517&cachePrepStmts=true
       at java.sql.DriverManager.getConnection(DriverManager.java:635)        at java.sql.DriverManager.getConnection(DriverManager.java:195)
       at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:75)
       at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:582)
       at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:1188)
       at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:106)
       at com.cloud.utils.db.TransactionLegacy.getStandaloneConnectionWithException(TransactionLegacy.java:204)
       at com.cloud.utils.db.Merovingian2.<init>(Merovingian2.java:68)        ... 60
moreApr 1, 2014 10:32:26 AM org.apache.catalina.core.ApplicationContext logINFO: Shutting
down log4j
 		 	   		  
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message