You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Jeff Hair <je...@greenqloud.com> on 2015/06/11 12:32:39 UTC

Trying to Run awsapi on 4.5 from Maven

Hi,

I'm trying to run the awsapi server on the 4.5 branch from Maven. Normally
we work with 4.2 and a deployed version of awsapi, so this is the first
time I'm trying it from mvn.

I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run

I have a few errors:
1. java.sql.SQLException: No suitable driver found for
jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
2. The version-1.5.6.aar service, which is not valid, caused
java.lang.NoSuchMethodError:
org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V

Both of these sound like classpath problems. But awsapi builds
successfully, so shouldn't the MySQL driver and the proper form of the XML
parsing library already be on the classpath?

Thanks,

Jeff

Re: Trying to Run awsapi on 4.5 from Maven

Posted by Jeff Hair <je...@greenqloud.com>.
The pull request has been submitted:
https://github.com/apache/cloudstack/pull/389

On Thu, Jun 11, 2015 at 11:17 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Cool, after you can make it work - send a PR.
>
> Cheers.
>
> > On 11-Jun-2015, at 2:01 pm, Jeff Hair <je...@greenqloud.com> wrote:
> >
> > Some progress: by adding the MySQL connector dependency to the awsapi
> POM,
> > the MySQL error was solved. I suspect it's something similar for the XML
> > library problem.
> >
> > On Thu, Jun 11, 2015 at 10:32 AM, Jeff Hair <je...@greenqloud.com> wrote:
> >
> >> Hi,
> >>
> >> I'm trying to run the awsapi server on the 4.5 branch from Maven.
> Normally
> >> we work with 4.2 and a deployed version of awsapi, so this is the first
> >> time I'm trying it from mvn.
> >>
> >> I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run
> >>
> >> I have a few errors:
> >> 1. java.sql.SQLException: No suitable driver found for
> >> jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
> >> 2. The version-1.5.6.aar service, which is not valid, caused
> >> java.lang.NoSuchMethodError:
> >> org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V
> >>
> >> Both of these sound like classpath problems. But awsapi builds
> >> successfully, so shouldn't the MySQL driver and the proper form of the
> XML
> >> parsing library already be on the classpath?
> >>
> >> Thanks,
> >>
> >> Jeff
> >>
> >
> >
> >
> > --
> > *Jeff Hair*
> > Core Systems Developer
> >
> > Tel: (+354) 415 0200
> > jeff@greenqloud.com
> > www.greenqloud.com
>
> Regards,
> Rohit Yadav
> Software Architect, ShapeBlue
> M. +91 88 262 30892 | rohit.yadav@shapeblue.com
> Blog: bhaisaab.org | Twitter: @_bhaisaab
>
>
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
> a company registered by The Republic of South Africa and is traded under
> license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>



-- 
*Jeff Hair*
Core Systems Developer

Tel: (+354) 415 0200
jeff@greenqloud.com
www.greenqloud.com

Re: Trying to Run awsapi on 4.5 from Maven

Posted by Rohit Yadav <ro...@shapeblue.com>.
Cool, after you can make it work - send a PR.

Cheers.

> On 11-Jun-2015, at 2:01 pm, Jeff Hair <je...@greenqloud.com> wrote:
>
> Some progress: by adding the MySQL connector dependency to the awsapi POM,
> the MySQL error was solved. I suspect it's something similar for the XML
> library problem.
>
> On Thu, Jun 11, 2015 at 10:32 AM, Jeff Hair <je...@greenqloud.com> wrote:
>
>> Hi,
>>
>> I'm trying to run the awsapi server on the 4.5 branch from Maven. Normally
>> we work with 4.2 and a deployed version of awsapi, so this is the first
>> time I'm trying it from mvn.
>>
>> I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run
>>
>> I have a few errors:
>> 1. java.sql.SQLException: No suitable driver found for
>> jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
>> 2. The version-1.5.6.aar service, which is not valid, caused
>> java.lang.NoSuchMethodError:
>> org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V
>>
>> Both of these sound like classpath problems. But awsapi builds
>> successfully, so shouldn't the MySQL driver and the proper form of the XML
>> parsing library already be on the classpath?
>>
>> Thanks,
>>
>> Jeff
>>
>
>
>
> --
> *Jeff Hair*
> Core Systems Developer
>
> Tel: (+354) 415 0200
> jeff@greenqloud.com
> www.greenqloud.com

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.

Re: Trying to Run awsapi on 4.5 from Maven

Posted by Jeff Hair <je...@greenqloud.com>.
Some progress: by adding the MySQL connector dependency to the awsapi POM,
the MySQL error was solved. I suspect it's something similar for the XML
library problem.

On Thu, Jun 11, 2015 at 10:32 AM, Jeff Hair <je...@greenqloud.com> wrote:

