voyent
Showcase problem  XML
Forum Index -> General Help Go to Page: 1, 2, 3 Next 
Author Message
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


I have the ICEfaces 3.1.0 binary distribution.

I copy the following files to icefaces\lib\portlets\liferayfaces:

liferay-faces-bridge-api-3.1.0-ga1.jar
liferay-faces-bridge-impl-3.1.0-ga1.jar
liferay-faces-portal-3.1.0-ga1.jar
liferay-faces-util-3.1.0-ga1.jar

In icefaces\samples\showcase\showcase-portlet, I run:

ant -Dliferayfaces-true

I then copy the resultant WAR to the Liferay deploy directory, which in turn deploys the WAR to GlassFish 3.1.

Any portlet I try to add ends up with the following exception. What am I missing?

Code:
 INFO: 17:07:17,126 ERROR [ExternalContextImpl:57] Must first call setPortletContext(PortletContext)
 org.portletfaces.bridge.BridgeException: Must first call setPortletContext(PortletContext)
 	at org.portletfaces.bridge.BridgeFactoryFinder.getInstance(BridgeFactoryFinder.java:105)
 	at org.portletfaces.bridge.context.ExternalContextImpl.preInitializeObjects(ExternalContextImpl.java:465)
 	at org.portletfaces.bridge.context.ExternalContextImpl.<init>(ExternalContextImpl.java:147)
 	at org.portletfaces.bridge.context.ExternalContextFactoryImpl.getExternalContext(ExternalContextFactoryImpl.java:52)
 	at com.sun.faces.context.FacesContextFactoryImpl.getFacesContext(FacesContextFactoryImpl.java:93)
 	at org.icefaces.impl.context.IceFacesContextFactory.getFacesContext(IceFacesContextFactory.java:65)
 	at com.sun.faces.context.InjectionFacesContextFactory.getFacesContext(InjectionFacesContextFactory.java:121)
 	at com.liferay.faces.bridge.BridgePhaseBaseImpl.getFacesContext(BridgePhaseBaseImpl.java:350)
 	at com.liferay.faces.bridge.BridgePhaseBaseImpl.init(BridgePhaseBaseImpl.java:187)
 	at com.liferay.faces.bridge.BridgePhaseCompatImpl.init(BridgePhaseCompatImpl.java:46)
 	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:100)
 	at javax.portlet.faces.GenericFacesPortlet.doView(GenericFacesPortlet.java:255)
 	at javax.portlet.GenericPortlet.doDispatch(GenericPortlet.java:328)
 	at javax.portlet.faces.GenericFacesPortlet.doDispatch(GenericFacesPortlet.java:204)
 	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:111)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	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:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)
 	at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:534)
 	at com.liferay.portlet.InvokerPortletImpl.invokeRender(InvokerPortletImpl.java:607)
 	at com.liferay.portlet.InvokerPortletImpl.render(InvokerPortletImpl.java:359)
 	at org.apache.jsp.html.portal.render_005fportlet_jsp._jspService(render_005fportlet_jsp.java:1174)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)
 	at com.liferay.portal.servlet.DirectServletPathRegisterDispatcher.include(DirectServletPathRegisterDispatcher.java:53)
 	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.doDispatch(PACLRequestDispatcherWrapper.java:90)
 	at com.liferay.portal.servlet.PACLRequestDispatcherWrapper.include(PACLRequestDispatcherWrapper.java:54)
 	at com.liferay.portal.util.PortalImpl.renderPortlet(PortalImpl.java:5158)
 	at com.liferay.portal.util.PortalUtil.renderPortlet(PortalUtil.java:1569)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:165)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processPortlet(RuntimePortletImpl.java:97)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doProcessTemplate(RuntimePortletImpl.java:531)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.doDispatch(RuntimePortletImpl.java:394)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:228)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletImpl.processTemplate(RuntimePortletImpl.java:216)
 	at com.liferay.portlet.layoutconfiguration.util.RuntimePortletUtil.processTemplate(RuntimePortletUtil.java:113)
 	at org.apache.jsp.html.portal.layout.view.portlet_jsp._jspService(portlet_jsp.java:496)
 	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:411)
 	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:473)
 	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:377)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:626)
 	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:556)
 	at com.liferay.portal.action.LayoutAction.includeLayoutContent(LayoutAction.java:468)
 	at com.liferay.portal.action.LayoutAct
 INFO: ion.processLayout(LayoutAction.java:735)
 	at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
 	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:176)
 	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:668)
 	at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
 	at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:807)
 	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:671)
 	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:505)
 	at org.apache.catalina.core.ApplicationDispatcher.doDispatch(ApplicationDispatcher.java:476)
 	at org.apache.catalina.core.ApplicationDispatcher.dispatch(ApplicationDispatcher.java:355)
 	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:305)
 	at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 	at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1550)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:343)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:335)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
 	at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
 	at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.ser
 INFO: vlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
 	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:256)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:217)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:279)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
 	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
 	at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
 	at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
 	at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
 	at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:860)
 	at com.sun.grizzly.comet.CometEngine.executeServlet(CometEngine.java:459)
 	at com.sun.grizzly.comet.CometEngine.handle(CometEngine.java:316)
 	at com.sun.grizzly.comet.CometAsyncFilter.doFilter(CometAsyncFilter.java:87)
 	at com.sun.grizzly.arp.DefaultAsyncExecutor.invokeFilters(DefaultAsyncExecutor.java:171)
 	at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(DefaultAsyncExecutor.java:143)
 	at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:102)
 	at com.sun.grizzly.http.TaskBase.run(TaskBase.java:193)
 	at com.sun.grizzly.http.TaskBase.execute(TaskBase.java:175)
 	at com.sun.grizzly.arp.DefaultAsyncHandler.handle(DefaultAsyncHandler.java:145)
 	at com.sun.grizzly.arp.AsyncProtocolFilter.execute(AsyncProtocolFilter.java:210)
 	at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
 	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
 	at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
 	at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
 	at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
 	at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
 	at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
 	at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
 	at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
 	at java.lang.Thread.run(Thread.java:722)
 
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


