You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Stephen Bannasch <st...@concord.org> on 2002/02/26 05:33:54 UTC

problem building on macosx

I'm trying to build Fdop on macosx>  I grabbed the source from cvs this afternoon and when I build it it stops right away with a SerializeHyphPattern cannot be found error.

Help for the clueless will be appreciated.

Thanks

----

[bash stephen:~/apache/xml-fop]./build.sh

Fop Build System
----------------


Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar
Starting Ant...

Buildfile: build.xml

init-avail:

init-filters-xalan2:

init:
     [echo] ------------------- Fop 1.0dev [1999-2002] ----------------

BUILD FAILED

/Users/stephen/apache/xml-fop/build.xml:273: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found

-- 

-s

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Stephen Bannasch <st...@concord.org>.
Thanks for the suggestion, but the same problem occurs.

>In an earlier mail you said you had this line in your shell profile:
>"export ANT_HOME=/Users/stephen/devtools/jakarta-ant-1.4.1"
>
>Maybe that is causing ant to look for tasks in that directory rather
>than in the fop lib?
>Try setting ANT_HOME to "/Users/stephen/apache/xml-fop/lib" or wherever
>the buildtools.jar is.
>
>Regards,
>Karen
>
>Stephen Bannasch wrote:
>>
>> >What happens if you remove hyphenation from this line
>> >
>> ><target name="package" depends="compile,hyphenation">
>> >
>> >in build.xml?
>>
>> same error:
>>
>> init:
>>      [echo] ------------------- Fop 0.20.3 [1999-2002] ----------------
>>
>> BUILD FAILED
>>
>> /Users/stephen/apache/xml-fop/build.xml:272: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found
>>
>> If I comment out line 272:
>>
>> <!-- <taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>  -->
>>      <taskdef name="xslt" classname="org.apache.fop.tools.anttasks.Xslt"/>
>>
>> then it dies on the next <taskdef> on line 273
>>
>> --
>>
>> -s
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>> For additional commands, email: fop-dev-help@xml.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org


-- 

-s

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by kl...@club-internet.fr.
In an earlier mail you said you had this line in your shell profile:
"export ANT_HOME=/Users/stephen/devtools/jakarta-ant-1.4.1"

Maybe that is causing ant to look for tasks in that directory rather
than in the fop lib?
Try setting ANT_HOME to "/Users/stephen/apache/xml-fop/lib" or wherever
the buildtools.jar is.

Regards,
Karen

Stephen Bannasch wrote:
> 
> >What happens if you remove hyphenation from this line
> >
> ><target name="package" depends="compile,hyphenation">
> >
> >in build.xml?
> 
> same error:
> 
> init:
>      [echo] ------------------- Fop 0.20.3 [1999-2002] ----------------
> 
> BUILD FAILED
> 
> /Users/stephen/apache/xml-fop/build.xml:272: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found
> 
> If I comment out line 272:
> 
> <!-- <taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>  -->
>      <taskdef name="xslt" classname="org.apache.fop.tools.anttasks.Xslt"/>
> 
> then it dies on the next <taskdef> on line 273
> 
> --
> 
> -s
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Stephen Bannasch <st...@concord.org>.
>What happens if you remove hyphenation from this line
>
><target name="package" depends="compile,hyphenation">
>
>in build.xml?

same error:

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

BUILD FAILED

/Users/stephen/apache/xml-fop/build.xml:272: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found

If I comment out line 272:

<!-- <taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>  -->
     <taskdef name="xslt" classname="org.apache.fop.tools.anttasks.Xslt"/>

then it dies on the next <taskdef> on line 273

-- 

-s

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Vertically align images in tables

Posted by Henrik Holle <he...@megatel.de>.
Hi,


Is it possible to align images (svg) vertically in a table-cell?


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Stephen Bannasch wrote:

 
> created buildtools.jar:
> 
> [bash stephen:~/apache/xml-fop]ant -f buildtools.xml
> Buildfile: buildtools.xml


You shouldn't have to build it yourself, it's included in lib/

> which claimed success
> 
> then ran build.sh
> 
> which again dies on the first taskdef


What happens if you remove hyphenation from this line

<target name="package" depends="compile,hyphenation">

in build.xml?


Christian


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Stephen Bannasch <st...@concord.org>.
Thanks for the pointer Christian,

I got a new checkout of the maintenence branch:

cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic checkout -r fop-0_20_2-maintain xml-fop

created buildtools.jar:

[bash stephen:~/apache/xml-fop]ant -f buildtools.xml
Buildfile: buildtools.xml

which claimed success

then ran build.sh

which again dies on the first taskdef

----

Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/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.0b4.jar:lib/avalon-framework-4.0.jar
Starting Ant...

Buildfile: build.xml

init-avail:

init-filters-xalan1:

init-filters-xalan2:

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

BUILD FAILED

/Users/stephen/apache/xml-fop/build.xml:272: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found
--- Nested Exception ---
java.lang.NoClassDefFoundError: org/apache/tools/ant/taskdefs/MatchingTask
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
        at org.apache.tools.ant.taskdefs.Taskdef.execute(Taskdef.java:111)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)



