2 Replies Latest reply on Oct 15, 2010 2:47 PM by Raj S

    Isssues while deploying Richfaces 3.3.Final and apache 2.0.0 app in weblogic 9.2

    Raj S Newbie

      I have an app  which works fine in tomcat 6 but we are having issues when trying to deploy in weblogic 9.2 . Please help, ?

      We have recently upgraded the app to use richfaces 3.3.Final and Apache myfaces 2.0.0 libraries and have made the changes as suggested on the Richafces page. The application is coming up but am seeing issues when using rich:tabpanel that enclose other tabs. Its shows the first tab but throws exception when try to click on other tab, We are using defualt switchType for tab.

      .

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:h="http://java.sun.com/jsf/html"

      xmlns:t="http://myfaces.apache.org/tomahawk"

      xmlns:a4j="http://richfaces.org/a4j"

      xmlns:rich="http://richfaces.org/rich"

      xmlns:s="http://www.springframework.org/security/facelets/tags"

      xmlns:ui="http://java.sun.com/jsf/facelets"

      template="/pages/PageLayout.xhtml">

      <ui:define name="title">

      Test Title

      </ui:define>

      <ui:define name="content">

      <t:div id="shell" forceId="true">

      <h:form>

      <t:div id="bodyShell" forceId="true">

      <rich:spacer height="10px" />

      <rich:tabPanel selectedTab="#{searchBean.selectedTab}">

      <ui:include src="tabs/01.xhtml" />

      <ui:include src="tabs/02.xhtml" />

      <ui:include src="tabs/03.xhtml" />

      </rich:tabPanel>

      </t:div>

      </h:form>

      </t:div>

      </ui:define>

      </ui:composition>

       

       

      Tab 01.xhtml,02.xhtml and 03.xhtml are like this

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"

       

      xmlns:f="http://java.sun.com/jsf/core"

       

      xmlns:h="http://java.sun.com/jsf/html"

       

      xmlns:t="http://myfaces.apache.org/tomahawk"

       

      xmlns:a4j="http://richfaces.org/a4j"

       

      xmlns:rich="http://richfaces.org/rich"

       

      xmlns:s="http://www.springframework.org/security/facelets/tags"

       

      xmlns:ui="http://java.sun.com/jsf/facelets">

       

      <rich:tab label="01" reRender="true"

       

      action="#{managedBean.load01items}" name="01">

      </rich:tab >

       

       

       

       

       

       

       

      Here are exceptions I am seeing

       

      1)

      Root cause of ServletException.
      java.lang.NullPointerException
              at java.lang.StringBuffer.<init>(StringBuffer.java:104)
              at com.sun.facelets.FaceletViewHandler.getRenderedViewId(FaceletViewHandler.java:763)
              at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:505)
              at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
              at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
              at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
              at org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:125)
              at org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:207)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
              at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
              at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
              at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
              at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
              at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:303)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
              at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
              at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:302)
              at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
              at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:110)
              at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:85)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:96)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:80)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:120)
      at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:56)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:37)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:190)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:107)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:109)
              at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
              at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:151)
              at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:238)
              at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:168)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
              at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
              at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:43)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3251)
              at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
              at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
              at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
              at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
              at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
              at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
              at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)

       

      2)

      ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)']Exception:
      javax.servlet.ServletException
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:221)
      weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:301)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:206)
      org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
      org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:388)
      org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:515)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:344)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:110)
      org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:98)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:95)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:79)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:120)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:55)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:36)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:188)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:106)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:80)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.session.ConcurrentSessionFilter.doFilter(ConcurrentSessionFilter.java:108)
      org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:356)
      org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:150)
      org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
      org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:26)
      weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
      weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3251)
      weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
      weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
      weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
      weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
      Exception in the filter chain

       

      3)

       

      ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)']Exception:
      java.lang.NullPointerException
      java.lang.StringBuffer.<init>(StringBuffer.java:104)
      com.sun.facelets.FaceletViewHandler.getRenderedViewId(FaceletViewHandler.java:763)
      com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:505)
      com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
      org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:101)
      org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
      org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:125)
      org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:207)
      javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
      weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
      weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
      weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
      weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:176)
      weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:530)
      weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:266)
      weblogic.servlet.internal.ForwardAction.run(ForwardAction.java:22)
      weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
      weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:161)
      weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2070)
      weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1923)
      weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
      weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
      Error Rendering View[null]