Details

      Description

      Steps to reproduce:

      1. Clone the Liferay Faces Bridge Impl source:
         git clone https://github.com/liferay/liferay-faces-bridge-impl.git
        
      2. Check out the 4.1.2 tag:
        git checkout 4.1.2
        
      3. Build the JSF CDI Applicant portlet:
         cd liferay-faces-bridge-impl/demo/jsf-cdi-applicant-portlet &&  mvn clean package -P liferay,mojarra,tomcat
        
      4. Deploy the WAR to Liferay Portal 7.1 FP3:
         cp target/*.war $LIFERAY_HOME/deploy/.
        

      If the bug is fixed, the WAR will deploy without errors. The portlet will be available to add to a page and allow interaction without errors as well.

      If the bug still exists, the WAR will fail to deploy and the following error message will appear in the logs:

      
      2018-10-30 21:18:03.742 INFO  [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][BaseAutoDeployListener:43] Copying portlets for /home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/tomcat-9.0.6/temp/20181030211803733WEGMVFJM/com.liferay.faces.demo.jsf.cdi.applicant.portlet.war
      2018-10-30 21:18:03.796 INFO  [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][BaseDeployer:877]Deploying com.liferay.faces.demo.jsf.cdi.applicant.portlet.war
      2018-10-30 21:18:03.851 INFO  [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][BaseAutoDeployListener:50] Portlets for /home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/tomcat-9.0.6/temp/20181030211803733WEGMVFJM/com.liferay.faces.demo.jsf.cdi.applicant.portlet.war copied successfully
      2018-10-30 21:18:04.625 ERROR [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][org_apache_felix_fileinstall:97] Error while starting bundle: webbundle:/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war/com.liferay.faces.demo.jsf.flows.portlet.war?Bundle-SymbolicName=com.liferay.faces.demo.jsf.flows.portlet&Web-ContextPath=/com.liferay.faces.demo.jsf.flows.portlet&protocol=file
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.faces.demo.jsf.flows.portlet [957]_  Unresolved requirement: Import-Package: com.sun.enterprise; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.enterprise.deployment; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.jdmk.comm; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.engine; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.event; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.lang; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.util; resolution:="optional"_  Unresolved requirement: Import-Package: io.undertow.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: io.undertow.servlet.api; resolution:="optional"_  Unresolved requirement: Import-Package:javax.ejb; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation.groups; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model.property; resolution:="optional"_ Unresolved requirement: Import-Package: org.apache; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.axis.tools.ant.wsdl; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.catalina.core; resolution:="optional"_Unresolved requirement: Import-Package: org.apache.logging.log4j; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.logging.log4j.message; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.logging.log4j.spi; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.ss.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.tomcat; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.security; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.server; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.server.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.util.resource; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.jandex; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.logmanager; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.annotations; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.plus.annotation; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.security; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.resource; resolution:="optional"_  Unresolved requirement: Import-Package: sun.reflect; resolution:="optional"_  Unresolved requirement: Import-Package: com.liferay.portal.osgi.web.servlet.jsp.compiler; resolution:="optional"_  Unresolved requirement: Require-Capability: osgi.cdi.extension; filter:="(osgi.cdi.extension=com.liferay.bean.portlet.cdi.extension)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1258)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1218)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:507)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
      2018-10-30 21:18:04.628 ERROR [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][org_apache_felix_fileinstall:97] Error while starting bundle: webbundle:/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war/com.liferay.faces.demo.jsf.cdi.applicant.portlet.war?Bundle-SymbolicName=com.liferay.faces.demo.jsf.cdi.applicant.portlet&Web-ContextPath=/com.liferay.faces.demo.jsf.cdi.applicant.portlet&protocol=file
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.faces.demo.jsf.cdi.applicant.portlet [964]_  Unresolved requirement: Import-Package: com.sun.enterprise; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.enterprise.deployment; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.jdmk.comm; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.engine; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.event; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.lang; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.util; resolution:="optional"_  Unresolved requirement: Import-Package: javax.ejb; resolution:="optional"_ Unresolved requirement: Import-Package: javax.validation; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation.groups; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model.property; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.axis.tools.ant.wsdl; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.ss.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.weld.environment.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.annotations; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.plus.annotation; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: com.liferay.portal.osgi.web.servlet.jsp.compiler; resolution:="optional"_  Unresolved requirement: Require-Capability: osgi.cdi.extension; filter:="(osgi.cdi.extension=com.liferay.bean.portlet.cdi.extension)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1258)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startAllBundles(DirectoryWatcher.java:1218)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:507)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
      2018-10-30 21:18:04.632 ERROR [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][org_apache_felix_fileinstall:97] Error while starting bundle: webbundle:/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war/com.liferay.faces.demo.jsf.flows.portlet.war?Bundle-SymbolicName=com.liferay.faces.demo.jsf.flows.portlet&Web-ContextPath=/com.liferay.faces.demo.jsf.flows.portlet&protocol=file
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.faces.demo.jsf.flows.portlet [957]_  Unresolved requirement: Import-Package: com.sun.enterprise; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.enterprise.deployment; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.jdmk.comm; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.engine; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.event; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.lang; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.util; resolution:="optional"_  Unresolved requirement: Import-Package: io.undertow.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: io.undertow.servlet.api; resolution:="optional"_  Unresolved requirement: Import-Package:javax.ejb; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation.groups; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model.property; resolution:="optional"_ Unresolved requirement: Import-Package: org.apache; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.axis.tools.ant.wsdl; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.catalina.core; resolution:="optional"_Unresolved requirement: Import-Package: org.apache.logging.log4j; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.logging.log4j.message; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.logging.log4j.spi; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.ss.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.tomcat; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.security; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.server; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.server.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.util.resource; resolution:="optional"_  Unresolved requirement: Import-Package: org.eclipse.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.jandex; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.logmanager; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.annotations; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.plus.annotation; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.security; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.resource; resolution:="optional"_  Unresolved requirement: Import-Package: sun.reflect; resolution:="optional"_  Unresolved requirement: Import-Package: com.liferay.portal.osgi.web.servlet.jsp.compiler; resolution:="optional"_  Unresolved requirement: Require-Capability: osgi.cdi.extension; filter:="(osgi.cdi.extension=com.liferay.bean.portlet.cdi.extension)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1258)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
      2018-10-30 21:18:04.637 ERROR [fileinstall-/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war][org_apache_felix_fileinstall:97] Error while starting bundle: webbundle:/home/kylestiemann/Portals/liferay.com/liferay-dxp-7.1.10-ga1/osgi/war/com.liferay.faces.demo.jsf.cdi.applicant.portlet.war?Bundle-SymbolicName=com.liferay.faces.demo.jsf.cdi.applicant.portlet&Web-ContextPath=/com.liferay.faces.demo.jsf.cdi.applicant.portlet&protocol=file
      org.osgi.framework.BundleException: Could not resolve module: com.liferay.faces.demo.jsf.cdi.applicant.portlet [964]_  Unresolved requirement: Import-Package: com.sun.enterprise; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.enterprise.deployment; resolution:="optional"_  Unresolved requirement: Import-Package: com.sun.jdmk.comm; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.engine; resolution:="optional"_  Unresolved requirement: Import-Package: com.swabunga.spell.event; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.lang; resolution:="optional"_  Unresolved requirement: Import-Package: groovy.util; resolution:="optional"_  Unresolved requirement: Import-Package: javax.ejb; resolution:="optional"_ Unresolved requirement: Import-Package: javax.validation; resolution:="optional"_  Unresolved requirement: Import-Package: javax.validation.groups; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model; resolution:="optional"_  Unresolved requirement: Import-Package: net.fortuna.ical4j.model.property; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.axis.tools.ant.wsdl; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.hssf.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.apache.poi.ss.usermodel; resolution:="optional"_  Unresolved requirement: Import-Package: org.jboss.weld.environment.servlet; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.annotations; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.handler; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.plus.annotation; resolution:="optional"_  Unresolved requirement: Import-Package: org.mortbay.jetty.webapp; resolution:="optional"_  Unresolved requirement: Import-Package: com.liferay.portal.osgi.web.servlet.jsp.compiler; resolution:="optional"_  Unresolved requirement: Require-Capability: osgi.cdi.extension; filter:="(osgi.cdi.extension=com.liferay.bean.portlet.cdi.extension)"_ [Sanitized]
              at org.eclipse.osgi.container.Module.start(Module.java:444)
              at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:428)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1258)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
              at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
      

      Notes:

      I've also tried deploying without any Weld and CDI dependencies in the WAR's WEB-INF/lib folder
      (by removing the tomcat profile from the project's pom.xml) and adding -cdiannotations: to the liferay-plugin-package.properties file. With either or both of those changes, the above error still occurred.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  42 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP10
                  7.1.10.2 SP2
                  7.1.3 CE GA4
                  7.1.X
                  Master