掲示板

Standard JSF Portlet problem

thumbnail
8年前 に aurelio vahí serrano によって更新されました。

Standard JSF Portlet problem

New Member 投稿: 19 参加年月日: 07/10/03 最新の投稿
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
7年前 に Kyle Joseph Stiemann によって更新されました。

RE: Standard JSF Portlet problem

Liferay Master 投稿: 760 参加年月日: 13/01/14 最新の投稿
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
7年前 に aurelio vahí serrano によって更新されました。

RE: Standard JSF Portlet problem

New Member 投稿: 19 参加年月日: 07/10/03 最新の投稿
Thank you very much, Kyle.
I will follow your advice.

Aurelio
thumbnail
7年前 に Arkaprovo Bhattacharjee によって更新されました。

RE: Standard JSF Portlet problem

Junior Member 投稿: 31 参加年月日: 16/02/07 最新の投稿
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.