Uploaded image for project: 'PUBLIC - Liferay Faces'
  1. PUBLIC - Liferay Faces
  2. FACES-3458

WeldException thrown by demo and TCK portlets during the Liferay 7.1/7.2 deploy process

    Details

      Description

      The following stacktrace occurs when a demo or TCK WAR module is deployed to Liferay Portal 7.1/7.2:

      2019-07-02 15:08:24.027 ERROR [Aries CCR Thread][ContainerActivator:93] CCR Failure in container activator open on org.apache.aries.cdi.container.internal.container.ContainerBootstrap@44291dc3 
      org.jboss.weld.exceptions.WeldException: com/liferay/faces/bridge/component/internal/FileEntryBridgeImpl
      	at org.jboss.weld.executor.AbstractExecutorServices.checkForExceptions(AbstractExecutorServices.java:82)
      	at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:59)
      	at org.jboss.weld.executor.AbstractExecutorServices.invokeAllAndCheckForExceptions(AbstractExecutorServices.java:67)
      	at org.jboss.weld.bootstrap.ConcurrentBeanDeployer.addClasses(ConcurrentBeanDeployer.java:52)
      	at org.jboss.weld.bootstrap.BeanDeployment.createClasses(BeanDeployment.java:198)
      	at org.jboss.weld.bootstrap.WeldStartup.startInitialization(WeldStartup.java:406)
      	at org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:79)
      	at org.apache.aries.cdi.container.internal.container.ContainerBootstrap.open(ContainerBootstrap.java:134)
      	at org.osgi.util.promise.DeferredPromiseImpl$Submit.run(DeferredPromiseImpl.java:658)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      This is caused by the presence of com.liferay.faces.bridge.impl.jar!META-INF/beans.xml which triggers the Liferay OSGI+CDI integration scanning.

      The fix is to add -cdiannotations: to src/main/webapp/WEB-INF/liferay-plugin-package.properties to all demo and TCK WAR modules, which will disable the scanning.

        Attachments

          Activity

            People

            • Assignee:
              neil.griffin Neil Griffin
              Reporter:
              neil.griffin Neil Griffin
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                facesbridge-tck-5.0.0
                bridge-impl-5.0.0
                facesbridge-tck-6.0.0
                bridge-impl-6.0.0