Return-Path: X-Original-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-cloudstack-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B77B8DC35 for ; Tue, 8 Jan 2013 23:47:20 +0000 (UTC) Received: (qmail 89773 invoked by uid 500); 8 Jan 2013 23:47:20 -0000 Delivered-To: apmail-incubator-cloudstack-dev-archive@incubator.apache.org Received: (qmail 89742 invoked by uid 500); 8 Jan 2013 23:47:20 -0000 Mailing-List: contact cloudstack-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cloudstack-dev@incubator.apache.org Delivered-To: mailing list cloudstack-dev@incubator.apache.org Received: (qmail 89733 invoked by uid 99); 8 Jan 2013 23:47:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 23:47:20 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of mike.tutkowski@solidfire.com does not designate 209.85.214.178 as permitted sender) Received: from [209.85.214.178] (HELO mail-ob0-f178.google.com) (209.85.214.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Jan 2013 23:47:13 +0000 Received: by mail-ob0-f178.google.com with SMTP id eh20so1564057obb.9 for ; Tue, 08 Jan 2013 15:46:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=dibWeOzmQgQtHpcmo1fhpqmQQTtR8BJrAJtzslQhL5Y=; b=lqreRkEyNzLidrFmuPAw7SDga3WaoBvQRtHNASuZCXjgKSOhLiyprUheLUT5WFK07+ ADwn7fAaqWmMCAOld8UcSPmNI1C4ovjQBU53GSMQVzI5p8fXPxjL+zSOsqG1hz91Amrg MBoxz7QPMyDokrXcZNEVSduXpI0ptKrnxGjALM9b5TXP40SUT5wNVNXs+I09euppThx7 PoIoa5ubYRtrXR9ZqHvfI3KtTvSN8R7BVPLg2sc4cqgH1CndtYkrvofDmqF2rGHfZTfI TwOvFktT5/lT0ATdllwdgM3z3phXpRduWAyRPOJXliQa3JyNvNQjyrdxHxf11eWrpVP+ zE1w== MIME-Version: 1.0 Received: by 10.182.154.70 with SMTP id vm6mr48166918obb.50.1357688812373; Tue, 08 Jan 2013 15:46:52 -0800 (PST) Received: by 10.182.217.42 with HTTP; Tue, 8 Jan 2013 15:46:52 -0800 (PST) In-Reply-To: References: Date: Tue, 8 Jan 2013 16:46:52 -0700 Message-ID: Subject: Re: Running Maven Command From: Mike Tutkowski To: cloudstack-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d04479f0b60873f04d2cf8f63 X-Gm-Message-State: ALoCoQm5qslORj5UBQT0U0lehJH4GWtFYYF04D6pdT6ESA2ikb62DiSET/oOUMyUOubCKnETjbF6 X-Virus-Checked: Checked by ClamAV on apache.org --f46d04479f0b60873f04d2cf8f63 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable No problem, Alex. Thanks for all the help while I try to get up and running with CloudStack. :) SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Apache CloudStack Developer Tools 4.1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- properties-maven-plugin:1.0-alpha-2:read-project-properties (default) @ cloud-developer --- [WARNING] Ignoring missing properties file: /Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/utils/conf/= db.properties.override [INFO] [INFO] --- maven-remote-resources-plugin:1.3:process (default) @ cloud-developer --- [INFO] [INFO] --- maven-antrun-plugin:1.7:run (default) @ cloud-developer --- [INFO] Executing tasks main: [INFO] Executed tasks [INFO] [INFO] >>> exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer >>> [INFO] [INFO] <<< exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer <<< [INFO] [INFO] --- exec-maven-plugin:1.2.1:java (create-schema) @ cloud-developer --- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D> Processing SQL file at /Users/mtutkowski/Documents/CloudStack/src/incubator-cloudstack/developer/t= arget/db/create-schema.sql 2013-01-08 16:32:20,735 WARN [db.Transaction.Transaction] (com.cloud.upgrade.DatabaseCreator.main():) Unable to load db configuration, using defaults with 5 connections. Please check your configuration java.io.FileNotFoundException: file:/Users/mtutkowski/.m2/repository/org/apache/cloudstack/cloud-utils/4.1= .0-SNAPSHOT/cloud-utils-4.1.0-SNAPSHOT-tests.jar!/db.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:120) at com.cloud.utils.db.Transaction.(Transaction.java:1015) at com.cloud.upgrade.DatabaseCreator.main(DatabaseCreator.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:680) 2013-01-08 16:32:20,907 ERROR [db.Transaction.Transaction] (com.cloud.upgrade.DatabaseCreator.main():) Unexpected exception: java.sql.SQLException: Access denied for user 'cloud'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3562) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3494) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:920) at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:4000) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1285) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2186) at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:787) at com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:49) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at com.mysql.jdbc.Util.handleNewInstance(Util.java:409) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:357) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:28= 5 ) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:185) at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection( DriverManagerConnectionFactory.java:75) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject( PoolableConnectionFactory.java:582) at org.apache.commons.pool.impl.GenericObjectPool.borrowObject( GenericObjectPool.java:1188) at org.apache.commons.dbcp.PoolingDataSource.getConnection( PoolingDataSource.java:106) at com.cloud.utils.db.Transaction.getStandaloneConnectionWithException( Transaction.java:200) at com.cloud.utils.db.Transaction.getStandaloneConnection( Transaction.java:209) at com.cloud.upgrade.DatabaseCreator.main(DatabaseCreator.java:66) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:680) [WARNING] java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke( DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297) at java.lang.Thread.run(Thread.java:680) Caused by: java.lang.NullPointerException at com.cloud.upgrade.DatabaseCreator.main(DatabaseCreator.java:89) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.206s [INFO] Finished at: Tue Jan 08 16:32:20 MST 2013 [INFO] Final Memory: 15M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (create-schema) on project cloud-developer: An exception occured while executing the Java class. null: InvocationTargetException: NullPointerException -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException On Tue, Jan 8, 2013 at 4:44 PM, Alex Huang wrote: > Can you post more of the log output? Would give more context. > > --Alex > > > -----Original Message----- > > From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] > > Sent: Tuesday, January 08, 2013 3:41 PM > > To: cloudstack-dev@incubator.apache.org > > Subject: Re: Running Maven Command > > > > When I look at the file that wasn't found ( > > > > file:/Users/mtutkowski/.m2/repository/org/apache/cloudstack/cloud- > > utils/4.1.0-SNAPSHOT/cloud-utils-4.1.0-SNAPSHOT-tests.jar!/db.propertie= s > > > > ), I'm not familiar with the exclamation-mark syntax. I assume what th= is > > means is it was looking for the file db.properties inside of the JAR > file? > > > > Any pointers for me on why this might be? > > > > Thanks!! :) > > > > > > On Tue, Jan 8, 2013 at 3:50 PM, Mike Tutkowski > > > > wrote: > > > > > Thanks for the feedback, Alex. > > > > > > I'm trying to deploy the DB and am here: > > > Deploying Database > > > > > > Note: The following is a WIP feature, use the old Ant command for a > > > complete refresh. This command assumes you have a proper setup in > > > utils/conf/db.properties and the cloud user already exists on your > mysql > > > database. > > > > > > $ mvn -P developer -pl developer -Ddeploydb > > > > > > To customize hosts, password etc. just copy utils/conf/db.properties = to > > > utils/conf/db.properties.override (this is git ignored by default) an= d > edit > > > the properties as needed they will override the defaults in > > > utils/conf/db.properties. > > > > > > > > > I'm not exactly sure what a "proper setup" means. Would you be able = to > > > clarify this for me? > > > > > > Currently when I run the Maven command to deploy the DB, I get a > > warning > > > (which I think I can ignore): > > > > > > [WARNING] Ignoring missing properties file: > > > /Users/mtutkowski/Documents/CloudStack/src/incubator- > > cloudstack/utils/conf/db.properties.override > > > > > > I think I only need the .override file if I actually overrode a > property, > > > but perhaps I should be overriding properties? I'm not sure. > > > > > > In a related manner, this message is later displayed: > > > > > > java.io.FileNotFoundException: > > > file:/Users/mtutkowski/.m2/repository/org/apache/cloudstack/cloud- > > utils/4.1.0-SNAPSHOT/cloud-utils-4.1.0-SNAPSHOT-tests.jar!/db.propertie= s > > > > > > Thanks for any help! > > > > > > > > > > > > On Tue, Jan 8, 2013 at 2:51 PM, Alex Huang > > wrote: > > > > > >> mvn -pl client jetty:run > > >> > > >> man....i always have to go find these things myself. Maven is prett= y > > >> chatty in terms of params. > > >> > > >> --Alex > > >> > > >> > -----Original Message----- > > >> > From: Mike Tutkowski [mailto:mike.tutkowski@solidfire.com] > > >> > Sent: Tuesday, January 08, 2013 1:46 PM > > >> > To: cloudstack-dev@incubator.apache.org > > >> > Subject: Running Maven Command > > >> > > > >> > Hi everyone, > > >> > > > >> > I'm trying to follow the instructions on this URL: > > >> > > > >> > https://cwiki.apache.org/CLOUDSTACK/building-with- > > >> > maven.html#BuildingwithMaven-Dependencies > > >> > > > >> > Running on the javelin branch, I've successfully executed mvn clea= n > and > > >> mvn > > >> > install -Dnonoss. > > >> > > > >> > When I get down to this instruction and execute it, it fails: > > >> > > > >> > mvn -pl :cloud-client-ui jetty:run > > >> > > > >> > > > >> > This is the error message: > > >> > > > >> > > > >> > Listening for transport dt_socket at address: 8787 > > >> > [INFO] Scanning for projects... > > >> > [ERROR] Could not find the selected project in the reactor: > > >> > :cloud-client-ui -> [Help 1] > > >> > [ERROR] > > >> > [ERROR] To see the full stack trace of the errors, re-run Maven wi= th > > >> > the -e switch. > > >> > [ERROR] Re-run Maven using the -X switch to enable full debug > logging. > > >> > [ERROR] > > >> > [ERROR] For more information about the errors and possible > solutions, > > >> > please read the following articles: > > >> > [ERROR] [Help 1] > > >> > > > http://cwiki.apache.org/confluence/display/MAVEN/MavenExecutionExcept > > >> > ion > > >> > > > >> > > > >> > Any help would be appreciated. > > >> > > > >> > > > >> > Thanks!! > > >> > > > >> > > > >> > -- > > >> > *Mike Tutkowski* > > >> > *Senior CloudStack Developer, SolidFire Inc.* > > >> > e: mike.tutkowski@solidfire.com > > >> > o: 303.746.7302 > > >> > Advancing the way the world uses the > > >> > cloud > > >> > *(tm)* > > >> > > > > > > > > > > > > -- > > > *Mike Tutkowski* > > > *Senior CloudStack Developer, SolidFire Inc.* > > > e: mike.tutkowski@solidfire.com > > > o: 303.746.7302 > > > Advancing the way the world uses the > > cloud > > > *(tm)* > > > > > > > > > > > -- > > *Mike Tutkowski* > > *Senior CloudStack Developer, SolidFire Inc.* > > e: mike.tutkowski@solidfire.com > > o: 303.746.7302 > > Advancing the way the world uses the > > cloud > > *(tm)* > --=20 *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkowski@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud *=99* --f46d04479f0b60873f04d2cf8f63--