WebSphere Portal - Omega Integration

Post Reply
ttecsa
Posts: 15
Joined: 17 Feb 2016, 19:37

19 Nov 2018, 19:15

I get below error when using omega theme or primefaces designer API generated theme.

Environment :
WebSphere Portal 9(WebSphere Application Server 9.0.0.9)
Primefaces 6.2

<context-param>
<param-name>primefaces.THEME</param-name>
<param-value>omega</param-value>
</context-param>

<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>

[19/11/18 12:05:02:184 EST] 00000223 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError CWSRV0293E: [Servlet Error]-[portal]: com.ibm.ws.webcontainer.webapp.WebAppErrorReport: CWSRV0295E: Error reported: 500
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:637)
at com.ibm.ws.webcontainer.webapp.WebAppDispatcherContext.sendError(WebAppDispatcherContext.java:667)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1346)
at com.ibm.ws.webcontainer.srt.SRTServletResponse.sendError(SRTServletResponse.java:1320)
at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:167)
at javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:167)
at com.ibm.wps.engine.extension.render.PortletFragmentRenderer.setError(PortletFragmentRenderer.java:121)
at com.ibm.wps.engine.extension.render.ResourceServingRenderer.render(ResourceServingRenderer.java:93)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:163)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:109)
at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:249)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:100)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.next(WPResourceRenderPhase.java:243)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:277)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:579)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:359)
at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:780)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:103)
at com.ibm.wps.engine.Servlet.service(Servlet.java:1279)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:110)
at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:197)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.engine.SupportedLocalesFilter.doFilter(SupportedLocalesFilter.java:112)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)

User avatar
aragorn
Posts: 3415
Joined: 29 Jun 2013, 12:38

20 Nov 2018, 09:53

I didn't see a problem related to PrimeFaces in logs. Could you please try it without omega layouts(with the only theme)? Theme just contains CSS style. Also, please see;
http://www-01.ibm.com/support/docview.w ... wg21461909


ttecsa
Posts: 15
Joined: 17 Feb 2016, 19:37

20 Nov 2018, 17:26

Thanks for your response.

my faces-config is already configured to below.

<view-handler>com.ibm.faces20.portlet.FaceletPortletViewHandler</view-handler>
<el-resolver>com.ibm.faces20.portlet.PortletELResolver</el-resolver>
<resource-handler>com.ibm.faces20.portlet.httpbridge.PortletResourceHandler</resource-handler>

We have been using primefaces with websphere portal successfully for 3 years now , currently we are using theme jar built using steps below and its working fine.
https://www.mkyong.com/jsf2/primefaces/ ... rimefaces/

we would like to change it to omega or primefaces theme designer API(subscribed ) , using either of them resulting in same error mentioned in this post.

How do I try omega layouts(with the only theme)?

