Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Hasika Pamunuwa
issue with migration to liferay-faces-3.1.0
24 aprile 2012 18.27
Risposta

Hasika Pamunuwa

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 21 giugno 2010

Messaggi recenti

I just followed the instructions for migration to liferay-faces-3.1.0, but i'm seeing the following stacktrace for a very basic jsf2.0 portlet. any clues?

01:21:16,956 ERROR [LiferayFacesContext:61] Instance not initialized -- caller might be static
01:21:16,960 ERROR [LiferayLocalePhaseListener:87]
java.lang.NullPointerException
at com.liferay.faces.portal.lifecycle.LiferayLocalePhaseListener.setLocale(LiferayLocalePhaseListener.java:67)
at com.liferay.faces.portal.lifecycle.LiferayLocalePhaseListener.afterPhase(LiferayLocalePhaseListener.java:48)
at com.sun.faces.lifecycle.Phase.handleAfterPhase(Phase.java:189)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:107)
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(RestoreViewPhase.java:116)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:222)
at com.liferay.faces.bridge.BridgePhaseRenderImpl.execute(BridgePhaseRenderImpl.java:83)
at com.liferay.faces.bridge.BridgeImpl.doFacesRequest(BridgeImpl.java:85)
at javax.portlet.faces.GenericFacesPortlet.doBridgeDispatch(GenericFacesPortlet.java:672)
at javax.portlet.faces.GenericFacesPortlet.doRenderDispatchInternal(GenericFacesPortlet.java:638)
at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:274)
at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:245)
at javax.portlet.GenericPortlet.render(GenericPortlet.java:233)
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:93)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:637)
at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:722)
at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:426)
at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1206)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:4735)
at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1455)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:213)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:148)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processPortlet(RuntimePortletUtil.java:80)
at com.liferay.portlet.layoutconfiguration.util.velocity.PortletColumnLogic.processContent(PortletColumnLogic.java:145)
at com.liferay.portlet.layoutconfiguration.util.velocity.TemplateProcessor.processColumn(TemplateProcessor.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389)
at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378)
at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270)
at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:262)
at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:342)
at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:106)
at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
at org.apache.velocity.Template.merge(Template.java:328)
at org.apache.velocity.Template.merge(Template.java:235)
at org.apache.velocity.app.VelocityEngine.mergeTemplate(VelocityEngine.java:381)
at com.liferay.portal.velocity.VelocityEngineImpl.mergeTemplate(VelocityEngineImpl.java:184)
at com.liferay.portal.kernel.velocity.VelocityEngineUtil.mergeTemplate(VelocityEngineUtil.java:61)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:277)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:234)
at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:106)
at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:503)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:535)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:472)
at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:412)
at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:680)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:244)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:174)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:533)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:135)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:304)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:201)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:401)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:55)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:240)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:121)
at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:208)
at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:48)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:203)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:105)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:164)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:184)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:92)
at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:70)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:568)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:680)
Neil Griffin
RE: issue with migration to liferay-faces-3.1.0
25 aprile 2012 7.05
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2439

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

Which version of Mojarra or MyFaces are you using? Also, is this Tomcat or a different container/appserver?
Hasika Pamunuwa
RE: issue with migration to liferay-faces-3.1.0
25 aprile 2012 9.25
Risposta

Hasika Pamunuwa

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 21 giugno 2010

Messaggi recenti

Neil,

I'm on tomcat-6.0.18 with Liferay 6.1. I also noticed the following log message while starting up the application.

Apr 25, 2012 4:03:04 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: The ELResolvers for JSF were not registered with the JSP container.

The libs are -

jsf-api-2.1.3-b02.jar
jsf-impl-2.1.3-b02.jar
liferay-faces-alloy-3.1.0-BETA1.jar
liferay-faces-bridge-impl-3.1.0-BETA1.jar
liferay-faces-portal-3.1.0-BETA1.jar
portlet-bridge-api-2.0.0.jar
primefaces-3.2.jar
jboss-el-2.0.0.GA.jar
commons-fileupload-1.2.2.jar
commons-io-1.3.2.jar

The deployed web.xml looks like,

  1
  2<?xml version="1.0"?>
  3
  4<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
  5   
  6    <display-name>portlets</display-name>
  7   
  8     <context-param>
  9        <param-name>parentContextKey</param-name>
 10        <param-value>rootContext</param-value>
 11    </context-param>
 12   
 13    <context-param>
 14        <param-name>org.jboss.jbossfaces.WAR_BUNDLES_JSF_IMPL</param-name>
 15        <param-value>true</param-value>
 16    </context-param>
 17   
 18    <context-param>
 19        <param-name>com.sun.faces.expressionFactory</param-name>
 20        <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>
 21    </context-param>
 22   
 23    <context-param>
 24        <param-name>javax.faces.PROJECT_STAGE</param-name>
 25        <param-value>Development</param-value>
 26    </context-param>
 27   
 28    <filter>
 29        <filter-name>Invoker Filter - ERROR</filter-name>
 30        <filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
 31        <init-param>
 32            <param-name>dispatcher</param-name>
 33            <param-value>ERROR</param-value>
 34        </init-param>
 35    </filter>
 36   
 37    <filter>
 38        <filter-name>Invoker Filter - FORWARD</filter-name>
 39        <filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
 40        <init-param>
 41            <param-name>dispatcher</param-name>
 42            <param-value>FORWARD</param-value>
 43        </init-param>
 44    </filter>
 45   
 46    <filter>
 47        <filter-name>Invoker Filter - INCLUDE</filter-name>
 48        <filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
 49        <init-param>
 50            <param-name>dispatcher</param-name>
 51            <param-value>INCLUDE</param-value>
 52        </init-param>
 53    </filter>
 54   
 55    <filter>
 56        <filter-name>Invoker Filter - REQUEST</filter-name>
 57        <filter-class>com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter</filter-class>
 58        <init-param>
 59            <param-name>dispatcher</param-name>
 60            <param-value>REQUEST</param-value>
 61        </init-param>
 62    </filter>
 63   
 64    <filter-mapping>
 65        <filter-name>Invoker Filter - ERROR</filter-name>
 66        <url-pattern>/*</url-pattern>
 67        <dispatcher>ERROR</dispatcher>
 68    </filter-mapping>
 69   
 70    <filter-mapping>
 71        <filter-name>Invoker Filter - FORWARD</filter-name>
 72        <url-pattern>/*</url-pattern>
 73        <dispatcher>FORWARD</dispatcher>
 74    </filter-mapping>
 75   
 76    <filter-mapping>
 77        <filter-name>Invoker Filter - INCLUDE</filter-name>
 78        <url-pattern>/*</url-pattern>
 79        <dispatcher>INCLUDE</dispatcher>
 80    </filter-mapping>
 81   
 82    <filter-mapping>
 83        <filter-name>Invoker Filter - REQUEST</filter-name>
 84        <url-pattern>/*</url-pattern>
 85        <dispatcher>REQUEST</dispatcher>
 86    </filter-mapping>
 87   
 88    <listener>
 89        <listener-class>com.liferay.portal.kernel.servlet.SerializableSessionAttributeListener</listener-class>
 90    </listener>
 91   
 92    <listener>
 93        <listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
 94    </listener>
 95   
 96    <listener>
 97        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
 98    </listener>
 99   
100    
101    <servlet>
102        <servlet-name>Faces Servlet</servlet-name>
103        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
104        <load-on-startup>1</load-on-startup>
105    </servlet>
106       
107    <servlet>
108        <servlet-name>Set Portlet Class Loader Servlet</servlet-name>
109        <servlet-class>com.liferay.portal.kernel.servlet.SetPortletClassLoaderServlet</servlet-class>
110        <load-on-startup>0</load-on-startup>
111    </servlet>
112   
113    <servlet>
114        <servlet-name>testJsf</servlet-name>
115        <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
116        <init-param>
117            <param-name>portlet-class</param-name>
118            <param-value>javax.portlet.faces.GenericFacesPortlet</param-value>
119        </init-param>
120        <load-on-startup>1</load-on-startup>
121    </servlet>
122
123    <servlet-mapping>
124        <servlet-name>testJsf</servlet-name>
125        <url-pattern>/testJsf/*</url-pattern>
126    </servlet-mapping>
127       
128    <jsp-config>
129        <taglib>
130            <taglib-uri>http://liferay.com/tld/aui</taglib-uri>
131            <taglib-location>/WEB-INF/lib/aui.tld</taglib-location>
132        </taglib>
133        <taglib>
134            <taglib-uri>http://java.sun.com/portlet_2_0</taglib-uri>
135            <taglib-location>/WEB-INF/lib/liferay-portlet.tld</taglib-location>
136        </taglib>
137        <taglib>
138            <taglib-uri>http://liferay.com/tld/portlet</taglib-uri>
139            <taglib-location>/WEB-INF/lib/liferay-portlet-ext.tld</taglib-location>
140        </taglib>
141        <taglib>
142            <taglib-uri>http://liferay.com/tld/security</taglib-uri>
143            <taglib-location>/WEB-INF/lib/liferay-security.tld</taglib-location>
144        </taglib>
145        <taglib>
146            <taglib-uri>http://liferay.com/tld/theme</taglib-uri>
147            <taglib-location>/WEB-INF/lib/liferay-theme.tld</taglib-location>
148        </taglib>
149        <taglib>
150            <taglib-uri>http://liferay.com/tld/ui</taglib-uri>
151            <taglib-location>/WEB-INF/lib/liferay-ui.tld</taglib-location>
152        </taglib>
153        <taglib>
154            <taglib-uri>http://liferay.com/tld/util</taglib-uri>
155            <taglib-location>/WEB-INF/lib/liferay-util.tld</taglib-location>
156        </taglib>
157    </jsp-config>
158      
159</web-app>
Neil Griffin
RE: issue with migration to liferay-faces-3.1.0
25 aprile 2012 9.51
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2439

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

Does the 3.1.0-BETA1 version of the primefaces3-portlet demo work in your Liferay+Tomcat configuration?
Hasika Pamunuwa
RE: issue with migration to liferay-faces-3.1.0
26 aprile 2012 11.54
Risposta

Hasika Pamunuwa

Punteggio: New Member

Messaggi: 11

Data di Iscrizione: 21 giugno 2010

Messaggi recenti

Thanks Neil. The example portlet worked with tomcat-6.0.18.

This issue was actually a problem with my custom packaging structure, and it was related to class loading.

Thanks for the support.
Marcin Maciukiewicz
RE: issue with migration to liferay-faces-3.1.0
19 luglio 2012 3.19
Risposta

Marcin Maciukiewicz

Punteggio: New Member

Messaggi: 24

Data di Iscrizione: 18 luglio 2012

Messaggi recenti

Hi, do you remember what was wrong - I've same problem now which I solved once but realy don't remember how emoticon
Neil Griffin
RE: issue with migration to liferay-faces-3.1.0
19 luglio 2012 6.28
Risposta

Neil Griffin

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 2439

Data di Iscrizione: 26 luglio 2005

Messaggi recenti

See my post in the WAS thread.