Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67659

The module framework boot delegation permits com.sun.el.* which is incompatible with JSF portlets on WebLogic

    Details

      Description

      Problem Background

      LPS-65488 fixed a problem that manifested itself on WildFly. The solution was to make the com.sun.* wildcard to be less inclusive by changing it to com.sun.ccpp.*, com.sun.crypto.*, com.sun.el, com.sun.el.*.

      However, on WebLogic com.sun.el, com.sun.el.* must not be included in the value.

      Steps to Reproduce:

      1. Start WebLogic 12c R2

      2. Deploy the jsf-applicant-portlet (see attachment)

      Expected Results

      No errors appear in the log and the portlet can be added to a portal page.

      Actual Results

      The following appears in the WebLogic server log:

      <Aug 18, 2016 12:16:43 PM EDT> <Error> <osgi.logging.com_liferay_portal_osgi_web_wab_extender> <BEA-000000> <Catastrophic initialization failure! Shutting down comliferayfacesdemojsfapplicantportlet WAB due to: java.lang.ClassCastException: com.sun.el.ExpressionFactoryImpl cannot be cast to javax.el.ExpressionFactory 
      java.lang.RuntimeException: java.lang.ClassCastException: com.sun.el.ExpressionFactoryImpl cannot be cast to javax.el.ExpressionFactory
      	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
      	at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletContextListenerExceptionAdapter.contextInitialized(ServletContextListenerExceptionAdapter.java:51)
      	at sun.reflect.GeneratedMethodAccessor961.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	Truncated. see log file for complete stacktrace
      Caused By: java.lang.ClassCastException: com.sun.el.ExpressionFactoryImpl cannot be cast to javax.el.ExpressionFactory
      	at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:197)
      	at javax.el.ExpressionFactory.newInstance(ExpressionFactory.java:168)
      	at org.apache.jasper.runtime.JspApplicationContextImpl.getExpressionFactory(JspApplicationContextImpl.java:108)
      	at com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:725)
      	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:243)
      	Truncated. see log file for complete stacktrace
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juan.gonzalez Juan Gonzalez (Inactive)
                Reporter:
                neil.griffin Neil Griffin
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 15 weeks, 1 day ago

                  Packages

                  Version Package