Hello,
I’m trying to put to work a simple first app using JClouds in a EJB project and
soft layer and I’m having the following problem:
Caused by: java.lang.IllegalArgumentException: provider softlayer not in
supported list: []
at
com.google.common.base.Preconditions.checkArgument(Preconditions.java:120)
[guava-15.0.jar:]
I’m using JBoss 7.1.3, which probably is a problem as I’ve seen that JClouds
1.7 dependencies for CDI 1.0 (I had to remove files javax.inject-1.jar and
jsr250-api-1.0.jar to make my project compile new CDI annotations like:
@Resource(lookup = "java:app/AppName”) which includes “lookup” property for
JavaEE 6.
Going back to my problem, I’ve created a new module in jboss for all JClouds
dependencies and referenced it in my EJB jar file. As that may be the problem
(class loading, …) I’ve also tried including dependencies in the WAR file
(WEB-INF/lib) and I don0t get previous problem, but another one:
00:55:19,209 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3)
MSC00001: Failed to start service
jboss.deployment.unit."321cloudWeb.war".WeldService:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."321cloudWeb.war".WeldService:
org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied
dependencies for type [Set<Service>] with qualifiers [@Default] at injection
point [[parameter 1] of [constructor] @Inject
com.google.common.util.concurrent.ServiceManager(Set<Service>)]
at org.jboss.as.weld.services.WeldService.start(WeldService.java:83)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
[rt.jar:1.7.0_45]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[rt.jar:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
Caused by: org.jboss.weld.exceptions.DeploymentException: WELD-001408
Unsatisfied dependencies for type [Set<Service>] with qualifiers [@Default] at
injection point [[parameter 1] of [constructor] @Inject
com.google.common.util.concurrent.ServiceManager(Set<Service>)]
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:311)
at
org.jboss.weld.bootstrap.Validator.validateInjectionPoint(Validator.java:280)
at org.jboss.weld.bootstrap.Validator.validateBean(Validator.java:143)
at org.jboss.weld.bootstrap.Validator.validateRIBean(Validator.java:163)
at org.jboss.weld.bootstrap.Validator.validateBeans(Validator.java:382)
at
org.jboss.weld.bootstrap.Validator.validateDeployment(Validator.java:367)
at
org.jboss.weld.bootstrap.WeldBootstrap.validateBeans(WeldBootstrap.java:380)
at org.jboss.as.weld.WeldContainer.start(WeldContainer.java:83)
at org.jboss.as.weld.services.WeldService.start(WeldService.java:76)
... 5 more
Again, googling around I’ve seen that it is a known bug of Guava 15 and CDI
1.0: https://code.google.com/p/guava-libraries/issues/detail?id=1527
It seems it will be solved in Guava 16, but download link for rc1 version seems
broken.
Any tip on how to solve this or it is going to be difficult to put JClouds to
work in JBoss 7.1? Ideally I prefer haven JClouds as a JBoss module as
redeployment will be much faster if I don’t have to include all references in
the jar/war file.
Thanks!
Ignacio de Córdoba
[email protected]
Red Skios S.A. - www.skios.es