forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clay Leeds <cle...@medata.com>
Subject Re: xml-fop Build Failed
Date Tue, 02 Nov 2004 20:16:53 GMT
On Oct 30, 2004, at 7:52 PM, David Crossley wrote:
> Do 'man patch'. Peek at the top of the patch file
> to see what directory level you need to be in
> when you issue the command 'patch -p0 < my-patch.diff'
> Read 'man patch' about the -pNUM option:
> "Strip the smallest prefix containing NUM leading slashes
> from each file name found in the patch file".

Thanks... I'm still having problems but at least I was able to  
successfully apply a PATCH.

BTW, many apologies for the long message & attachments...

>> Also, I've created a new
>> sitemap.xmap file (see my previous POST[1]), with most of the changes  
>> I
>> think I need. I am still having problems with the dev/faq.xml and the
>> /compliance.xml file (which I'm assuming your fix4fop.diff file fixes
>> ;-)).
>
> I doubt that Cheche's patch will "fix" the compliance.html
> situation for you. Rather you need to follow the documentation
> to which we have referred, e.g. Provide your "Compliance DTD",
> configure the catalog entity resolver, etc. etc.

Still working on that. See below and attached sitemap.xmap after  
slogging through this message.

On Oct 30, 2004, at 12:10 AM, David Crossley wrote:
>>        <!-- ========================== FOP Additions
>> ========================== -->
>>        <map:match pattern="body-compliance.xml">
>>          <map:generate type="file-nolabel"
>> src="content/xdocs/compliance.xml"/>
>>          <map:transform  
>> src="resources/stylesheets/compliance2html.xsl"/>
>>          <map:serialize type="xml"/>
>>        </map:match>
>>        <!-- ======================== End FOP Additions
>> ======================== -->
>
> That match is not correct anymore. Please follow the
> documentation your-project.html "Adding new content type".

Over the weekend and the last few days, I've spent a lot of time  
fumbling attempting to follow the instructions to fix my custom  
sitemap.xmap file (attached to this msg). Specifically, I was referring  
to the "Adding a new content type (advanced)"[1] and the "SourceType  
(content aware pipelines)"[2] pages.

NOTE1: [2] could be improved by showing the <map:action../> example in  
context. Not knowing where it goes, when placing the current example  
into my sitemap.xmap file I got an error. I figured it out by going  
here[3] (except that's for Cocoon 2.1 but the 2.0 docs appear to be the  
same). I've attached an improvement PATCH for [2]...

NOTE2: The PATCH also fixes a problem with a missing closing tag in  
//map:action/sourcetype/document-element:
   <sourcetype name="foo">
     <document-element local-name="foo">
   </sourcetype>

should be:
   <sourcetype name="foo">
     <document-element local-name="foo"/>
   </sourcetype>

BUILD ERRORS
============
On another, related side note, I've tar'd up the sub-directories in  
src/documentation/content (except xdocs/ of course!). When running  
/forrest/ I get errors for each of the references to items in the fo/,  
dev/, dev/fo/, dev/svg, & design/ directories. However, if I un-tar  
them:

[clay@Clay-Leeds-Computer clay]$ ls -l  
"/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/content"
total 208
drwxrwxrwx    3 clay          102 Nov  1 13:36 CVS.sandboxinfo
drwxrwxrwx    4 clay          136 Oct 26 20:27 design
-rw-rw-rw-    1 clay        86225 Oct 29 15:22 design.tar.gz
drwxrwxrwx    5 clay          170 Oct 27 15:40 dev
-rw-rw-rw-    1 clay        85908 Oct 29 15:22 dev.tar.gz
drwxrwxrwx   15 clay          510 Oct 27 15:32 fo
-rw-rw-rw-    1 clay        33272 Oct 29 15:22 fo.tar.gz
drwxrwxrwx   39 clay         1326 Oct 27 14:39 xdocs

I get a Java dump error that complains about svg stuff:

====
Cannot find CatalogManager.properties
^                                    dev/
^                                    design/
^                                    design/alt.design/
* [1/82]    [82/85]   17.425s 21.7Kb  linkmap.html
* [2/84]    [3/30]    2.436s 12.3Kb  design/alt.design/coroutines.html
* [3/84]    [1/33]    1.652s 22.7Kb  design/breakpos.html
* [4/84]    [1/46]    1.255s 9.7Kb   logocontest.html
* [5/83]    [0/0]     0.905s 2.3Kb   skin/basic.css
* [6/83]    [1/47]    1.835s 12.5Kb  extensions.html
* [7/83]    [1/33]    1.344s 12.1Kb  design/images.html
* [8/82]    [0/0]     4.835s 9.1Kb   design/alt.design/coroutines.pdf
* [9/83]    [2/30]    1.246s 14.5Kb  dev/implement.html
* [10/89]   [7/26]    0.975s 12.9Kb   
design/alt.design/properties/introduction.html
* [11/89]   [1/49]    2.623s 13.5Kb  configuration.html
* [12/89]   [1/33]    1.604s 17.0Kb  design/renderers.html
* [13/89]   [1/30]    1.135s 14.1Kb  dev/fonts.html
* [14/88]   [0/0]     0.884s 14.1Kb  dev/fonts.pdf
* [15/88]   [1/45]    1.116s 10.7Kb  todo.html
* [16/87]   [0/0]     2.176s 5.9Kb   todo.pdf
* [18/98]   [13/43]   1.751s 12.8Kb  dev/svg.html
X [0]                                     dev/svg/paints.pdf    BROKEN:  
Can't find bundle for base name org.apache.fop.svg.resources.Messages,  
locale en_US
* [20/96]   [0/24]    0.666s 5.7Kb    
design/alt.design/properties/PropertyConsts-class.html
* [21/96]   [1/33]    1.228s 9.9Kb   design/pdf-library.html
* [22/95]   [0/0]     0.682s 0b      dev/fo/embedding.fo.pdf
Exception in thread "main" java.lang.NoSuchMethodError:  
org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/ 
bridge/BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/ 
UnitProcessor$Context;
         at org.apache.fop.svg.SVGElement.layout(SVGElement.java:218)
         at  
org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObjec 
t.java:251)
         at org.apache.fop.fo.flow.Block.layout(Block.java:257)
         at  
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
         at  
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
         at  
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java: 
400)
         at  
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
         at  
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
         at  
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
         at  
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java: 
112)
         at  
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java: 
112)
         at  
org.apache.cocoon.xml.xlink.XLinkPipe.endElement(XLinkPipe.java:211)
         at  
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java: 
89)
         at  
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at  
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown  
Source)
         at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(Unknown Source)
         at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno 
wn Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown  
Source)
         at  
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:296)
         at  
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
         at  
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java: 
211)
         at  
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java: 
117)
         at  
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe 
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:235)
         at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process 
(AbstractProcessingPipeline.java:478)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( 
SerializeNode.java:134)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:54)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i 
nvoke(PreparableMatchNode.java:112)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:138)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:95)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:298)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:241)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:238)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun 
tNode.java:111)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel 
ectNode.java:82)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:138)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:95)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:298)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:241)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:238)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:646)
         at  
org.apache.cocoon.bean.CocoonWrapper.getPage(CocoonWrapper.java:441)
         at  
org.apache.cocoon.bean.CocoonBean.processTarget(CocoonBean.java:493)
         at  
org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:354)
         at org.apache.cocoon.Main.main(Main.java:321)
====

SVG Transformations
===================
As stated above, I'm having problems with my svg transformations when  
the content/dev/svg/ directory exists (above core-dump) but when it  
doesn't exist, I get this error:

====
* [18/98]   [13/43]   2.089s 12.8Kb  dev/svg.html
X [0]                                     dev/svg/paints.pdf    BROKEN:  
Can't find bundle for base name org.apache.fop.svg.resources.Messages,  
locale en_US
====

FO Transformations
==================
Remove the above directories makes the error go away, but I get errors  
for each *.fo file transformed by Forrest:
====
X [0]                                     dev/fo/embedding.fo.pdf        
BROKEN:  
/Users/Shared/_WebDLs/_repos/xml-fop/src/documentation/content/dev/fo/ 
embedding.fo (No such file or directory)
====

As noted above, when this file exist (i.e., when content/ contains fo/  
& dev/fo/ directories) I get the above Java core dump error. This seems  
to be related to the java error core dump problem listed above. I  
suspect fixing that problem will help me fix this one as well.

I tried untar'ing those directories but *deleting* the content/dev/svg/  
directory, but it still gives a similar java core dump error:

* [22/95]   [0/0]     2.946s 0b      dev/fo/embedding.fo.pdf
Exception in thread "main" java.lang.NoSuchMethodError:  
org.apache.batik.bridge.UnitProcessor.createContext(Lorg/apache/batik/ 
bridge/BridgeContext;Lorg/w3c/dom/Element;)Lorg/apache/batik/util/ 
UnitProcessor$Context;
         at org.apache.fop.svg.SVGElement.layout(SVGElement.java:218)
         at  