20/11/18 10:21:25:243 EST] 00000209 ResourceServi W com.ibm.wps.engine.extension.render.ResourceServingRenderer render EJPEJ0004E: An unexpected exception occurred.
javax.portlet.PortletException: java.lang.NullPointerException
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:369)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:146)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.rrd.RRDServerPortletServletCollaborator.doDispatch(RRDServerPortletServletCollaborator.java:60)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.cache.CacheCollaborator.doDispatch(CacheCollaborator.java:74)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletServletCollaboratorImpl.doDispatch(PortletServletCollaboratorImpl.java:121)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:74)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.dispatch(PortletServlet.java:208)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.service(PortletServlet.java:165)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:78)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:1408)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:213)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:98)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
at com.ibm.ws.portletcontainer.cache.PortletInvokerCacheCollaborator.doServeResource(PortletInvokerCacheCollaborator.java:75)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:92)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invoke(PortletInvokerPerformanceCollaborator.java:313)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:101)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.invokePMI(PortletInvokerPerformanceCollaborator.java:163)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doInvoke(PortletInvokerPerformanceCollaborator.java:91)
at com.ibm.ws.portletcontainer.ext.PortletInvokerPerformanceCollaborator.doServeResource(PortletInvokerPerformanceCollaborator.java:349)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaboratorServeResource(PortletInvokerCollaboratorChainImpl.java:92)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerCollaboratorChainImpl.doCollaborator(PortletInvokerCollaboratorChainImpl.java:54)
at com.ibm.ws.portletcontainer.invoker.impl.PortletInvokerImpl.serveResource(PortletInvokerImpl.java:136)
at com.ibm.ws.portletcontainer.PortletContainerImpl.doServeResource(PortletContainerImpl.java:457)
at com.ibm.ws.portletcontainer.ResourcePortletContainerInvokerCollaboratorChainImpl.doCollaborator(ResourcePortletContainerInvokerCollaboratorChainImpl.java:62)
at com.ibm.ws.portletcontainer.cache.CacheInvokerCollaborator.doServeResource(CacheInvokerCollaborator.java:101)
at com.ibm.ws.portletcontainer.ResourcePortletContainerInvokerCollaboratorChainImpl.doCollaborator(ResourcePortletContainerInvokerCollaboratorChainImpl.java:53)
at com.ibm.ws.portletcontainer.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:428)
at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl$4.run(PortletInvokerImpl.java:185)
at java.security.AccessController.doPrivileged(AccessController.java:696)
at com.ibm.ws.portletcontainer.pcinvoker.PortletInvokerImpl.invokeServeResource(PortletInvokerImpl.java:181)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl$2.invoke(PortletInvokerImpl.java:107)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invoke(PortletInvokerImpl.java:182)
at com.ibm.wps.pe.pc.waspc.core.impl.PortletInvokerImpl.invokeServeResource(PortletInvokerImpl.java:104)
at com.ibm.wps.pe.pc.waspc.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:217)
at com.ibm.wps.pe.pc.PortletContainerImpl.servePortletResource(PortletContainerImpl.java:137)
at com.ibm.wps.engine.extension.render.ResourceServingRenderer.render(ResourceServingRenderer.java:128)
at com.ibm.wps.engine.extension.render.ResourceServingRenderer.render(ResourceServingRenderer.java:85)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:163)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.processRendering(WPResourceRenderPhase.java:109)
at com.ibm.wps.engine.phases.WPBaseRenderPhase.execute(WPBaseRenderPhase.java:249)
at com.ibm.wps.state.phases.AbstractRenderPhase.next(AbstractRenderPhase.java:106)
at com.ibm.wps.engine.phases.WPAbstractRenderPhase.next(WPAbstractRenderPhase.java:100)
at com.ibm.wps.engine.phases.WPResourceRenderPhase.next(WPResourceRenderPhase.java:243)
at com.ibm.wps.engine.Servlet.callPortal(Servlet.java:277)
at com.ibm.wps.engine.Servlet.doGet(Servlet.java:579)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at com.ibm.wps.engine.Servlet.doFilter(Servlet.java:359)
at com.ibm.wps.resolver.servlet.ContentHandlerCleanup.doFilter(ContentHandlerCleanup.java:780)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:103)
at com.ibm.wps.engine.Servlet.service(Servlet.java:1279)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1235)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:779)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:178)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.invokeTarget(WebAppFilterChain.java:143)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:96)
at com.ibm.wps.engine.ExtensionFilter$ExtendedFilterChain.doFilter(ExtensionFilter.java:110)
at com.ibm.wps.engine.ExtensionFilter.doFilter(ExtensionFilter.java:197)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.engine.SupportedLocalesFilter.doFilter(SupportedLocalesFilter.java:112)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.engine.ExtendedLocaleFilter.doFilter(ExtendedLocaleFilter.java:132)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.resolver.friendly.servlet.FriendlySelectionFilter.doFilter(FriendlySelectionFilter.java:191)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.project.filter.ProjectIdFilter.doFilterWithoutProjectID(ProjectIdFilter.java:405)
at com.ibm.wps.project.filter.ProjectIdFilter.doFilter(ProjectIdFilter.java:319)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.services.preview.PreviewFilterImpl.doFilter(PreviewFilterImpl.java:356)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.mappingurl.impl.URLAnalyzer.doFilter(URLAnalyzer.java:442)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.engine.VirtualPortalFilter.doFilter(VirtualPortalFilter.java:89)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.resolver.servlet.ContentHandlerGzip.internalDoFilter(ContentHandlerGzip.java:758)
at com.ibm.wps.resolver.servlet.ContentHandlerGzip.doFilter(ContentHandlerGzip.java:496)
at com.ibm.wps.resolver.servlet.AbstractFilter.doFilter(AbstractFilter.java:103)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.state.filter.StateCleanup.doFilter(StateCleanup.java:103)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.engine.ServletSubstitutionFilter.doFilter(ServletSubstitutionFilter.java:119)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.wps.devicesupport.WorklightFilter.doFilter(WorklightFilter.java:166)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:197)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:90)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:969)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.invokeFilters(WebAppFilterManager.java:1109)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:4217)
at com.ibm.ws.webcontainer.webapp.WebAppImpl.handleRequest(WebAppImpl.java:2208)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:304)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1030)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1817)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:382)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:532)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:318)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:88)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext$SSLReadCompletedCallback.complete(SSLReadServiceContext.java:1833)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1909)
Caused by: java.lang.NullPointerException
at com.ibm.ws.portletcontainer.core.impl.ResourceResponseImpl.setContentType(ResourceResponseImpl.java:32)
at javax.portlet.filter.ResourceResponseWrapper.setContentType(ResourceResponseWrapper.java:157)
at javax.portlet.filter.ResourceResponseWrapper.setContentType(ResourceResponseWrapper.java:157)
at com.ibm.faces20.portlet.httpbridge.BridgeMimeResponseWrapper.setContentType(BridgeMimeResponseWrapper.java:111)
at org.apache.myfaces.application.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:583)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:59)
at org.primefaces.application.resource.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:87)
at javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:59)

ttecsa
Posts: 15
Joined: 17 Feb 2016, 19:37

20 Nov 2018, 17:49

Ok on further debugging I think #resource in css file is causing the issue.

url("#{resource['primefaces-mytheme:fonts/open-sans-v13-latin-300.eot']}?#iefix") format("embedded-opentype"


https://localhost:10040/wps/portal/Home ... 0.woff2==/

Above url is causing the error

Any idea how to fix ?

User avatar
aragorn
Posts: 3415
Joined: 29 Jun 2013, 12:38

21 Nov 2018, 10:19

Does the project work after you remove the above line?

Also, please see this issue;
https://stackoverflow.com/questions/256 ... let-bridge

ttecsa
Posts: 15
Joined: 17 Feb 2016, 19:37

21 Nov 2018, 18:26

Yes it works after removing #resource. I have to see for a workaround.

User avatar
aragorn
Posts: 3415
Joined: 29 Jun 2013, 12:38

22 Nov 2018, 09:05

Did you remove all #resource or only above #resource line?

Post Reply

Return to “Omega - PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest