-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: liferay-faces-2.1.3-ga4, liferay-faces-3.0.3-legacy-ga4, liferay-faces-3.0.3-ga4, liferay-faces-3.1.3-ga4
-
Component/s: ZZZ: Legacy - POM
-
Labels:None
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.