At 4:56 PM +0100 2/26/02, Christian Geisert wrote:
>Stephen Bannasch wrote:
>
>[..]
>
>>The systems stops on the very first <taskdef> element in the build.
>>
>><taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>
>>
>>There are no classes in the anttasks dir for the taskdef to link "serHyph" to:
>>
>>  lib/org/apache/fop/tools/anttasks/
>
>
>This is in buildtools.jar which seems to be included in your classpath ?
>
>But ..
>
>>>>  [echo] ------------------- Fop 1.0dev [1999-2002] ----------------
>
>
>it looks like you have checked out the development branch (which isn't
>usable at the moment) but you probably want the maintenance branch:
>checkout -r fop-0_20_2-maintain xml-fop (which should compile)
>
>Christian
>

-- 

-s

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Christian Geisert <ch...@isu-gmbh.de>.
Stephen Bannasch wrote:

[..]

> The systems stops on the very first <taskdef> element in the build.
> 
> <taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>
> 
> There are no classes in the anttasks dir for the taskdef to link "serHyph" to:
> 
>   lib/org/apache/fop/tools/anttasks/


This is in buildtools.jar which seems to be included in your classpath ?

But ..

>>>   [echo] ------------------- Fop 1.0dev [1999-2002] ----------------


it looks like you have checked out the development branch (which isn't
usable at the moment) but you probably want the maintenance branch:
checkout -r fop-0_20_2-maintain xml-fop (which should compile)


Christian



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Stephen Bannasch <st...@concord.org>.
Hi Jim,

I am using the binary distribution of Fop regularly.

I have xerces.jar and xalan.jar in /Library/Java/Extensions/ however I have no tools.jar or classes.zip in /Library/Java/Home/lib

I have the following in the xml-fop lib dir:

$ls lib
BSF.license.txt   batik.jar         classes           src
CVS               bin               logkit-1.0.jar    stylebook.jar
ant.jar           bsf.jar           org               xalan-2.2D11.jar
ant.license.txt   buildtools.jar    readme            xerces-1.4.3.jar

which the build process finds and seems to include on the Classpath:

>>Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar


I have set to following in .bash_profile:

export JAVA_HOME=/Library/Java/Home
export ANT_HOME=/Users/stephen/devtools/jakarta-ant-1.4.1

The systems stops on the very first <taskdef> element in the build.

<taskdef name="serHyph" classname="org.apache.fop.tools.anttasks.SerializeHyphPattern"/>

There are no classes in the anttasks dir for the taskdef to link "serHyph" to:

  lib/org/apache/fop/tools/anttasks/

Are these already supposed to be there from an earlier element of the build process?

>It worked just fine for me from the very start. Are you sure you have all the supporting jars properly sourced through the classpath? Have you tried running it from the latest release jar file first before doing the build?
>
>jw
>
>Stephen Bannasch wrote:
>
>>I'm trying to build Fdop on macosx>  I grabbed the source from cvs this afternoon and when I build it it stops right away with a SerializeHyphPattern cannot be found error.
>>
>>Help for the clueless will be appreciated.
>>
>>Thanks
>>
>>----
>>
>>[bash stephen:~/apache/xml-fop]./build.sh
>>
>>Fop Build System
>>----------------
>>
>>Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar
>>Starting Ant...
>>
>>Buildfile: build.xml
>>
>>init-avail:
>>
>>init-filters-xalan2:
>>
>>init:
>>    [echo] ------------------- Fop 1.0dev [1999-2002] ----------------
>>
>>BUILD FAILED
>>
>>/Users/stephen/apache/xml-fop/build.xml:273: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org


-- 

-s

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: problem building on macosx

Posted by Jim Wright <jw...@palgraphics.com>.
It worked just fine for me from the very start. Are you sure you have 
all the supporting jars properly sourced through the classpath? Have you 
tried running it from the latest release jar file first before doing the 
build?

jw

Stephen Bannasch wrote:

>I'm trying to build Fdop on macosx>  I grabbed the source from cvs this afternoon and when I build it it stops right away with a SerializeHyphPattern cannot be found error.
>
>Help for the clueless will be appreciated.
>
>Thanks
>
>----
>
>[bash stephen:~/apache/xml-fop]./build.sh
>
>Fop Build System
>----------------
>
>
>Building with classpath /Library/Java/Home/lib/tools.jar:/Library/Java/Home/lib/classes.zip:lib/ant.jar:lib/batik.jar:lib/buildtools.jar:lib/xerces-1.4.3.jar:lib/xalan-2.2D11.jar:lib/jimi-1.0.jar:lib/logkit-1.0.jar
>Starting Ant...
>
>Buildfile: build.xml
>
>init-avail:
>
>init-filters-xalan2:
>
>init:
>     [echo] ------------------- Fop 1.0dev [1999-2002] ----------------
>
>BUILD FAILED
>
>/Users/stephen/apache/xml-fop/build.xml:273: taskdef class org.apache.fop.tools.anttasks.SerializeHyphPattern cannot be found
>




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org