What causes the following exception: java.util.NoSuchElementException: key
[aws-ec2] not in list of providers or apis: {}. Or I guess the real
question is why is my provider and api list not populated with values/ how
does the list get populated?
jclouds uses Java's ServiceLoader mechanism to discover available
providers. If aws-ec2 isn't found, it probably means there's something
interesting going on with your classpath. Could you provide some more
detail on what your project's dependencies are?
Also, are you doing something like creating an uberjar somewhere? That
can interfere with the files ServiceLoader uses.
Regards
ap
[1] http://docs.oracle.com/javase/6/docs/api/java/util/ServiceLoader.html