Hi Ignasi,
Yes, Please see attached.
-Pankaj
On Mon, Apr 21, 2014 at 1:16 PM, Ignasi Barrera <[email protected]>wrote:
> Are you using Maven? If so, could you paste the output of running a
> "mvn dependency:tree"?
>
> On 21 April 2014 22:04, Pankaj Kharode <[email protected]> wrote:
> > Doesn't look like I've other entries linked (some-how my work space may
> have
> > conflicts as things worked in a fresh project)
> >
> > <classpathentry kind="lib"
> > path="/src/target/lib/guice-assistedinject-3.0.jar"/>
> > <classpathentry kind="lib"
> path="/src/target/lib/gson-2.2.4.jar"/>
> > <classpathentry kind="lib" path="/src/target/lib/guava-15.0.jar"/>
> > <classpathentry kind="lib" path="/src/target/lib/guice-3.0.jar"/>
> >
> >
> >
> > Thanks,
> > Pankaj
> >
> >
> > On Mon, Apr 21, 2014 at 12:43 PM, Ignasi Barrera <[email protected]>
> wrote:
> >>
> >> Not AFAIK. Could you check your app's classpath and see which exact
> >> version of guice and gson you have there?
> >>
> >> Guice should be 3.0 and Gson should be 2.2.4. Make sure you have those
> >> (and only those) versions of the libs in the classpath.
> >>
> >> I.
> >>
> >> Has anyone come across this issue ?
> >>
> >>
> >> ComputeServiceContext context = ContextBuilder.newBuilder(provider)
> >> .endpoint(endpoint)
> >> .credentials(identity, password)
> >> .modules(modules)
> >> .buildView(ComputeServiceContext.class);
> >> compute = context.getComputeService(); TemplateBuilder tbuilder =
> >> compute.templateBuilder(); images = compute.listImages();
> >>
> >>
> >>
> >> Exception in thread "main" java.lang.IncompatibleClassChangeError: class
> >> org.jclouds.json.config.GsonModule$DateAdapter has interface
> >> com.google.gson.TypeAdapter as super class
> >> at java.lang.ClassLoader.defineClass1(Native Method)
> >> at java.lang.ClassLoader.defineClass(Unknown Source)
> >> at java.security.SecureClassLoader.defineClass(Unknown Source)
> >> at java.net.URLClassLoader.defineClass(Unknown Source)
> >> at java.net.URLClassLoader.access$100(Unknown Source)
> >> at java.net.URLClassLoader$1.run(Unknown Source)
> >> at java.net.URLClassLoader$1.run(Unknown Source)
> >> at java.security.AccessController.doPrivileged(Native Method)
> >> at java.net.URLClassLoader.findClass(Unknown Source)
> >> at java.lang.ClassLoader.loadClass(Unknown Source)
> >> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> >> at java.lang.ClassLoader.loadClass(Unknown Source)
> >> at
> >>
> org.jclouds.openstack.nova.v2_0.config.NovaParserModule.configure(NovaParserModule.java:71)
> >> at com.google.inject.AbstractModule.configure(AbstractModule.java:59)
> >> at
> >>
> com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
> >> at com.google.inject.spi.Elements.getElements(Elements.java:101)
> >> at
> >>
> com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:133)
> >> at
> >>
> com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
> >> at com.google.inject.Guice.createInjector(Guice.java:95)
> >> at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:403)
> >> at org.jclouds.ContextBuilder.buildInjector(ContextBuilder.java:327)
> >> at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:618)
> >> at org.jclouds.ContextBuilder.buildView(ContextBuilder.java:598)
> >>
> >> --
> >>
> >> Regards,
> >> Pankaj
> >
> >
> >
> >
> > --
> >
> > Regards,
> > Pankaj
>
--
Regards,
Pankaj
com.mycompany.app:my-app:jar:1.0-SNAPSHOT
\- org.apache.jclouds:jclouds-all:jar:1.7.1:compile
+- org.apache.jclouds.api:rackspace-cloudidentity:jar:1.7.1:compile
| \- org.apache.jclouds.api:openstack-keystone:jar:1.7.1:compile
+- org.apache.jclouds.api:openstack-cinder:jar:1.7.1:compile
| \- org.apache.jclouds:jclouds-core:jar:1.7.1:compile
| +- javax.ws.rs:jsr311-api:jar:1.1.1:compile
| +- com.google.inject.extensions:guice-assistedinject:jar:3.0:compile
| +- com.google.inject:guice:jar:3.0:compile
| | \- aopalliance:aopalliance:jar:1.0:compile
| +- org.99soft.guice:rocoto:jar:6.2:compile
| +- javax.inject:javax.inject:jar:1:compile
| +- javax.annotation:jsr250-api:jar:1.0:compile
| +- com.google.code.gson:gson:jar:2.2.4:compile
| \- com.google.guava:guava:jar:15.0:compile
+- org.apache.jclouds.api:rackspace-clouddns:jar:1.7.1:compile
+- org.apache.jclouds.provider:aws-cloudwatch:jar:1.7.1:compile
| \- org.apache.jclouds.api:cloudwatch:jar:1.7.1:compile
+-
org.apache.jclouds.provider:rackspace-cloudblockstorage-us:jar:1.7.1:compile
+-
org.apache.jclouds.provider:rackspace-cloudblockstorage-uk:jar:1.7.1:compile
+- org.apache.jclouds.provider:rackspace-clouddns-us:jar:1.7.1:compile
+- org.apache.jclouds.provider:rackspace-clouddns-uk:jar:1.7.1:compile
+- org.apache.jclouds.provider:rackspace-clouddatabases-us:jar:1.7.1:compile
| \- org.apache.jclouds.api:openstack-trove:jar:1.7.1:compile
+- org.apache.jclouds.provider:rackspace-clouddatabases-uk:jar:1.7.1:compile
+- org.apache.jclouds.provider:aws-sqs:jar:1.7.1:compile
| \- org.apache.jclouds.api:sqs:jar:1.7.1:compile
+- org.apache.jclouds.provider:aws-sts:jar:1.7.1:compile
| \- org.apache.jclouds.api:sts:jar:1.7.1:compile
+- org.apache.jclouds.provider:aws-route53:jar:1.7.1:compile
| \- org.apache.jclouds.api:route53:jar:1.7.1:compile
+- org.apache.jclouds.provider:ultradns-ws:jar:1.7.1:compile
+- org.apache.jclouds.provider:dynect:jar:1.7.1:compile
+- org.apache.jclouds:jclouds-allloadbalancer:jar:1.7.1:compile
| +-
org.apache.jclouds.provider:rackspace-cloudloadbalancers-uk:jar:1.7.1:compile
| | +- org.apache.jclouds:jclouds-loadbalancer:jar:1.7.1:compile
| | \-
org.apache.jclouds.api:rackspace-cloudloadbalancers:jar:1.7.1:compile
| \-
org.apache.jclouds.provider:rackspace-cloudloadbalancers-us:jar:1.7.1:compile
+- org.apache.jclouds:jclouds-allcompute:jar:1.7.1:compile
| +-
org.apache.jclouds.provider:greenhousedata-element-vcloud:jar:1.7.1:compile
| +- org.apache.jclouds.provider:aws-ec2:jar:1.7.1:compile
| +- org.apache.jclouds.api:openstack-nova:jar:1.7.1:compile
| | \- org.apache.jclouds:jclouds-compute:jar:1.7.1:compile
| | \- org.apache.jclouds:jclouds-scriptbuilder:jar:1.7.1:compile
| +- org.apache.jclouds.api:openstack-nova-ec2:jar:1.7.1:compile
| +- org.apache.jclouds.api:byon:jar:1.7.1:compile
| | \- org.yaml:snakeyaml:jar:1.11:compile
| +- org.apache.jclouds.api:ec2:jar:1.7.1:compile
| +- org.apache.jclouds.provider:cloudservers-us:jar:1.7.1:compile
| | \- org.apache.jclouds.common:openstack-common:jar:1.7.1:compile
| +- org.apache.jclouds.provider:cloudservers-uk:jar:1.7.1:compile
| +- org.apache.jclouds.api:cloudservers:jar:1.7.1:compile
| +- org.apache.jclouds.api:vcloud:jar:1.7.1:compile
| | \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile
| +- org.apache.jclouds.api:cloudsigma:jar:1.7.1:compile
| +- org.apache.jclouds.provider:bluelock-vcloud-zone01:jar:1.7.1:compile
| +- org.apache.jclouds.provider:gogrid:jar:1.7.1:compile
| +- org.apache.jclouds.api:elasticstack:jar:1.7.1:compile
| +- org.apache.jclouds.provider:elastichosts-lon-p:jar:1.7.1:compile
| +- org.apache.jclouds.provider:elastichosts-sat-p:jar:1.7.1:compile
| +- org.apache.jclouds.provider:elastichosts-lon-b:jar:1.7.1:compile
| +- org.apache.jclouds.provider:openhosting-east1:jar:1.7.1:compile
| +- org.apache.jclouds.provider:serverlove-z1-man:jar:1.7.1:compile
| +- org.apache.jclouds.provider:skalicloud-sdg-my:jar:1.7.1:compile
| +- org.apache.jclouds.provider:cloudsigma-zrh:jar:1.7.1:compile
| +- org.apache.jclouds.provider:cloudsigma-lvs:jar:1.7.1:compile
| +- org.apache.jclouds.provider:go2cloud-jhb1:jar:1.7.1:compile
| +- org.apache.jclouds.provider:softlayer:jar:1.7.1:compile
| +- org.apache.jclouds.api:cloudstack:jar:1.7.1:compile
| +- org.apache.jclouds.provider:ninefold-compute:jar:1.7.1:compile
| +- org.apache.jclouds.provider:hpcloud-compute:jar:1.7.1:compile
| +- org.apache.jclouds.provider:rackspace-cloudservers-us:jar:1.7.1:compile
| \- org.apache.jclouds.provider:rackspace-cloudservers-uk:jar:1.7.1:compile
\- org.apache.jclouds:jclouds-allblobstore:jar:1.7.1:compile
+- org.apache.jclouds.api:s3:jar:1.7.1:compile
| \- org.apache.jclouds:jclouds-blobstore:jar:1.7.1:compile
+- org.apache.jclouds.provider:aws-s3:jar:1.7.1:compile
+- org.apache.jclouds.provider:ninefold-storage:jar:1.7.1:compile
+- org.apache.jclouds.provider:cloudonestorage:jar:1.7.1:compile
+- org.apache.jclouds.provider:azureblob:jar:1.7.1:compile
| \- org.apache.jclouds.common:azure-common:jar:1.7.1:compile
+- org.apache.jclouds.api:atmos:jar:1.7.1:compile
+- org.apache.jclouds.api:swift:jar:1.7.1:compile
+- org.apache.jclouds.api:cloudfiles:jar:1.7.1:compile
+- org.apache.jclouds.provider:cloudfiles-us:jar:1.7.1:compile
+- org.apache.jclouds.provider:cloudfiles-uk:jar:1.7.1:compile
+- org.apache.jclouds.api:filesystem:jar:1.7.1:compile
\- org.apache.jclouds.provider:hpcloud-objectstorage:jar:1.7.1:compile