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

The jsp-api.jar transitive dependency is not excluded from the icepush.jar dependency

    Details

      Description

      This problem manifested itself on Liferay Portal 6.2 + JSF 2.2 with the following exception occuring when trying to run the FACES-1427 tester portlet:

      21:32:38,803 ERROR [InputEditorInternalRenderer:163] Unable to compile class for JSP: 
      
      An error occurred at line: [39] in the generated java file: [/Users/ngriffin/Portals/liferay.com/liferay-portal-6.2.0-ga1-jsf-2.2/tomcat-7.0.42/work/Catalina/localhost/FACES-1427-portlet/org/apache/jsp/resources/liferay_002dui/jsp/input_002deditor_jsp.java]
      The method getJspApplicationContext(ServletContext) is undefined for the type JspFactory
      
      Stacktrace:
      ava:460)
      	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.doDispatch(RuntimePageImpl.java:284)
      	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processTemplate(RuntimePageImpl.java:113)
      	at com.liferay.portal.layoutconfiguration.util.RuntimePageImpl.processTemplate(RuntimePageImpl.java:124)
      	at com.liferay.portal.layoutconfiguration.util.RuntimePageUtil.processTemplate(RuntimePageUtil.java:69)
      	at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:553)
      

      It turns out that BalusC posted a solution on stackoverflow that pointed out the problem: The icepush.jar dependency has a transitive <scope>compile</scope> dependency on the jsp-api-2.0.jar dependency which needs to be excluded.

        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
                liferay-faces-3.0.4-legacy-ga5
                liferay-faces-3.0.4-ga5
                liferay-faces-3.1.4-ga5
                liferay-faces-3.2.4-ga5
                liferay-faces-4.2.5-ga6