Using xalan from jaxp1.1 and manually transforming
./build/src/codegen/allprops.xml ./build/src/codegen/genconst.xsl  to
./build/src/org/apache/fop/fo/properties/Constants.java caused same error.

Using xalan from jaxp1.2ea2 generated it o.k ????




From: Paul Hussein on 05/04/2002 08:17



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How to get 20.3 to build  (Document link: Paul Hussein)

Ah!!

Looks like the autogenerated file is not generated in the first pass, and
second pass error as described occurs cos file does not exist.


Here is the autogeneration of file error :

Building with classpath
/dvl/sw/jdk_1.2.2_09/lib/tools.jar:/dvl/sw/jdk_1.2.2_09/lib/classes.zip:lib/ant.jar:lib/ant-1.3-optional.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.2.3.jar:lib/xalan-2.0.0.jar:lib/xalanj1compat.jar:lib/bsf.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar:lib/avalon-framework-4.0.jar

Starting Ant...

Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:
     [copy] Copying 1 file to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen

init:
     [echo] ------------------- Fop 0.20.3 [1999-2002] ----------------

prepare:
     [echo] Preparing the build directories
    [mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties
    [mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/render/pdf/fonts
    [mkdir] Created dir: 
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/svg
    [mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/conf
    [mkdir] Created dir: /home/husseinp/java/fop/fop-0.20.3/build/classes/hyph
     [copy] Copying 3 files to /home/husseinp/java/fop/fop-0.20.3/build/classes/conf

codegen:
     [echo] Resetting codegen directory
     [copy] Copying 37 files to /home/husseinp/java/fop/fop-0.20.3/build/src/codegen
     [echo] Generating the java files from xml resources
============================
xslt
in: ./build/src/codegen/allprops.xml
style: ./build/src/codegen/genconst.xsl
out: ./build/src/org/apache/fop/fo/properties/Constants.java
============================
java.lang.StackOverflowError
        at java.util.Vector.elementAt(Compiled Code)
        at org.apache.xpath.VariableStack.getCurrentFrame(Compiled Code)
        at org.apache.xpath.VariableStack.getVariable(Compiled Code)
        at org.apache.xpath.XPathContext.getVariable(Compiled Code)
        at org.apache.xpath.operations.Variable.execute(Compiled Code)
        at org.apache.xpath.functions.FuncConcat.execute(Compiled Code)
        at org.apache.xpath.functions.FuncSubstringAfter.execute(Compiled Code)
        at org.apache.xpath.XPath.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.pushParams(Compiled Code)
        at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
        at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.templates.ElemChoose.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.templates.ElemTemplate.execute(Compiled Code)
        at org.apache.xalan.templates.ElemCallTemplate.execute(Compiled Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Compiled 
Code)
        at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Co





Christian Geisert <[EMAIL PROTECTED]> on 04/04/2002 16:25:40

Please respond to [EMAIL PROTECTED]



To:   [EMAIL PROTECTED]
cc:
Subject:  Re: How to get 20.3 to build


[EMAIL PROTECTED] wrote:
> I get this error when running build.sh
>
> compile:
>      [echo] Compiling the sources
>     [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

>      [copy] Copying 11 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/resources

>     [mkdir] Created dir:
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

>      [copy] Copying 5 files to
/home/husseinp/java/fop/fop-0.20.3/build/classes/org/apache/fop/viewer/Images

>     [javac] Compiling 497 source files to
/home/husseinp/java/fop/fop-0.20.3/build/classes
>     [javac] error: File
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/properties/Constants.java

does not contain type
> org.apache.fop.fo.properties.Constants as expected. Please adjust the
class path so that the file does not appear in the package
> org/apache/fop/fo/properties.
>     [javac]
/home/husseinp/java/fop/fop-0.20.3/build/src/org/apache/fop/fo/PropertyManager.java:22:

Class org.apache.fop.fo.properties.Constants not
> found in import.
>     [javac] import org.apache.fop.fo.properties.Constants;
>     [javac]        ^
>
>
> Have I missed something simple ??

Mmmh .. the missing file is generated during the build process.
Try again from scratch, first type './build.sh clean' then
'./build.sh' and watch for something like:

codegen:
      [echo] Resetting codegen directory
      [copy] Copying 37 files to
/home/chrisg/tmp/fop-0.20.3/build/src/codegen
      [echo] Generating the java files from xml resources
...



> Regards
>
>
> Paul.

Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to