cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Burwell <>
Subject Re: Package Build Procedure
Date Fri, 02 Nov 2012 19:12:20 GMT

I have been working to implement this workaround in our integration environment.  However,
when I deploy the WAR and start Tomcat, I am getting the following stack trace indicating
the JDBC can not find the MySQL driver:

INFO  [cloud.upgrade.DatabaseIntegrityChecker] (main:) Grabbing lock to check for database
ERROR [db.Transaction.Transaction] (main:) Unexpected exception: 
java.sql.SQLException: No suitable driver found for jdbc:mysql://
        at java.sql.DriverManager.getConnection(
        at java.sql.DriverManager.getConnection(
        at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(
        at org.apache.commons.dbcp.PoolingDataSource.getConnection(
        at javax.servlet.GenericServlet.init(
        at org.apache.catalina.core.StandardWrapper.loadServlet(
        at org.apache.catalina.core.StandardWrapper.load(
        at org.apache.catalina.core.StandardContext.loadOnStartup(
        at org.apache.catalina.core.StandardContext.start(
        at org.apache.catalina.core.ContainerBase.addChildInternal(
        at org.apache.catalina.core.ContainerBase.addChild(
        at org.apache.catalina.core.StandardHost.addChild(
        at org.apache.catalina.startup.HostConfig.deployWAR(
        at org.apache.catalina.startup.HostConfig.deployWARs(
        at org.apache.catalina.startup.HostConfig.deployApps(
        at org.apache.catalina.startup.HostConfig.start(
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(
        at org.apache.catalina.core.ContainerBase.start(
        at org.apache.catalina.core.StandardHost.start(
        at org.apache.catalina.core.ContainerBase.start(
        at org.apache.catalina.core.StandardEngine.start(
        at org.apache.catalina.core.StandardService.start(
        at org.apache.catalina.core.StandardServer.start(
        at org.apache.catalina.startup.Catalina.start(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at org.apache.catalina.startup.Bootstrap.start(
        at org.apache.catalina.startup.Bootstrap.main(
ERROR [utils.db.DbUtil] (main:) Unable to acquire DB connection for global lock system

I have tried moving the mysql JAR from the WEB-INF/lib directory to Tomcat's lib directory
with no success.  I have also tried replacing the mysql-connector-java-5.1.7.jar with the
cloud-mysql-connector-java-5.1.7.jar from devcloud also with no success.  The following is
the deployment environment version information:

Ubuntu 12.04.1
Tomcat 6.0.35 (installed via the Ubuntu tomcat6 package)
OpenJDK 6 (OpenJDK Runtime Environment (IcedTea6 1.11.5) (6b24-1.11.5-0ubuntu1~12.04.1))

Also, for your reference, I have attached the catalina.out and vmops.log logs.

Thank you for your assistance,

On Oct 29, 2012, at 4:46 PM, Edison Su <> wrote:

> People are planning to work on the deb build(,
don't know the status though.
> For current master, the shortest cut is using WAR(~/.m2/repository/org/apache/cloudstack/cloud-client-ui/4.1.0-SNAPSHOT/cloud-client-ui-4.1.0-SNAPSHOT.war)
>> -----Original Message-----
>> From: John Burwell []
>> Sent: Monday, October 29, 2012 1:18 PM
>> To:
>> Subject: Re: Package Build Procedure
>> Edison,
>> Is there an ETA for landing those changes into master?  Also, how do you
>> recommend packaging current master for deployment into an integration
>> test environment?  We working under the (false) assumption that building
>> Debian packages would be the shortest path.
>> Thanks,
>> -John
>> On Oct 29, 2012, at 4:11 PM, Edison Su <> wrote:
>>> Packaging doesn't work on master branch, this is a known issue, unless we
>> merged hugo's maven-to-rpm branch into master.
>>>> -----Original Message-----
>>>> From: Rohit Yadav []
>>>> Sent: Monday, October 29, 2012 1:01 PM
>>>> To:
>>>> Subject: RE: Package Build Procedure
>>>> Edison, building not much problem as packaging, from what I follow
>>>> John is trying to do dpkg-buildpackage which fails.
>>>> Updates, progress on packaging, rpm, debian?
>>>> ________________________________________
>>>> From: Edison Su []
>>>> Sent: Tuesday, October 30, 2012 1:27 AM
>>>> To:
>>>> Subject: RE: Package Build Procedure
>>>> Are you using the latest master or can you try it on latest master(HEAD:
>>>> a2d50c7e43f7e7fe1493972646c6f776af9d8143)?
>>>> The build works for me: mvn clean install -P developer
>>>>> -----Original Message-----
>>>>> From: John Burwell []
>>>>> Sent: Monday, October 29, 2012 11:37 AM
>>>>> To:
>>>>> Subject: Re: Package Build Procedure
>>>>> Edison and Rohit,
>>>>> Attached is the output mvm -X -P developer -pl tools/apidoc.
>>>>> Thank you for your help,
>>>>> -John

View raw message