Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10798

org.jboss.weld.exceptions.DefinitionException on Wildfly 8.1 when deploying XWiki 6.1

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 6.1
    • None
    • Unknown

    Description

      When trying to deploy the current version (as of 2014-07-02) as a war file on JBoss I receive the following exception.

      Prior to that I already encountered missing dependencies, which I simply added to the war, plus a bug in servlets, which I already reported there and fixed locally.

      The Wildfly is a vanilla Wildfly version 8.1

      2014-08-06 14:12:12,507 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-7) MSC000001: Failed to start service jboss.deployment.unit."xwiki-enterprise-web-6.1.war".WeldStartService: org.jboss.msc.service.StartException in service jboss.deployment.unit."xwiki-enterprise-web-6.1.war".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_11]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]
      	at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]
      Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000071: Managed bean class org.xwiki.rendering.internal.macro.box.DefaultBoxMacro 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_11]
      	... 3 more
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            Thelonius Ole Hornischer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: