forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "IAS" <mas...@iasandcb.pe.kr>
Subject Some feedback on build under JDK 1.4
Date Sat, 26 Oct 2002 16:38:43 GMT
Here's my test environment:
Windows XP 
JDK 1.4.1_01
Ant 1.5.1

I downloaded forrest source files from CVS today, and "build docs"
generates the following message only to fail.

...
* [45] your-project.html
 * [42] libre-intro.html
java.lang.NoSuchMethodError:
org.apache.xerces.xni.XMLDocumentHandler.startDocument(Lorg/apache/xerce
s/xni/XMLLocator;Ljava/lang/String;Lorg/apache/xerces/xni/Augmentations;
)V        at org.cyberneko.dtd.DTDConfiguration.startDTD(Unknown Source)
        at org.apache.xerces.impl.XMLDTDScannerImpl.startEntity(Unknown
Source)
        at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
        at
org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
        at
org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
        at org.cyberneko.dtd.DTDConfiguration.parse(Unknown Source)
        at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
        at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
        at
org.apache.forrest.components.generator.XNIConfigurableFileGenerator.gen
erate(XNIConfigurableFileGenerator.java:220)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:499)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:204)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:486)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:654)
        at
org.apache.cocoon.components.source.impl.SitemapSource.toSAX(SitemapSour
ce.java:371)
        at
org.apache.cocoon.environment.AbstractEnvironment.toSAX(AbstractEnvironm
ent.java:531)
        at
org.apache.cocoon.sitemap.ContentAggregator.generate(ContentAggregator.j
ava:155)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
XMLPipeline(AbstractProcessingPipeline.java:515)
        at
org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipe
line.processXMLPipeline(AbstractCachingProcessingPipeline.java:204)
        at
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process
(AbstractProcessingPipeline.java:486)
        at
org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(
SerializeNode.java:149)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107)
        at
org.apache.cocoon.components.treeprocessor.ContainerNode.invoke(Containe
rNode.java:68)
        at
org.apache.cocoon.components.treeprocessor.sitemap.CallNode.invoke(CallN
ode.java:134)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:83)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.i
nvoke(PreparableMatchNode.java:162)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(P
ipelineNode.java:153)
        at
org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.
invokeNodes(AbstractParentProcessingNode.java:107)
        at
org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(
PipelinesNode.java:150)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:326)
        at
org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreePro
cessor.java:308)
        at org.apache.cocoon.Cocoon.process(Cocoon.java:595)
        at org.apache.cocoon.Main.processLenient(Main.java:979)
        at org.apache.cocoon.Main.getType(Main.java:966)
        at org.apache.cocoon.Main.translateURI(Main.java:842)
        at org.apache.cocoon.Main.processURI(Main.java:782)
        at org.apache.cocoon.Main.process(Main.java:619)
        at org.apache.cocoon.Main.main(Main.java:433)
Exception in thread "main"
 *

BUILD FAILED
C:\java\jakarta\cvs\xml-forrest\build\dist\shbat\forrest.build.xml:437:
Java returned: 1

So, I modified forrest.build.xml in line 439:
value="-Djava.endorsed.dirs=${java.endorsed.dirs}${path.separator}${forr
est.home}/lib/endorsed"/>
->
value="-Djava.endorsed.dirs=${forrest.home}/lib/endorsed"/>
(This is hinted by line 509.)

The changed forrest.build.xml resulted in build success. 

I hope this feedback can help those who use JDK 1.4(I usually call Java
2 Modern, comparing with JDK 1.2~3, Java 2 Classic) to work with
Forrest.

IAS

Independent Java Technology Evangelist
http://www.iasandcb.pe.kr

Jakarta Seoul Project Coordinator
http://jakarta.apache-korea.org 




Mime
View raw message