I think you want:

ant -Dliferayfaces="true"

This should tell ant to use the files from portlets/liferayfaces rather than the files from portlets/portletfaces. From the stack trace:

"org.portletfaces.bridge.BridgeException"

it appears that the old PortletFaces bridge is still being used. Check to make sure that the deployed .war doesn't have any:

portletfaces-*.jar

And does have all the:

liferay-faces*.war

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


It seems that something in the deployment left the old libraries lying around (I previously deployed with the default Portlet Faces); the WAR didn't have them but the deployed directories did.

The WEB-INF/lib directory now has:

liferay-faces-bridge-api-3.1.0-ga1.jar
liferay-faces-bridge-impl-3.1.0-ga1.jar
liferay-faces-portal-3.1.0-ga1.jar
liferay-faces-util-3.1.0-ga1.jar

and portletfaces*.jar is nowhere to be found.

Now on to the next problem. I cleaned and redeployed the showcase and restarted GlassFish, but the portlets are not coming out the way I would expect. See the attached image.
[Thumb - Capture.PNG]
 Filename Capture.PNG [Disk] Download
 Description
 Filesize 25 Kbytes
 Downloaded:  348 time(s)

deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


Looks like it may not be loading a stylesheet or something. Does the browser's development console show a problem loading any resources?

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


No, everything is fine. I ran an HTTP traffic analyzer on the session and there are no errors.
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


We typically test with Liferay on Tomcat. You could try deploying the showcase-portlet example that comes with the ICEfaces distribution on that platform to get more information. If it works for you there, perhaps there's something with Glassfish.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


When I built it without defining the liferayfaces option, it displayed just fine. I have to do my testing on GlassFish as that's the deployment environment for my application; Tomcat won't help.

I'm deploying the showcase because I'm having some issues with my application and I'm trying to figure out the differences between my (not working) application and the (working, or perhaps not) showcase.

I have a simple setup in my application at the moment: a form with an ace:pushButton. The button renders correctly with dynamic data from the backing bean, but pressing it does nothing.

Anything else I can check in the showcase deployment?
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


The suggestion to use Tomcat was simply to see if there was a Glassfish specific problem involved - more data to help narrow things down.

Can you use Firebug or Chrome's Dev console to see if there's anything being logged on the client as far as files not being downloaded or JavaScript errors?

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


Here's what I saw:

(10) (red circle with '10' in it)
Uncaught ReferenceError: ice is not defined :8080/:1
(anonymous function)
deryk.sinotte


Joined: 26/Oct/2004 00:00:00
Messages: 1008
Offline


Sounds like "ice" functions are not available which sounds like the bridge.js file was not loaded. Can you check on the browser that a file called "bridge.js" was loaded successfully i.e. that there was a 200 response code and that the content wasn't empty.

Deryk Sinotte
Team Lead
ICEsoft Technologies, Inc.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


I don't see it under "scripts" in the Resources tab of the developer console. I'll do more detailed analysis later.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


There's nothing in my HTTP sniffer that indicates that bridge.js is being loaded or is being attempted to be loaded.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


The "Network" tab in Chrome doesn't show any request for bridge.js either.
kdean

Joined: 12/May/2009 00:00:00
Messages: 37
Offline


I found the following:

http://issues.liferay.com/browse/FACES-38
http://jira.icesoft.org/browse/ICE-6387

However, I already have this in web.xml:

Code:
 <context-param>
 	<param-name>org.icefaces.uniqueResourceURLs</param-name>
 	<param-value>false</param-value>
 </context-param>
 


so that's not the cause. What else can I look for?
dsinotte

Joined: 14/Nov/2006 00:00:00
Messages: 33
Offline


There should always be a request for jsf.js (as part of JSF) and a request for bridge.js (as part of ICEfaces) - both are fundamental pieces that are required for proper operation on the client side. The bridge.js resource should be load automatically.

Can you provide a list of the .jar files that are included in the deploy .war file?

What JSF or ICEfaces resources are being successfully loaded in the client?
 
Forum Index -> General Help Go to Page: 1, 2, 3 Next 
Go to:   
Powered by JForum 2.1.7ice © JForum Team