You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by "Andrew C. Oliver" <ac...@apache.org> on 2002/11/25 16:47:57 UTC

forrest on jdk 1.3.1

Okay so Java is now installed on icarus (JAVA_HOME=/usr/local/jdk1.3.1) 
aka cvs.apache.org.  
I set my JAVA_HOME, did a clean checkout of xml-forrest, tried to 
build... got this:

acoliver@icarus-xml-forrest :./build.sh compile
Using classpath: 
"./lib/endorsed/xalan-2.3.1.jar;./lib/endorsed/xercesImpl-2.1.0
.jar;./lib/endorsed/xml-apis.jar;./lib/endorsed/xsltc-20020723.jar"
Buildfile: build.xml

BUILD FAILED
Unable to load default ProjectHelper due to 
java.lang.NoClassDefFoundError: org/
xml/sax/SAXException

Total time: 0 seconds
acoliver@icarus-xml-forrest :echo $JAVA_HOME
/usr/local/jdk1.3.1
acoliver@icarus-xml-forrest :

What else must I do to get forrest to work on jdk 1.3.1?


Re: forrest on jdk 1.3.1

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Jeff Turner wrote:
> On Mon, Nov 25, 2002 at 10:47:57AM -0500, Andrew C. Oliver wrote:

[..]

> Running ./build.sh in xml-forrest works for me on icarus.
> 
> Trying to generate the docs ('./build.sh site') lands up with broken PDFs:
> 
> Setup... done.
> Initializing... ready, let's go :-)
> java.lang.NoClassDefFoundError: java/awt/Rectangle

See http://xml.apache.org/fop/faq.html#faq-N1037A
(Warning: URL might change ;-)

The FAQ entry is not 100% correct as it's a basic-link and not SVG
which causes the error.

Christian



Re: forrest on jdk 1.3.1

Posted by Jeff Turner <je...@apache.org>.
On Mon, Nov 25, 2002 at 10:47:57AM -0500, Andrew C. Oliver wrote:
> Okay so Java is now installed on icarus (JAVA_HOME=/usr/local/jdk1.3.1) 
> aka cvs.apache.org.  
> I set my JAVA_HOME, did a clean checkout of xml-forrest, tried to 
> build... got this:
> 
> acoliver@icarus-xml-forrest :./build.sh compile

Forrest's build.xml doesn't have a 'compile' target.

> Using classpath: 
> "./lib/endorsed/xalan-2.3.1.jar;./lib/endorsed/xercesImpl-2.1.0
> .jar;./lib/endorsed/xml-apis.jar;./lib/endorsed/xsltc-20020723.jar"
> Buildfile: build.xml
> 
> BUILD FAILED
> Unable to load default ProjectHelper due to 
> java.lang.NoClassDefFoundError: org/
> xml/sax/SAXException

Running ./build.sh in xml-forrest works for me on icarus.

Trying to generate the docs ('./build.sh site') lands up with broken PDFs:

Setup... done.
Initializing... ready, let's go :-)
java.lang.NoClassDefFoundError: java/awt/Rectangle
        at org.apache.fop.layout.LineArea.addSpacedWord(Unknown Source)
        at org.apache.fop.layout.LineArea.addText(Unknown Source)
        at org.apache.fop.fo.FOText.addRealText(Unknown Source)
        at org.apache.fop.fo.FOText.addText(Unknown Source)
        at org.apache.fop.fo.FOText.layout(Unknown Source)
        at org.apache.fop.fo.flow.BasicLink.layout(Unknown Source)
        at org.apache.fop.fo.flow.Block.layout(Unknown Source)
        at org.apache.fop.fo.flow.Block.layout(Unknown Source)
        at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
        at org.apache.fop.fo.flow.Flow.layout(Unknown Source)
        at org.apache.fop.fo.pagination.PageSequence.format(Unknown Source)
        at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
        at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
        at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
        at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:147)
        at org.apache.cocoon.xml.xlink.XLinkPipe.endElement(XLinkPipe.java:246)
        at org.apache.cocoon.components.sax.XMLTeePipe.endElement(XMLTeePipe.java:124)
        at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
        at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2243)
        at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2069)
        at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1171)
        at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3196)
        at java.lang.Thread.run(Thread.java:484)
 * [46] index.html
 * [0] skin/page.css
 * [0] skin/images/spacer.gif
 * [0] skin/breadcrumbs.js
...

However everything else works if PDFs are disabled with:

Index: src/resources/conf/sitemap.xmap
===================================================================
RCS file: /home/cvs/xml-forrest/src/resources/conf/sitemap.xmap,v
retrieving revision 1.38
diff -r1.38 sitemap.xmap
117c117
<      <map:parameter name="nopdf" value="{nopdf}"/>
---
>      <map:parameter name="nopdf" value="true"/>



--Jeff

Re: forrest on jdk 1.3.1

Posted by Steven Noels <st...@outerthought.org>.
Andrew C. Oliver wrote:

> BUILD FAILED
> Unable to load default ProjectHelper due to 
> java.lang.NoClassDefFoundError: org/
> xml/sax/SAXException

I assume this error kicks in when ./build.sh kicks in Ant?

Can you start the Ant which comes with Forrest?

./tools/bin/ant ...

</Steven>
-- 
Steven Noels                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at              http://radio.weblogs.com/0103539/
stevenn at outerthought.org                stevenn at apache.org