You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jclouds.apache.org by Rahul Nema <ra...@in.ibm.com> on 2013/05/08 19:16:48 UTC
Guice creation errors: using ChefApiMetadata() while building Context
Hi,
Can you please help . I am trying to connect to a private chef server
using the jclouds API .George Moberly <ge...@opscode.com> already send
some communication yesterday.
So when I try to use new ChefApiMetadata() to get ChefContext it gives
the following error . I am using jClouds-scriptbuilder-1.6.0.jar which i
got from maven site.
############################### Exception caught
Guice creation errors:
1) Could not find a suitable constructor in
org.jclouds.scriptbuilder.statements.chef.InstallChefGems. Classes must
have either one (and only one) constructor annotated with @Inject or a
zero-argument constructor that is not private.
at org.jclouds.scriptbuilder.statements.chef.InstallChefGems.class(
InstallChefGems.java:38)
at org.jclouds.chef.config.ChefRestClientModule.configure(
ChefRestClientModule.java:74)
1 error
com.google.inject.CreationException: Guice creation errors:
1) Could not find a suitable constructor in
org.jclouds.scriptbuilder.statements.chef.InstallChefGems. Classes must
have either one (and only one) constructor annotated with @Inject or a
zero-argument constructor that is not private.
at org.jclouds.scriptbuilder.statements.chef.InstallChefGems.class(
InstallChefGems.java:38)
at org.jclouds.chef.config.ChefRestClientModule.configure(
ChefRestClientModule.java:74)
1 error
at
com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(
Errors.java:435)
at
com.google.inject.internal.InternalInjectorCreator.initializeStatically(
InternalInjectorCreator.java:154)
at com.google.inject.internal.InternalInjectorCreator.build(
InternalInjectorCreator.java:106)
at com.google.inject.Guice.createInjector(Guice.java:95)
at org.jclouds.ContextBuilder.buildInjector(
ContextBuilder.java:399)
at org.jclouds.ContextBuilder.buildInjector(
ContextBuilder.java:323)
at org.jclouds.ContextBuilder.build(ContextBuilder.java:611)
at org.jclouds.ContextBuilder.build(ContextBuilder.java:563)
at com.ibm.sco.PrivateBPMChefUtils.getContext(
PrivateBPMChefUtils.java:70)
at com.ibm.sco.PrivateBPMChefUtils.getCookbook(
PrivateBPMChefUtils.java:296)
at com.ibm.sco.App.main(App.java:18)
This code works well which use HostedChefApi .
With warm regards,
------------------------------------------------------------
Rahul Nema,
Tivoli Group
IBM-India Software Lab,Pune
Mo: +91-9860254300
------------------------------------------------------------