You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by IAS <ma...@iasandcb.pe.kr> on 2002/10/26 18:38:43 UTC

Some feedback on build under JDK 1.4

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 




Re: Some feedback on build under JDK 1.4

Posted by Jeff Turner <je...@apache.org>.
On Mon, Oct 28, 2002 at 03:50:53PM +0900, IAS wrote:
> Yes, I have JAXP implementations from Sun XML Pack Summer 2 in JDK
> 1.4.1. Now the updated Forrest files work fine whether they are built
> with endorsed-JDK or not. I appreciate your prompt response.

Good to hear.

> In addition, my build result has the broken links like this:
> community/howto/index.html community/howto/howto.pdf .pdf
> community/howto/v10/howto-v10.pdf
> community/howto/xmlform/howto-xmlform.pdf
> community/howto/bugzilla-patch/howto-bugzilla-patch.pdf
> community/howto/cvs-ssh/howto-cvs-ssh.pdf
> community/howto/xmlform/step1.pdf community/howto/xmlform/step2.pdf
> community/howto/xmlform/step3.pdf community/howto/xmlform/step4.pdf
> community/howto/xmlform/step5.pdf /howto/xmlform/.pdf
> 
> Is it no wonder or something wrong? Thanks in advance.

That's normal Forrest brokenness that no-one has got around to fixing :)
Patches welcome.

--Jeff

> IAS
> 
> Independent Java Technology Evangelist
> http://www.iasandcb.pe.kr
> 
> Jakarta Seoul Project Coordinator
> http://jakarta.apache-korea.org 

RE: Some feedback on build under JDK 1.4

Posted by IAS <ma...@iasandcb.pe.kr>.
Yes, I have JAXP implementations from Sun XML Pack Summer 2 in JDK
1.4.1. Now the updated Forrest files work fine whether they are built
with endorsed-JDK or not. I appreciate your prompt response.

In addition, my build result has the broken links like this:
community/howto/index.html community/howto/howto.pdf .pdf
community/howto/v10/howto-v10.pdf
community/howto/xmlform/howto-xmlform.pdf
community/howto/bugzilla-patch/howto-bugzilla-patch.pdf
community/howto/cvs-ssh/howto-cvs-ssh.pdf
community/howto/xmlform/step1.pdf community/howto/xmlform/step2.pdf
community/howto/xmlform/step3.pdf community/howto/xmlform/step4.pdf
community/howto/xmlform/step5.pdf /howto/xmlform/.pdf

Is it no wonder or something wrong? Thanks in advance.

IAS

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

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

> -----Original Message-----
> From: Jeff Turner [mailto:jefft@apache.org]
> Sent: Sunday, October 27, 2002 2:05 AM
> To: forrest-dev@xml.apache.org
> Subject: Re: Some feedback on build under JDK 1.4
> 
> On Sun, Oct 27, 2002 at 01:38:43AM +0900, IAS wrote:
> > java.lang.NoSuchMethodError:
> >
org.apache.xerces.xni.XMLDocumentHandler.startDocument(Lorg/apache/xerce
> >
s/xni/XMLLocator;Ljava/lang/String;Lorg/apache/xerces/xni/Augmentations;
> ...
> 
> > 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 have committed what is I hope is an equivalent change: put the
forrest
> jars before everything else.  I think you might have different (older)
> XML jars in your %JAVA_HOME%\jre\lib\endorsed directory.  Please let
us
> know if this change doesn't fix the problem.
> 
> Thanks,
> 
> --Jeff
> 
> 
> > IAS
> >
> > Independent Java Technology Evangelist
> > http://www.iasandcb.pe.kr
> >
> > Jakarta Seoul Project Coordinator
> > http://jakarta.apache-korea.org
> >
> >
> >




Re: Some feedback on build under JDK 1.4

Posted by Jeff Turner <je...@apache.org>.
On Sun, Oct 27, 2002 at 01:38:43AM +0900, IAS wrote:
> java.lang.NoSuchMethodError:
> org.apache.xerces.xni.XMLDocumentHandler.startDocument(Lorg/apache/xerce
> s/xni/XMLLocator;Ljava/lang/String;Lorg/apache/xerces/xni/Augmentations;
...

> 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 have committed what is I hope is an equivalent change: put the forrest
jars before everything else.  I think you might have different (older)
XML jars in your %JAVA_HOME%\jre\lib\endorsed directory.  Please let us
know if this change doesn't fix the problem.

Thanks,

--Jeff


> IAS
> 
> Independent Java Technology Evangelist
> http://www.iasandcb.pe.kr
> 
> Jakarta Seoul Project Coordinator
> http://jakarta.apache-korea.org 
> 
> 
>