You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Jakub Bartecek (JIRA)" <ji...@apache.org> on 2015/02/02 17:11:35 UTC

[jira] [Closed] (JCLOUDS-817) Weld Exception, when deploying on Wildfly

     [ https://issues.apache.org/jira/browse/JCLOUDS-817?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakub Bartecek closed JCLOUDS-817.
----------------------------------
    Resolution: Fixed

It looks mostly like the CDI error. I've solved it with upgrading to Wildfly 8.2.0.Final. 

The issue and possible fixes are described in: http://weld.cdi-spec.org/documentation/#4

> Weld Exception, when deploying on Wildfly
> -----------------------------------------
>
>                 Key: JCLOUDS-817
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-817
>             Project: jclouds
>          Issue Type: Bug
>    Affects Versions: 1.8.1
>         Environment: AS: Wildfly 8.1.0.Final
> OS: Fedora 21
> JVM: OpenJDK 8
>            Reporter: Jakub Bartecek
>
> I added JClouds artifacts to my application and I'm not able to deploy apllication because of Weld exception caused by JClouds.
> Included artifacts:
>     <dependency>
>       <groupId>org.apache.jclouds.labs</groupId>
>       <artifactId>docker</artifactId>
>     </dependency>
>     
>     <dependency>
>       <groupId>org.apache.jclouds</groupId>
>       <artifactId>jclouds-compute</artifactId>
>     </dependency>
>     
>     <dependency>
>       <groupId>org.apache.jclouds.driver</groupId>
>       <artifactId>jclouds-sshj</artifactId>
>     </dependency>
>     
>     <dependency>
>       <groupId>org.apache.jclouds.driver</groupId>
>       <artifactId>jclouds-slf4j</artifactId>
>     </dependency>
>     
>     <dependency>
>       <groupId>org.apache.jclouds</groupId>
>       <artifactId>jclouds-core</artifactId>
>     </dependency>
>         
> Stacktrace:
> ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC000001: Failed to start service jboss.deployment.unit."ear-package.ear".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."ear-package.ear".WeldStartService: Failed to start service
>         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1904) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_25]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]
>         at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]
> Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000071: Managed bean class org.jclouds.http.functions.ParseXMLWithJAXB must be @Dependent
>         at org.jboss.weld.bean.ManagedBean.checkType(ManagedBean.java:198)
>         at org.jboss.weld.bean.AbstractBean.initializeAfterBeanDiscovery(AbstractBean.java:103)
>         at org.jboss.weld.bean.ManagedBean.initializeAfterBeanDiscovery(ManagedBean.java:113)
>         at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:129)
>         at org.jboss.weld.bootstrap.ConcurrentBeanDeployer$AfterBeanDiscoveryInitializerFactory.doWork(ConcurrentBeanDeployer.java:120)
>         at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:60)
>         at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:53)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_25]
>         ... 3 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)