Hi Deon,
I was running FOP 1.0 from updates-testing. A downgrade to 0.95 allowed
me to build PDFs successfully. I found the following bug report against
FOP:
https://bugzilla.redhat.com/show_bug.cgi?id=689930
So it looks like this is a known issue.
Thanks for the help!
Nathan
On Wed, 2011-05-04 at 17:11 -0400, Deon Lackey wrote:
This is a totally random idea and I could be wrong, but what version
of FOP are you running? Can you upgrade? I have this vague memory of
publican not pulling in updated versions of FOP that it requires, but
I could be mistaken. I'm going to poke around bugzilla and see what I
can find.
Nathan Thomas wrote, on 05/04/2011 04:58 PM:
> Hi Deon,
>
> Thanks for the quick reply! Here's the full process when trying to
> build a pdf:
>
> Starting pdf
> Using XML::LibXSLT
> on /usr/share/publican/Common_Content/fedora/xsl/pdf.xsl
> Making portrait pages on A4 paper (210mmx297mm)
> 04-May-2011 19:47:10 org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-height set to: 240mm
> 04-May-2011 19:47:10 org.apache.fop.apps.FopFactoryConfigurator
> configure
> INFO: Default page-width set to: 120mm
> 04-May-2011 19:47:11 org.apache.fop.cli.Main startFOP
> SEVERE: Exception
> java.util.MissingResourceException: File event-model.xml not found
> at
>
org.apache.fop.events.DefaultEventBroadcaster.loadModel(DefaultEventBroadcaster.java:83)
> at
>
org.apache.fop.events.DefaultEventBroadcaster.getEventProducerModel(DefaultEventBroadcaster.java:114)
> at
>
org.apache.fop.events.DefaultEventBroadcaster.createProxyFor(DefaultEventBroadcaster.java:142)
> at
>
org.apache.fop.events.DefaultEventBroadcaster.getEventProducerFor(DefaultEventBroadcaster.java:129)
> at org.apache.fop.fonts.FontEventProducer
> $Provider.get(FontEventProducer.java:43)
> at
> org.apache.fop.fonts.FontEventAdapter.getEventProducer(FontEventAdapter.java:44)
> at
>
org.apache.fop.fonts.FontEventAdapter.fontLoadingErrorAtAutoDetection(FontEventAdapter.java:56)
> at
> org.apache.fop.fonts.autodetect.FontInfoFinder.find(FontInfoFinder.java:262)
> at org.apache.fop.fonts.FontAdder.add(FontAdder.java:60)
> at org.apache.fop.fonts.FontDetector.detect(FontDetector.java:90)
> at
> org.apache.fop.fonts.FontInfoConfigurator.configure(FontInfoConfigurator.java:92)
> at
>
org.apache.fop.render.PrintRendererConfigurator.buildFontList(PrintRendererConfigurator.java:106)
> at
>
org.apache.fop.render.PrintRendererConfigurator.setupFontInfo(PrintRendererConfigurator.java:129)
> at
> org.apache.fop.render.intermediate.IFUtil.setupFonts(IFUtil.java:165)
> at
> org.apache.fop.render.intermediate.IFRenderer.setupFontInfo(IFRenderer.java:181)
> at
> org.apache.fop.area.RenderPagesModel.<init>(RenderPagesModel.java:73)
> at
> org.apache.fop.area.AreaTreeHandler.setupModel(AreaTreeHandler.java:130)
> at
> org.apache.fop.area.AreaTreeHandler.<init>(AreaTreeHandler.java:102)
> at
>
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:359)
> at org.apache.fop.fo.FOTreeBuilder.<init>(FOTreeBuilder.java:105)
> at org.apache.fop.apps.Fop.createDefaultHandler(Fop.java:101)
> at org.apache.fop.apps.Fop.<init>(Fop.java:79)
> at org.apache.fop.apps.FopFactory.newFop(FopFactory.java:271)
> at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:109)
> at org.apache.fop.cli.Main.startFOP(Main.java:174)
> at org.apache.fop.cli.Main.main(Main.java:204)
> Finished pdf
>
> If by tables you mean tables of content within the document itself,
> I don't think the document I'm trying to build contains any tables.
>
> The pdfs were building fine just a few days ago. Then I did a fresh
> install of Fedora to upgrade to F15 beta, re-cloned the git
> repository, then hit this problem.
>
> Best,
> Nathan
>
> On Wed, 2011-05-04 at 16:41 -0400, Deon Lackey wrote:
>
> > That is really odd. I have only seen this error when an xi:include
> > was missing from my directories (like, the file was in
> > "chapters/myfile.xml", but my link only said
"myfile.xml").
> > However, other builds (like HTML) fail with the same error.
> >
> > Are there any other errors returned? Are you getting any errors
> > with the HTML output that are non-fatal but apply to the same
> > file? I have noticed that HTML is a lot more forgiving of problems
> > with tables than PDF is. When I have PDF errors but no fatal HTML
> > errors, it's usually table related.
> >
> > Good luck,
> > Deon
> >
> > Nathan Thomas wrote, on 05/04/2011 03:33 PM:
> >
> > > Hi,
> > >
> > > I've been trying to publish the Live Image Guide, but I can't
> > > get pdfs to build with Publican. I get the following error:
> > >
> > > SEVERE: Exception
> > > java.util.MissingResourceException: File event-model.xml not
> > > found
> > >
> > > then it continues to build, and finally says 'Finished pdf'.
> > > However, when I look in the 'publish' folder there is no pdf
> > > present (html is present and correct).
> > >
> > > I'm on a fresh F15 beta install: am I missing a package?
> > >
> > > Best wishes,
> > > Nathan
>
>