RE: Getting FOP running on Mac OS X
It is possible the latest StuffIt Expanders work properly for filenames longer than 31 chars but it is a known problem. OS X can use much longer filenames. I include the following when I put up archives: MacOSX Note: Don't use Stuffit to expand the archive. Use the following shell command instead: tar -xzf source.tar.gz gunzip should work for a zip file also (I think). Clay Leeds wrote: The files were ZIP'd, and when they were unZIP'd using Stuffit Expander, the avalon JAR file's long filename was changed from: avalon-framework-cvs-20020315.jar to: avalon-framework-cvs-20020315.j Adding ar at the end of that filename, resolved the problem, and I am able to run FOP on my Mac. Unfortunately, it took a few days to figure out this problem. First, thanks for the input. I'll be glad to update the FAQ, but I am a little confused about what to put into it. The file name was truncated after 31 characters, which is too odd of a number to seem to have been done on purpose by StuffIt. What caused the filename truncation? Without understanding that, I am not sure how to help. Java Home. Many Java applications require the identification of a Java Home directory during installation. The equivalent on Mac OS X should always be /Library/Java/Home. This is actually a symbolic link to the current installed J2SE version, and allows access to the bin subdirectory where command line tools such as java, javac, etc. exist as expected. The I am not a Mac guy, so please excuse my ignorance. Is this something that Mac people should already know? In other words, I wonder whether it is even appropriate to address this in FOP doc as it is primarily a sysadmin issue, or at least a Mac or Java issue. Also, what if /Library/Java/Home points to a 1.1 or 1.2 java runtime? If we tell the user to use that, then FOP doesn't work. Again, I am not sure what to recommend here. Victor Mote - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx/SOLVED
I was able to build fop on macosx after removing an older version of fop.jar from /Library/Java/Extensions. The symptom was that the first taskdef in the ant build file was failing: 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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
problems with keep-with-next
keep-with-next still doesn't work on 0.20.3 I tried to add a comment to: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5434 but i couldn't figure out how (probably too late at night :-) Anyway there is a very simple test case here: http://concord.org/~stephen/fop-bugs/keep-with-next-bug.fo the testcase keep-with-next-bug.fo references the image: http://concord.org/~stephen/fop-bugs/ccprobe-interface-blockdiag.png The problem is very annoying when I have a figure with a title on one page and the image on the next. -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
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.jarstylebook.jar ant.jar bsf.jar org xalan-2.2D11.jar ant.license.txt buildtools.jarreadmexerces-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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- -s - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: problem building on macosx
Thanks for the pointer Christian, I got a new checkout of the maintenence branch: cvs -d :pserver:[EMAIL PROTECTED]:/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: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]