cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 张仕博 <zhang...@neusoft.com>
Subject cloudstack db HA问题
Date Fri, 25 Jul 2014 04:23:21 GMT
启动时候报错如下,检查了
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib中有
cloud-plugin-database-mysqlha-4.3.0.jar这个jar,还有别的什么原因么?

 

2014-07-25 10:49:14,146 ERROR [c.c.u.d.Merovingian2] (main:null) Unable to
get a new db connection

java.sql.SQLException: Invalid load balancing strategy
'com.cloud.utils.db.StaticStrategy'.

         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:934)

         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)

         at com.mysql.jdbc.Util.loadExtensions(Util.java:588)

         at
com.mysql.jdbc.LoadBalancingConnectionProxy.<init>(LoadBalancingConnectionPr
oxy.java:280)

         at
com.mysql.jdbc.FailoverConnectionProxy.<init>(FailoverConnectionProxy.java:6
6)

         at
com.mysql.jdbc.NonRegisteringDriver.connectFailover(NonRegisteringDriver.jav
a:382)

         at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:301)

         at java.sql.DriverManager.getConnection(DriverManager.java:620)

         at java.sql.DriverManager.getConnection(DriverManager.java:200)

         at
org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(Driv
erManagerConnectionFactory.java:75)

         at
org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect
ionFactory.java:582)

         at
org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPoo
l.java:1188)

         at
org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.ja
va:106)

         at
com.cloud.utils.db.TransactionLegacy.getStandaloneConnectionWithException(Tr
ansactionLegacy.java:204)

         at com.cloud.utils.db.Merovingian2.<init>(Merovingian2.java:68)

         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(NativeConstructorAcces
sorImpl.java:57)

         at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:45)

         at java.lang.reflect.Constructor.newInstance(Constructor.java:532)

         at
org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)

         at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instan
tiate(SimpleInstantiationStrategy.java:121)

        at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstr
uctor(ConstructorResolver.java:280)

         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.getSi
ngleton(DefaultSingletonBeanRegistry.java:223)

         at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(Abst
ractBeanFactory.java:292)

         at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(Abstra
ctBeanFactory.java:194)

         at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInst
antiateSingletons(DefaultListableBeanFactory.java:628)

         at
org.springframework.context.support.AbstractApplicationContext.finishBeanFac
toryInitialization(AbstractApplicationContext.java:932)

         at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:479)

         at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
adContext(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.wi
thModule(DefaultModuleDefinitionSet.java:239)

         at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:244)

         at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:227)

         at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
adContexts(DefaultModuleDefinitionSet.java:115)

         at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
ad(DefaultModuleDefinitionSet.java:78)

         at
org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadMo
dules(ModuleBasedContextFactory.java:37)

         at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(Clo
udStackSpringContext.java:69)

         at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(C
loudStackSpringContext.java:56)

         at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(C
loudStackSpringContext.java:60)

         at
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.cont
extInitialized(CloudStackContextLoaderListener.java:51)

         at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:
3972)

         at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4467)

         at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:7
91)

         at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)

         at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)

         at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1041)

         at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:964
)

         at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)

         at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)

         at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)

         at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:119)

         at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

         at
org.apache.catalina.core.StandardHost.start(StandardHost.java:722)

         at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

         at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)

         at
org.apache.catalina.core.StandardService.start(StandardService.java:516)

         at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)

         at org.apache.catalina.startup.Catalina.start(Catalina.java:593)

         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:616)

         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)

         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)

Caused by: java.lang.ClassNotFoundException:
com.cloud.utils.db.StaticStrategy

         at java.net.URLClassLoader$1.run(URLClassLoader.java:217)

         at java.security.AccessController.doPrivileged(Native Method)

         at java.net.URLClassLoader.findClass(URLClassLoader.java:205)

         at java.lang.ClassLoader.loadClass(ClassLoader.java:321)

         at java.lang.ClassLoader.loadClass(ClassLoader.java:266)

         at java.lang.Class.forName0(Native Method)

         ... 70 more

 

  _____  

张仕博

基础软件事业部

东软集团股份有限公司

大连市甘井子区黄浦路901号D1座219室

 

Postcode:116085

 <Tel:(86> Tel:(86 411) 8446 6538

Email: <mailto:zhangshb@neusoft.com> zhangshb@neusoft.com

 

---------------------------------------------------------------------------------------------------
Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s)

is intended only for the use of the intended recipient and may be confidential and/or privileged
of 
Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication
is 
not the intended recipient, unauthorized use, forwarding, printing,  storing, disclosure or
copying 
is strictly prohibited, and may be unlawful.If you have received this communication in error,please

immediately notify the sender by return e-mail, and delete the original message and all copies
from 
your system. Thank you. 
---------------------------------------------------------------------------------------------------
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message