Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
bernd kopinits
JSF 2.2 with Liferay 6.2 on WebSphere 8.5.5.11
November 9, 2017 8:38 AM
Answer

bernd kopinits

Rank: New Member

Posts: 16

Join Date: December 7, 2014

Recent Posts

Hallo,
we're currently trying to move out project which includes many PrimeFaces 6.1 portlets from a Tomcat to WebSphere.

We followed this docu to install Liferay 6.2 EE SP17 on a WebSphere 8.5.5.11 which works fine.

Then we followed this docu which installs the applications after we drop them into the $LIFERAY_HOME/deploy folder. But when we try to start them, it fails because the faces context is null.

Then we found this docu. So we created a folder containing the files
  • jsf-api-2.2.14.jar (com.sun.faces - jsf-api - 2.2.14)
  • jsf-impl-2.2.14.jar (com.sun.faces - jsf-impl - 2.2.14)
  • liferay-faces-init-3.2.4-ga5.jar (com.liferay.faces - liferay-faces-init - 3.2.4-ga5)

and added them as a shared library in the WebSphere console. After changing the class loader order to parent last, setting the JSF implementation to SunRI1.2 and adding the shared library to the application, we were able to start the application and we were able to use these portlets in liferay.

This worked well for the first two war files we deployed, but not for the third one. We are using freemarker in some of those portlets and during the start we're getting java.lang.NoClassDefFoundError: freemarker.template.TemplateException. The freemarker dependency ha the scope provided in our project.

What's the best way to deal with this? Thank you, Bernd
Neil Griffin
RE: JSF 2.2 with Liferay 6.2 on WebSphere 8.5.5.11
November 9, 2017 8:59 AM
Answer

Neil Griffin

LIFERAY STAFF

Rank: Liferay Legend

Posts: 2511

Join Date: July 26, 2005

Recent Posts

Hi Bernd,

I'm happy to learn that the documentation helped you get your PrimeFaces 6.1 portlets working on Liferay 6.2 emoticon

I think though, that the java.lang.NoClassDefFoundError regarding Freemarker problem might be unrelated to JSF.

Would it be possible for you to create a very simple plain Java portlet (simply extends javax.portlet.GenericPortlet) without any JSF dependencies? Then see if you still get the NoClassDefFoundError when you try to work with Freemarker.

Kind Regards,

Neil

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!