2 Replies Latest reply on Jul 17, 2008 6:09 PM by Robert Morse

    PDF Generation Error under Weblogic 9.2

    Robert Morse Apprentice

      Hello,
      I have an application under Seam 2.0.2.SP1 that works perfectly under JBoss 4.2.2.GA.  I have it running under Weblogic 9.2 MP2 under Linux 5 Enterprise, with the exception of generating a PDF.  The segment of the PDF xhtml file that causes the problem follows (sorry I couldn't get it to format any better than this):


      <p:paragraph>#{messages['spia.label.PremiumPaymentDate']}:
             <p:text value="#{annuitant.firstPaymentDate}"><s:convertDateTime pattern="MM/dd/yyyy"/></p:text>
      </p:paragraph>


      The PDF xhtml is part of a page flow, although I don't think that matters.
      The exception is at the end of this post, but as I mentioned previously this works perfectly under JBoss.   Any ideas or suggestions?
      Thanks.


      Jul 16, 2008 8:16:29 PM com.sun.facelets.FaceletViewHandler handleRenderException
      SEVERE: Error Rendering View[/spiaApp.xhtml]
      com.sun.facelets.tag.TagException: /spiaApp.xhtml @71,105 <s:convertDateTime> Parent not an instance of ValueHolder: org.ajax4jsf.component.AjaxViewRoot@1beb0ea
           at com.sun.facelets.tag.jsf.ConvertHandler.apply(ConvertHandler.java:93)
           at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
           at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
           at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
           at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
           at com.sun.facelets.FaceletViewHandler.buildView(FaceletViewHandler.java:524)
           at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:567)
           at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
           at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:216)
           at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
           at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
           at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
           at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
           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:26)
           at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
           at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
           at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
           at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
           at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
           at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)

        • 1. Re: PDF Generation Error under Weblogic 9.2
          Robert Morse Apprentice

          Removing the <s:convertDateTime> gets rid of the exception, but the document gets created as just text with no formatting and certainly not a PDF.  It's as though WebLogic isn't finding the seam-pdf jar, but if that were the case, it would seem some kind of error would be generated.

          • 2. Re: PDF Generation Error under Weblogic 9.2
            Robert Morse Apprentice
            This gets fixed by copying the the Seam jars and jsf-api, jsf-impl, and jsf-facelets jars into the Weblogic domain's lib directory.  In my case, I'm just using a fresh install and running things in the examples domain.  So all of these jars are going to the ..\weblogic92\samples\domains\wl_server\lib directory.  I've tested this under Windoze and Linux.  Sorry for the noise in the previous posts.  The strange thing is all of these jars are in the WAR package.  Not sure why it's not finding them, but that's for a different day.