GitHub user miguelaferreira opened a pull request:

    https://github.com/apache/cloudstack/pull/950

    Load mysql driver before connecting to db

    When deploying ACS as a WAR file in a vanilla tomcat installation, I always 
get an error reporting that the JDBC driver for MySQL can't be found. This PR 
loads said driver before establishing a connection.
    
    I tried to figure out how this is done in the ACS rpm but I couldn't. 
Therefore I open this PR to enable anyone that wants to deploy ACS as a WAR 
file.
    The PR also adds a dependency on mysql connector in the developer profile. 
Without this dependency the build will fail because the driver manager won't be 
able to load the driver class.
    
    I have tested this PR by deploying the resulting WAR several times, and I 
have to say to reviewers, that the war needs to be rename to client.war, 
otherwise the UI will not work.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/miguelaferreira/cloudstack 
load-mysql-driver-before-connecting-to-db

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/950.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #950
    
----
commit e9ab28f6a2de81d8596fdb4b8e6d4aa967acfe1a
Author: Miguel Ferreira <miguelferre...@me.com>
Date:   2015-10-19T09:29:23Z

    Add MySQL connector dependency to developer profile

commit 8b6bf567f988c0b362441bc53f19da9df9e226d9
Author: Miguel Ferreira <miguelferre...@me.com>
Date:   2015-10-18T13:42:19Z

    Load MySQL driver before creating datasource

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to