xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: Empty PDF on FOP Servlet
Date Tue, 24 Mar 2009 08:14:24 GMT
What 1.5? Sun, IBM, another manufacturer? That's what I was getting at:
a potential class library incompatibility of the JVM in use. If it's not
a Sun VM, try with a Sun VM to see if the problem disappears.

On 23.03.2009 19:15:37 Sam Fuqua wrote:
> The Jazz server uses 1.5.  I've added the fop.jar and all the .jars in 'lib'
> to my referenced libraries list in my build path as well as adding them to
> the runtime and build in my MANIFEST file.  Are there any additional
> suggestions that anyone can give for setting up the classpath?
> 
> On Sun, Mar 22, 2009 at 8:03 AM, Jeremias Maerki <dev@jeremias-maerki.ch>wrote:
> 
> > No problem here with 0.95 and FOP Trunk. Have you tried running the
> > whole thing outside the Jazz server? What JVM is running the Jazz server?
> > Maybe there's an incompatibility there.
> >
> > On 20.03.2009 16:33:39 Sam Fuqua wrote:
> > > I'm using the 0.95 binary.
> > >
> > > On Fri, Mar 20, 2009 at 11:26 AM, Georg Datterl <georg.datterl@geneon.de
> > >wrote:
> > >
> > > > Hi Sam,
> > > >
> > > > I get a pink page and some text in Fop trunk, fop 0.93 and fop 0.20.5.
> > > > What's your version?
> > > >
> > > > Regards,
> > > >
> > > > Georg Datterl
> > > >
> > > > ------ Kontakt ------
> > > >
> > > > Georg Datterl
> > > >
> > > > Geneon media solutions gmbh
> > > > Gutenstetter Straße 8a
> > > > 90449 Nürnberg
> > > >
> > > > HRB Nürnberg: 17193
> > > > Geschäftsführer: Yong-Harry Steiert
> > > >
> > > > Tel.: 0911/36 78 88 - 26
> > > > Fax: 0911/36 78 88 - 20
> > > >
> > > > www.geneon.de
> > > >
> > > > Weitere Mitglieder der Willmy MediaGroup:
> > > >
> > > > IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> > > > Willmy PrintMedia GmbH:                            www.willmy.de
> > > > Willmy Consult & Content GmbH:                 www.willmycc.de
> > > > -----Ursprüngliche Nachricht-----
> > > > Von: Sam Fuqua [mailto:samfuqua@gmail.com]
> > > > Gesendet: Freitag, 20. März 2009 16:01
> > > > An: fop-users@xmlgraphics.apache.org
> > > > Betreff: Re: Empty PDF on FOP Servlet
> > > >
> > > > Here's the FO as captured from the server during execution:
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:el="
> > > > http://purl.org/dc/elements/1.1/" xmlns:step="
> > > > http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/" xmlns:testscript="
> > > > http://jazz.net/xmlns/alm/qm/v0.1/">
> > > > <fo:layout-master-set>
> > > > <fo:simple-page-master master-name="PageMaster" margin-bottom="10mm"
> > > > margin-right="20mm" margin-left="20mm" margin-top="10mm"
> > page-width="216mm"
> > > > page-height="279mm">  <fo:region-body margin-bottom="20mm"
> > > > margin-right="10mm" margin-left="10mm" margin-top="20mm"
> > > > background-color="#EFAFAF"/> </fo:simple-page-master>
> > > >  </fo:layout-master-set>
> > > >     <fo:page-sequence master-reference="PageMaster"
> > > > initial-page-number="1">
> > > >      <fo:flow flow-name="xsl-region-body">
> > > >        <fo:block>
> > > >        <fo:block>Testscript</fo:block>
> > > >        <fo:block>Identifier:
> > > >
> > https://localhost:9443/jazz/secure/service/com.ibm.rqm.integration.service.IIntegrationService/testscript/urn:com.ibm.rqm:testscript:1
> > > > </fo:block>
> > > >      <fo:block>Description: Description</fo:block>
> > > >     <fo:block>Title: Title</fo:block>
> > > >    </fo:block>
> > > >   </fo:flow>
> > > >  </fo:page-sequence>
> > > > </fo:root>
> > > >
> > > > Sorry if the indentation is not to your liking.  It was rendered as a
> > > > String and I've formatted it myself here.  This FO was successfully
> > used to
> > > > create an RTF, but creates a blank PDF.
> > > >
> > > >
> > > > On Fri, Mar 20, 2009 at 10:49 AM, Georg Datterl <
> > georg.datterl@geneon.de>
> > > > wrote:
> > > >
> > > >
> > > >        Hi Sam,
> > > >
> > > >        Shorten the FO file to the minimum size so it still contains a
> > text
> > > > block which should be shown and post the FO - File. Maybe then somebody
> > will
> > > > be able to help.
> > > >
> > > >        Regards,
> > > >
> > > >        Georg Datterl
> > > >
> > > >        ------ Kontakt ------
> > > >
> > > >        Georg Datterl
> > > >
> > > >        Geneon media solutions gmbh
> > > >        Gutenstetter Straße 8a
> > > >        90449 Nürnberg
> > > >
> > > >        HRB Nürnberg: 17193
> > > >        Geschäftsführer: Yong-Harry Steiert
> > > >
> > > >        Tel.: 0911/36 78 88 - 26
> > > >        Fax: 0911/36 78 88 - 20
> > > >
> > > >        www.geneon.de
> > > >
> > > >        Weitere Mitglieder der Willmy MediaGroup:
> > > >
> > > >        IRS Integrated Realization Services GmbH:    www.irs-nbg.de
> > > >        Willmy PrintMedia GmbH:
> > www.willmy.de
> > > >        Willmy Consult & Content GmbH:                 www.willmycc.de
> > > >        -----Ursprüngliche Nachricht-----
> > > >        Von: Sam Fuqua [mailto:samfuqua@gmail.com]
> > > >        Gesendet: Freitag, 20. März 2009 15:39
> > > >        An: fop-users@xmlgraphics.apache.org
> > > >        Betreff: Empty PDF on FOP Servlet
> > > >
> > > >
> > > >        I have a server that accepts an XML posted to it.  The Server
> > then
> > > > does an XSLT on the data using a server-side XSL file.  The XSLT works
> > from
> > > > the command line, and the server performs and proper transform to FO,
> > but
> > > > fails to render a proper PDF.  I have intercepted the FO and put it
> > into the
> > > > command line, where it creates the expected PDF, but it creates a
> > seemingly
> > > > empty PDF.  I have been able to get it to properly create an RFT file,
> > but I
> > > > do not want RTF, I want PDF.  Has anyone had this problem?
> > > >        Here's my XSL:
> > > >
> > > >        <?xml version="1.0"?>
> > > >        <xsl:stylesheet version="1.0"
> > > >         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > > >         xmlns:fo="http://www.w3.org/1999/XSL/Format"
> > > >         xmlns:testscript="http://jazz.net/xmlns/alm/qm/v0.1/"
> > > >         xmlns:step="http://jazz.net/xmlns/alm/qm/v0.1/testscript/v0.1/
> > "
> > > >         xmlns:el="http://purl.org/dc/elements/1.1/">
> > > >
> > > >           <xsl:template match="/">
> > > >             <fo:root>
> > > >               <fo:layout-master-set>
> > > >           <fo:simple-page-master page-height="279mm" page-width="216mm"
> > > > margin-top="10mm" margin-left="20mm" margin-right="20mm"
> > > > margin-bottom="10mm" master-name="PageMaster">
> > > >                   <fo:region-body background-color="#EFAFAF"
> > > > margin-top="20mm" margin-left="10mm" margin-right="10mm"
> > > > margin-bottom="20mm"/>
> > > >           </fo:simple-page-master>
> > > >           </fo:layout-master-set>
> > > >
> > > >           <fo:page-sequence initial-page-number="1"
> > > > master-reference="PageMaster">
> > > >           <fo:flow flow-name="xsl-region-body">
> > > >                 <xsl:apply-templates/>
> > > >           </fo:flow>
> > > >           </fo:page-sequence>
> > > >           </fo:root>
> > > >           </xsl:template>
> > > >
> > > >           <xsl:template match="testscript:testscript">
> > > >           <fo:block xmlns:fo="http://www.w3.org/1999/XSL/Format">
> > > >               <fo:block>Testscript</fo:block>
> > > >               <fo:block>Identifier: <xsl:value-of
> > > > select="el:identifier"/></fo:block>
> > > >               <fo:block>Description: <xsl:value-of
> > > > select="el:description"/></fo:block>
> > > >               <fo:block>Title: <xsl:value-of
> > select="el:title"/></fo:block>
> > > >           </fo:block>
> > > >           </xsl:template>
> > > >
> > > >        </xsl:stylesheet>
> > > >        --
> > > >        Sam Fuqua
> > > >        ΣΝ ΘΗ 454
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Sam Fuqua
> > > > ΣΝ ΘΗ 454
> > > >
> > > >
> > >
> > >
> > > --
> > > Sam Fuqua
> > > ΣΝ ΘΗ 454
> >
> >
> >
> >
> > Jeremias Maerki
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
> >
> 
> 
> -- 
> Sam Fuqua
> ΣΝ ΘΗ 454




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message