Foren

Standard JSF Portlet problem

thumbnail
aurelio vahí serrano, geändert vor 8 Jahren.

Standard JSF Portlet problem

New Member Beiträge: 19 Beitrittsdatum: 03.10.07 Neueste Beiträge
Greetings again.
I recently set-GA1 Liferay 7.0.0 and Liferay ide eclipse.
When I create a JSF portlet standard and we display on the website I get an exception.

The libraries that are accessible supposedly needed in / lib. See attached image of the folder lib.

The class not found there in another jar?

The exception is:

12: 59: 30.946 ERROR [http-child-8080-exec-8] [render_portlet_jsp: 131] null
java.lang.NoClassDefFoundError: com / liferay / portal / model / Portlet
at com.liferay.faces.bridge.container.liferay.LiferayPortletRequest.<init>(LiferayPortletRequest.java:67)
at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:96)
at com.liferay.faces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:43)
at com.liferay.faces.bridge.BridgePhaseBaseImpl.init (BridgePhaseBaseImpl.java:172)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute (BridgePhaseRenderImpl.java:119)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute (BridgePhaseRenderImpl.java:85)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest (BridgeImpl.java:112)
at javax.portlet.faces.GenericFacesPortlet.doView (GenericFacesPortlet.java:255)
at javax.portlet.GenericPortlet.doDispatch (GenericPortlet.java:359)
at javax.portlet.faces.GenericFacesPortlet.doDispatch (GenericFacesPortlet.java:204)
at javax.portlet.GenericPortlet.render (GenericPortlet.java:262)
at com.liferay.portlet.FilterChainImpl.doFilter (FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter (ScriptDataPortletFilter.java:57)
at com.liferay.portlet.FilterChainImpl.doFilter (FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter (PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service (PortletServlet.java:105)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:729)
at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletExceptionAdapter.service(ServletExceptionAdapter.java:68)
at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter (FilterChainImpl.java:50)
Traductor de Google para empresas:Google Translator ToolkitTraductor de sitios webGlobal Market Finder
thumbnail
Kyle Joseph Stiemann, geändert vor 8 Jahren.

RE: Standard JSF Portlet problem

Liferay Master Beiträge: 760 Beitrittsdatum: 14.01.13 Neueste Beiträge
Hi Aurelio,
The war generated by Liferay IDE still contains bridge jars which are designed for Liferay 6.2. We are currently working on support for Liferay 7, but for now you can try the SNAPSHOT versions of jars. Please try the jsf-applicant-portlet SNAPSHOT in your environment and let us know how it works for you. See Neil's recent blog for more information about the SNAPSHOT artifacts.

- Kyle
thumbnail
aurelio vahí serrano, geändert vor 8 Jahren.

RE: Standard JSF Portlet problem

New Member Beiträge: 19 Beitrittsdatum: 03.10.07 Neueste Beiträge
Thank you very much, Kyle.
I will follow your advice.

Aurelio
thumbnail
Arkaprovo Bhattacharjee, geändert vor 8 Jahren.

RE: Standard JSF Portlet problem

Junior Member Beiträge: 31 Beitrittsdatum: 07.02.16 Neueste Beiträge
aurelio vahí serrano:
Greetings again.
I recently set-GA1 Liferay 7.0.0 and Liferay ide eclipse.
When I create a JSF portlet standard and we display on the website I get an exception.

The libraries that are accessible supposedly needed in / lib. See attached image of the folder lib.

The class not found there in another jar?

The exception is:

12: 59: 30.946 ERROR [http-child-8080-exec-8] [render_portlet_jsp: 131] null
java.lang.NoClassDefFoundError: com / liferay / portal / model / Portlet
at com.liferay.faces.bridge.container.liferay.LiferayPortletRequest.<init>(LiferayPortletRequest.java:67)
at com.liferay.faces.bridge.container.liferay.PortletContainerLiferayImpl.<init>(PortletContainerLiferayImpl.java:96)
at com.liferay.faces.bridge.container.PortletContainerFactoryImpl.getPortletContainer(PortletContainerFactoryImpl.java:43)
at com.liferay.faces.bridge.BridgePhaseBaseImpl.init (BridgePhaseBaseImpl.java:172)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute (BridgePhaseRenderImpl.java:119)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute (BridgePhaseRenderImpl.java:85)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest (BridgeImpl.java:112)
at javax.portlet.faces.GenericFacesPortlet.doView (GenericFacesPortlet.java:255)
at javax.portlet.GenericPortlet.doDispatch (GenericPortlet.java:359)
at javax.portlet.faces.GenericFacesPortlet.doDispatch (GenericFacesPortlet.java:204)
at javax.portlet.GenericPortlet.render (GenericPortlet.java:262)
at com.liferay.portlet.FilterChainImpl.doFilter (FilterChainImpl.java:103)
at com.liferay.portlet.ScriptDataPortletFilter.doFilter (ScriptDataPortletFilter.java:57)
at com.liferay.portlet.FilterChainImpl.doFilter (FilterChainImpl.java:100)
at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter (PortletFilterUtil.java:64)
at com.liferay.portal.kernel.servlet.PortletServlet.service (PortletServlet.java:105)
at javax.servlet.http.HttpServlet.service (HttpServlet.java:729)
at com.liferay.portal.osgi.web.wab.extender.internal.adapter.ServletExceptionAdapter.service(ServletExceptionAdapter.java:68)
at org.eclipse.equinox.http.servlet.internal.registration.EndpointRegistration.service(EndpointRegistration.java:153)
at org.eclipse.equinox.http.servlet.internal.servlet.FilterChainImpl.doFilter (FilterChainImpl.java:50)
Traductor de Google para empresas:Google Translator ToolkitTraductor de sitios webGlobal Market Finder

Hello, Please take a look here and check for the accepted (Marked)answer, hope it will help you.