> Hi,
>
> I'm trying to run the awsapi server on the 4.5 branch from Maven. Normally
> we work with 4.2 and a deployed version of awsapi, so this is the first
> time I'm trying it from mvn.
>
> I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run
>
> I have a few errors:
> 1. java.sql.SQLException: No suitable driver found for
> jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
> 2. The version-1.5.6.aar service, which is not valid, caused
> java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V
>
> Both of these sound like classpath problems. But awsapi builds
> successfully, so shouldn't the MySQL driver and the proper form of the XML
> parsing library already be on the classpath?
>
> Thanks,
>
> Jeff
>



-- 
*Jeff Hair*
Core Systems Developer

Tel: (+354) 415 0200
jeff@greenqloud.com
www.greenqloud.com

Re: Trying to Run awsapi on 4.5 from Maven

Posted by Jeff Hair <je...@greenqloud.com>.
Hi,

Unfortunately that's not an option at the moment. I'm aware that CS is
moving away from awsapi (and so are we), but at the moment I need to get it
running on 4.5.

On Thu, Jun 11, 2015 at 10:41 AM, Rohit Yadav <ro...@shapeblue.com>
wrote:

> Use this:
> https://github.com/apache/cloudstack-ec2stack
>
> Avoid using awsapi.
>
> > On 11-Jun-2015, at 1:32 pm, Jeff Hair <je...@greenqloud.com> wrote:
> >
> > Hi,
> >
> > I'm trying to run the awsapi server on the 4.5 branch from Maven.
> Normally
> > we work with 4.2 and a deployed version of awsapi, so this is the first
> > time I'm trying it from mvn.
> >
> > I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run
> >
> > I have a few errors:
> > 1. java.sql.SQLException: No suitable driver found for
> > jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
> > 2. The version-1.5.6.aar service, which is not valid, caused
> > java.lang.NoSuchMethodError:
> > org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V
> >
> > Both of these sound like classpath problems. But awsapi builds
> > successfully, so shouldn't the MySQL driver and the proper form of the
> XML
> > parsing library already be on the classpath?
> >
> > Thanks,
> >
> > Jeff
>
> Regards,
> Rohit Yadav
> Software Architect, ShapeBlue
> M. +91 88 262 30892 | rohit.yadav@shapeblue.com
> Blog: bhaisaab.org | Twitter: @_bhaisaab
>
>
>
> Find out more about ShapeBlue and our range of CloudStack related services
>
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//>
> CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
> CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
> CloudStack Software Engineering<
> http://shapeblue.com/cloudstack-software-engineering/>
> CloudStack Infrastructure Support<
> http://shapeblue.com/cloudstack-infrastructure-support/>
> CloudStack Bootcamp Training Courses<
> http://shapeblue.com/cloudstack-training/>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is
> a company registered by The Republic of South Africa and is traded under
> license from Shape Blue Ltd. ShapeBlue is a registered trademark.
>



-- 
*Jeff Hair*
Core Systems Developer

Tel: (+354) 415 0200
jeff@greenqloud.com
www.greenqloud.com

Re: Trying to Run awsapi on 4.5 from Maven

Posted by Rohit Yadav <ro...@shapeblue.com>.
Use this:
https://github.com/apache/cloudstack-ec2stack

Avoid using awsapi.

> On 11-Jun-2015, at 1:32 pm, Jeff Hair <je...@greenqloud.com> wrote:
>
> Hi,
>
> I'm trying to run the awsapi server on the 4.5 branch from Maven. Normally
> we work with 4.2 and a deployed version of awsapi, so this is the first
> time I'm trying it from mvn.
>
> I'm using this command: mvn -Pawsapi -pl :cloud-awsapi jetty:run
>
> I have a few errors:
> 1. java.sql.SQLException: No suitable driver found for
> jdbc:mysql://localhost:3306/cloudbridge?autoReconnect=true
> 2. The version-1.5.6.aar service, which is not valid, caused
> java.lang.NoSuchMethodError:
> org.apache.ws.commons.schema.XmlSchemaForm.<init>(Ljava/lang/String;)V
>
> Both of these sound like classpath problems. But awsapi builds
> successfully, so shouldn't the MySQL driver and the proper form of the XML
> parsing library already be on the classpath?
>
> Thanks,
>
> Jeff

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.yadav@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design & Build<http://shapeblue.com/iaas-cloud-design-and-build//>
CSForge – rapid IaaS deployment framework<http://shapeblue.com/csforge/>
CloudStack Consulting<http://shapeblue.com/cloudstack-consultancy/>
CloudStack Software Engineering<http://shapeblue.com/cloudstack-software-engineering/>
CloudStack Infrastructure Support<http://shapeblue.com/cloudstack-infrastructure-support/>
CloudStack Bootcamp Training Courses<http://shapeblue.com/cloudstack-training/>

This email and any attachments to it may be confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Shape Blue Ltd or related companies. If you are not the intended recipient of this email, you must neither take any action based upon its contents, nor copy or show it to anyone. Please contact the sender if you believe you have received this email in error. Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue Services India LLP is a company incorporated in India and is operated under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is a registered trademark.