My favorites | Sign in
Project Home Downloads Issues
Search
for
jcloudsAPI  
How to use, configure, and develop against the jclouds API
logging, Phase-Implementation
Updated Oct 19, 2011 by savu.andrei

Warning! This page is out of date. Check http://www.jclouds.org/documentation/reference/jclouds-api for an updated version.

Comment by hitsugay...@gmail.com, Mar 8, 2011

I'm having trouble using the Loggin section. I tried to test the Loggin section code and I had to make the dependency in my pom.xml file, that is jclouds-log4j

<dependency>

<groupId>org.jclouds</groupId> <artifactId>jclouds-log4j</artifactId> <version>1.0-beta-8</version>
</dependency>

It gives me the exception:

Exception in thread "main" java.lang.IllegalArgumentException?: please configure contextbuilder class for cloudservers-us

at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.jclouds.util.Utils.resolveContextBuilderClass(Utils.java:406) at org.jclouds.rest.RestContextFactory?.createContextSpec(RestContextFactory?.java:303) at org.jclouds.rest.RestContextFactory?.createContextBuilder(RestContextFactory?.java:234) at org.jclouds.rest.RestContextFactory?.createContextBuilder(RestContextFactory?.java:213) at org.jclouds.compute.ComputeServiceContextFactory?.createContext(ComputeServiceContextFactory?.java:110)

thanks in advance =)

Comment by amsellem...@gmail.com, Apr 4, 2011

I've faced the same problem with App Engine. It happened because the server still got the old JAR version (beta-08 in my case).

The problem is at line 406 of the class Utils, OK? But, in version 09, this class has no more than 333 lines. So, it seems to me this problem happens when version 08 and 09 are both in the classpath. Using solely 09 will fix this.


Sign in to add a comment
Powered by Google Project Hosting