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 Mon, 28 Jul 2014 01:45:45 GMT
数据库已经初始化过了,启动时候报错如下,

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


-----邮件原件-----
发件人: 刘洋 [mailto:1394102@163.com] 
发送时间: 2014年7月25日 16:55
收件人: users-cn@cloudstack.apache.org
主题: Re:cloudstack db HA问题

数据库初始化了吗?


--

  刘洋



在 2014-07-25 12:23:21,张仕博" <zhangshb@neusoft.com> 写道:
>启动时候报错如下,检查了
>/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>(LoadBalancingConnect
>ionPr
>oxy.java:280)
>
>         at
>com.mysql.jdbc.FailoverConnectionProxy.<init>(FailoverConnectionProxy.j
>ava:6
>6)
>
>         at
>com.mysql.jdbc.NonRegisteringDriver.connectFailover(NonRegisteringDrive
>r.jav
>a:382)
>
>         at
>com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:3
>01)
>
>         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(PoolableCo
>nnect
>ionFactory.java:582)
>
>         at
>org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObje
>ctPoo
>l.java:1188)
>
>         at
>org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSour
>ce.ja
>va:106)
>
>         at
>com.cloud.utils.db.TransactionLegacy.getStandaloneConnectionWithExcepti
>on(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(NativeConstructor
>Acces
>sorImpl.java:57)
>
>         at
>sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingCon
>struc
>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.i
>nstan
>tiate(SimpleInstantiationStrategy.java:121)
>
>        at
>org.springframework.beans.factory.support.ConstructorResolver.autowireC
>onstr
>uctor(ConstructorResolver.java:280)
>
>         at
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
>ctory
>.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1045)
>
>         at
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
>ctory
>.createBeanInstance(AbstractAutowireCapableBeanFactory.java:949)
>
>         at
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
>ctory
>.doCreateBean(AbstractAutowireCapableBeanFactory.java:487)
>
>         at
>org.springframework.beans.factory.support.AbstractAutowireCapableBeanFa
>ctory
>.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(A
>bstra
>ctBeanFactory.java:194)
>
>         at
>org.springframework.beans.factory.support.DefaultListableBeanFactory.pr
>eInst
>antiateSingletons(DefaultListableBeanFactory.java:628)
>
>         at
>org.springframework.context.support.AbstractApplicationContext.finishBe
>anFac
>toryInitialization(AbstractApplicationContext.java:932)
>
>         at
>org.springframework.context.support.AbstractApplicationContext.refresh(
>Abstr
>actApplicationContext.java:479)
>
>         at
>org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionS
>et.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.DefaultModuleDefinitionS
>et.wi
>thModule(DefaultModuleDefinitionSet.java:239)
>
>         at
>org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionS
>et.wi
>thModule(DefaultModuleDefinitionSet.java:244)
>
>         at
>org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionS
>et.wi
>thModule(DefaultModuleDefinitionSet.java:227)
>
>         at
>org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionS
>et.lo
>adContexts(DefaultModuleDefinitionSet.java:115)
>
>         at
>org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionS
>et.lo
>ad(DefaultModuleDefinitionSet.java:78)
>
>         at
>org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.l
>oadMo
>dules(ModuleBasedContextFactory.java:37)
>
>         at
>org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.ini
>t(Clo
>udStackSpringContext.java:69)
>
>         at
>org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<in
>it>(C
>loudStackSpringContext.java:56)
>
>         at
>org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<in
>it>(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:446
>7)
>
>         at
>org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j
>ava: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.jav
>a: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:3
>21)
>
>         at
>org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS
>uppor
>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.ja
>va:57
>)
>
>         at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>rImpl
>.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.
>-----------------------------------------------------------------------
>----------------------------

---------------------------------------------------------------------------------------------------
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
View raw message