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

DeploymentUnitProcessingException when deploying portlet with Liferay Faces Alloy dependency on JBoss AS

    Details

      Description

      The current mechanism for building the TLD file for Liferay Faces Alloy components is to use an XSL transformation that converts the aui.taglib.xml (Facelet version) to aui.tld (JSP version). Unfortunately this mechanism registers not only JSF component tags (which are JSP compatible) but also Facelet TagHandlers (which are not JSP compatible).

      If it is too much trouble to fix the XSL transformation (so that the aui:importConstants JSP tag entry doesn't get generated), then creating a no-arg constructor in ImportConstants.java should be a sufficient workaround.

      Steps to Reproduce:

      1) Build and deploy the jsf2-portlet on JBoss AS

      If the bug still exists, then the following output will appear in the server log:

      18:56:41,934 WARN  [org.jboss.as.ee] (MSC service thread 1-13) JBAS011006: Not installing optional component com.liferay.faces.alloy.taglib.ImportConstantsTagHandler due to exception: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS011054: Could not find default constructor for class com.liferay.faces.alloy.taglib.ImportConstantsTagHandler
             at org.jboss.as.ee.component.ComponentDescription$DefaultComponentConfigurator.configure(ComponentDescription.java:606)
             at org.jboss.as.ee.component.deployers.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:81)
             at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:113) [jboss-as-server-7.1.1.Final.jar:7.1.1.Final]
             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_21]
             at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_21]
             at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_21]

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                liferay-faces-3.0.3-legacy-ga4
                liferay-faces-3.0.3-ga4
                liferay-faces-3.1.3-ga4