Hi Alex,

Yes, did some reworking to move the same to build-cloud.properties.  It took 
some time to complete.

If you wish to use mysql-connector "ant build-all deploydb", then please follow 
the steps:

1)  Install the latest mysql-connector to the desired location (untar it)  wget 
 
http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.21.tar.gz/from/http://cdn.mysql.com/
 (or) download it from "git clone 
ssh://<user-name>/var/lib/git/citrix-3p-deps.git" ( I have created two versions 
of mysql-connector, they are  mysql-connector-java-5.1.7 and 
mysql-connector-java-5.1.21)
 
 2)  Set 
"MYSQL_CONNECTOR=/path-of-your-download-mysql-java-connector/mysql-connector-java-xxxx-bin.jar"
 in 'build/build-cloud.properties' file.

 3)  Apply the patch in ASF master which I have sent (Please review before 
applying it): https://reviews.apache.org/r/6752/
        build/build-cloud.properties: 552de7f74db7b715da70cc48ff4dc8945fa066f8 
         build/developer.xml:  f2e5aa6463ec849a3e97343e82423ff0ac622222 
        setup/db/deploy-db-dev.sh:  f149e9efd029bd311b1d247e21764b9103fd01d9

 4)  Permanently remove David Nalley's below change rather than commenting out 
from developer.xml.
 
        commit 16437df9bdb2fdc13f317c338262d433365fbfdc
         Author: David Nalley <da...@gnsa.us>
        Date:   Mon Aug 20 14:19:37 2012 -0400
 
        commenting out the copy statement for mysql-connector-java so the 
         test doesn't break
 
 5)  Execute:  "ant build-all deploy-server deploydb unittest"

Please let me know your comments...

Thanks,
Pradeep.S
 


-----Original Message-----
From: Alex Huang 
Sent: Wednesday, August 22, 2012 7:41 PM
To: Pradeep Soundararajan; cloudstack-dev@incubator.apache.org
Cc: Rajesh Battala
Subject: RE: [ASFCS40] Help needed to resolve the mysql-connector blocker issue

Pradeep,

This works in linux but won't work for windows.  Please move the .bashrc change 
into a property in build-cloud.properties and use that to find the mysql 
library.

--Alex

> -----Original Message-----
> From: Pradeep Soundararajan
> Sent: Wednesday, August 22, 2012 5:21 AM
> To: Alex Huang; cloudstack-dev@incubator.apache.org
> Cc: Rajesh Battala
> Subject: RE: [ASFCS40] Help needed to resolve the mysql-connector 
> blocker issue
> 
> Right now I am able to perform "ant build-all deploy-server deploydb 
> unittest"
> 
> Steps to resolve:
> ----------------------
> 1)  Install the latest mysql-connector to the desired location (untar 
> it)  wget
> http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-
> 5.1.21.tar.gz/from/http://cdn.mysql.com/
> (or) download it from desired means.
> 
> 2)  Set "export MYSQL_CONNECTOR=/path-of-your-download-mysql-java-
> connector/mysql-connector-java-5.1.21-bin.jar" in .bashrc or on any 
> other profile file.  Do not forget to source the same after setting it.
> 
> 3)  Apply this patch in ASF master which I have already sent.
> https://reviews.apache.org/r/6730/
> 
> 4)  Permanently remove David Nalley's below change rather than 
> commenting out.
> 
> commit 16437df9bdb2fdc13f317c338262d433365fbfdc
> Author: David Nalley <da...@gnsa.us>
> Date:   Mon Aug 20 14:19:37 2012 -0400
> 
>     commenting out the copy statement for mysql-connector-java so the 
> test doesn't break
> 
> 5)  Execute:  "ant build-all deploy-server deploydb unittest"
> 
> Please let me know if you see any further issues.
> 
> Thanks Rajesh for your guidance...
> 
> Thanks,
> Pradeep.S
> 
> 
> -----Original Message-----
> From: Alex Huang
> Sent: Tuesday, August 21, 2012 7:45 AM
> To: cloudstack-dev@incubator.apache.org
> Cc: Rajesh Battala; Pradeep Soundararajan
> Subject: RE: [ASFCS40] Help needed to resolve the mysql-connector 
> blocker issue
> 
> 
> 
> > -----Original Message-----
> > From: David Nalley [mailto:da...@gnsa.us]
> > Sent: Monday, August 20, 2012 7:12 PM
> > To: cloudstack-dev@incubator.apache.org
> > Cc: Rajesh Battala; Pradeep Soundararajan
> > Subject: Re: [ASFCS40] Help needed to resolve the mysql-connector 
> > blocker issue
> >
> > On Mon, Aug 20, 2012 at 10:07 PM, Alex Huang <alex.hu...@citrix.com>
> > wrote:
> > > Dave,
> > >
> > > Without the actual library, those things will break.  A lot of 
> > > unit testing is
> > testing access to DB.  Deploy db is more or less changes to mysql.
> > I'm not sure how you expect Rajesh and Pradeep to fix them.  Any
> suggestions?
> > >
> > > --Alex
> > >
> >
> > So I haven't delved into it yet, I will - but I expected that having
> > mysql- connector-java installed locally would have solved that problem.
> > Perhaps a classpath issue, I don't know. I'll start looking as I have some 
> > time.
> > To be clear, I do expect those types of problems if it isn't 
> > present, but it is on my system and still not functioning.
> 
> I think that's a good expectation.  It means as long as the mysql jar 
> is somewhere in the java classpath, it should just work.
> 
> --Alex

Reply via email to