org.apache.fop.fo.flow.InstreamForeignObject.layout(InstreamForeignObjec 
t.java:251)
         at org.apache.fop.fo.flow.Block.layout(Block.java:257)
         at  
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
         at  
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)
         at  
org.apache.fop.fo.pagination.PageSequence.makePage(PageSequence.java: 
400)
         at  
org.apache.fop.fo.pagination.PageSequence.format(PageSequence.java:338)
         at  
org.apache.fop.apps.StreamRenderer.render(StreamRenderer.java:262)
         at  
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:223)
         at  
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java: 
112)
         at  
org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java: 
112)
         at  
org.apache.cocoon.xml.xlink.XLinkPipe.endElement(XLinkPipe.java:211)
         at  
org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java: 
89)
         at  
org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
         at  
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown  
Source)
         at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis 
patcher.dispatch(Unknown Source)
         at  
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno 
wn Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
         at org.apache.xerces.parsers.XML11Configuration.parse(Unknown  
Source)
         at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
         at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown  
Source)
         at  
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:296)
         at  
org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
         at  
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java: 
211)
         at  
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java: 
117)
         at  
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe 
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:235)
         at  
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process 
(AbstractProcessingPipeline.java:478)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke( 
SerializeNode.java:134)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:54)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i 
nvoke(PreparableMatchNode.java:112)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:138)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:95)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:298)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:241)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:238)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(Moun 
tNode.java:111)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.SelectNode.invoke(Sel 
ectNode.java:82)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P 
ipelineNode.java:138)
         at  
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode. 
invokeNodes(AbstractParentProcessingNode.java:76)
         at  
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke( 
PipelinesNode.java:95)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:298)
         at  
org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process 
(ConcreteTreeProcessor.java:241)
         at  
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro 
cessor.java:238)
         at org.apache.cocoon.Cocoon.process(Cocoon.java:646)
         at  
org.apache.cocoon.bean.CocoonWrapper.getPage(CocoonWrapper.java:441)
         at  
org.apache.cocoon.bean.CocoonBean.processTarget(CocoonBean.java:493)
         at  
org.apache.cocoon.bean.CocoonBean.process(CocoonBean.java:354)
         at org.apache.cocoon.Main.main(Main.java:321)

On Oct 30, 2004, at 12:10 AM, David Crossley wrote:
>>          <!-- ========================= FOP Additions
>> ========================== -->
>>          <map:match pattern="**/faq.pdf">
>>            <map:generate type="file-nolabel"
>> src="content/xdocs/{1}/faq.xml"/>
>>            <map:transform src="library/xslt/faq2document.xsl"
>> label="content"/>
>>            <map:transform
>> src="skins/forrest-site/xslt/fo/document2fo.xsl"/>
>>            <map:serialize type="fo2pdf"/>
>>          </map:match>
>>          <!-- ======================= End FOP Additions
>> ======================== -->
>
> I don't understand the purpose of that one. Leave it out
> and see if the core sitemaps handle the faq.pdf

This has been removed, and the Dev FAQ and the FOP FAQ now render  
correctly. Thanks!

(NOTE: yeah, I feel silly about the CatalogManager.properties warning,  
since I haven't figured out how to set it correctly either... At least  
my VCR doesn't flash 12:00! This page[4] says "You can add a local  
CatalogManager.properties to your project.classes-dir to define your  
additional catalogs for DTDs  and other entities." but there's no  
example so I don't know what that file should look like--should I just  
switch to project.classes-dir & /touch CatalogManager.properties/?  
Anyway, 'If you do not add such a configuration file, then there will  
be a  harmless message on startup "CatalogManager.properties not  
found".' 12:00... 12:00...;-))

[1]
http://forrest.apache.org/docs/your- 
project.html#adding_new_content_type_2
[2]
http://forrest.apache.org/docs/cap.html
[3]
http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html
[4]
http://forrest.apache.org/docs/upgrading_06.html#local-catalog

Web Maestro Clay
-- 
Clay Leeds - <cleeds@medata.com>
Webmaster/Developer - Medata, Inc. - <http://www.medata.com/>
PGP Public Key: <https://mail.medata.com/pgp/cleeds.asc>


Mime
View raw message