Re: Configuring Netbeans - missing org.apache.fop.fonts
Jeremias Maerki wrote: Well, using the CLASSPATH env variable begs for trouble. I consider it a mistake of Java 1.0 that has been carried on until today. Good thing you found the problem. BTW, Peter, are you aware that the Folio website reports an error? I wasn't aware of that, thanks. Which page? I can't see a problem in firefox on linux or mac, or on safari. Peter
Re: Configuring Netbeans - missing org.apache.fop.fonts
Jeremias Maerki wrote: I have no idea what's going wrong. It seems to work for everyone else. In my log output with Ant 1.7 and the -d option I get different log output. For example, Ant includes the full classpath for the javac task in the resourcegen target which doesn't seem to happen on your end. But unfortunately, Ant doesn't log the effective classpath for the taskdef task at all, not even the setup of the libs-build-classpath and libs-build-tools-classpath early in build.xml which are used by the taskdef. What does ant init spit out? Have you checked for permission problems on the JAR files in the lib directory? Shrug. The problem was an older version of fop.jar on the CLASSPATH. That is, the build is, at some point, dependent on the CLASSPATH, which doesn't seem to be a good idea. Peter
Re: Configuring Netbeans - missing org.apache.fop.fonts
Well, using the CLASSPATH env variable begs for trouble. I consider it a mistake of Java 1.0 that has been carried on until today. Good thing you found the problem. BTW, Peter, are you aware that the Folio website reports an error? On 18.01.2009 10:37:40 Peter B. West wrote: Jeremias Maerki wrote: I have no idea what's going wrong. It seems to work for everyone else. In my log output with Ant 1.7 and the -d option I get different log output. For example, Ant includes the full classpath for the javac task in the resourcegen target which doesn't seem to happen on your end. But unfortunately, Ant doesn't log the effective classpath for the taskdef task at all, not even the setup of the libs-build-classpath and libs-build-tools-classpath early in build.xml which are used by the taskdef. What does ant init spit out? Have you checked for permission problems on the JAR files in the lib directory? Shrug. The problem was an older version of fop.jar on the CLASSPATH. That is, the build is, at some point, dependent on the CLASSPATH, which doesn't seem to be a good idea. Peter Jeremias Maerki
Re: Configuring Netbeans - missing org.apache.fop.fonts
Jeremias Maerki wrote: That's weird. It works for me (well, I'm not using NetBeans) and for Gump, too. Line 355, that's the eventResourceGenerator for the event processing stuff. That task uses the normal classpaths set up for FOP: all JARs (*.jar) in lib and lib/build plus some compiled classes in the build directory. I don't assume you've manipulated the basedir property because that would probably have led to problems earlier in the script. I'd run the Ant script with -d or -v to see what's going on. On 24.12.2008 01:36:08 Peter B. West wrote: Yes, I know. When I checkout I get a lib directory with xmlgraphics-commons-1.4svn. I make no changes. When I then build with ant clean; ant package BUILD FAILED /home/pbw/NetBeansProjects/fop-trunk/build.xml:355: java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/XMLizable I tried linking xmlgraphics-commons-1.4svn to xmlgraphics-commons.jar, but it makes no difference. Peter Jeremias Maerki wrote: XMLizable is in xmlgraphics-commons.jar. On 23.12.2008 05:19:25 Peter B. West wrote: I just tried to do a clean checkout, build and create a NetBeans project. Form a previous experience, I put ant.jar. qdox.jar and XMLUnit.jar in the lib directory, and tried to build 'package' from the command line. Got a class not found fro XMLizable in one of the event producer tasks. -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ Jeremias, Still failing with revision 735275. Here's the tail of 'ant -d jar-main'. resourcegen: [mkdir] Skipping /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes because it already exists. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/src/codegen/java with patternSet{ includes: [**/*.java] excludes: [] } [javac] org/apache/fop/tools/EventConventionException.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventConventionException.class is up to date. [javac] org/apache/fop/tools/EventProducerCollector.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventProducerCollector.class is up to date. [javac] org/apache/fop/tools/EventProducerCollectorTask.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventProducerCollectorTask.class is up to date. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/src/codegen/java with patternSet{ includes: [**/*.xsl] excludes: [] } [copy] org/apache/fop/tools/merge-translation.xsl omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/merge-translation.xsl is up to date. [copy] org/apache/fop/tools/model2translation.xsl omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/model2translation.xsl is up to date. [copy] No sources found. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/lib/build with patternSet{ includes: [*.jar] excludes: [] } Finding class org.apache.fop.tools.EventProducerCollectorTask Loaded from /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes org/apache/fop/tools/EventProducerCollectorTask.class Class org.apache.tools.ant.Task loaded from parent loader (parentFirst) Class org.apache.fop.tools.EventProducerCollectorTask loaded from ant loader (parentFirst) Class java.lang.Object loaded from parent loader (parentFirst) Class java.lang.Throwable loaded from parent loader (parentFirst) Class java.io.IOException loaded from parent loader (parentFirst) Finding class org.apache.fop.tools.EventConventionException Loaded from /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes org/apache/fop/tools/EventConventionException.class Class java.lang.Exception loaded from parent loader (parentFirst) Class org.apache.fop.tools.EventConventionException loaded from ant loader (parentFirst) Class java.lang.ClassNotFoundException loaded from parent loader (parentFirst) Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst) Class org.apache.tools.ant.types.selectors.FileSelector loaded from parent loader (parentFirst) Class org.apache.tools.ant.Project loaded from parent loader (parentFirst) Class java.util.List loaded from parent loader (parentFirst) Class javax.xml.transform.TransformerException loaded from parent loader (parentFirst) Class java.io.FileNotFoundException loaded from parent loader (parentFirst) Class javax.xml.transform.Source loaded from parent loader (parentFirst) Class javax.xml.transform.Result loaded from parent loader (parentFirst) Class java.io.OutputStream loaded from parent loader (parentFirst) Class java.io.FileOutputStream loaded from parent loader (parentFirst) Class java.io.BufferedOutputStream loaded from parent loader (parentFirst) Class javax.xml.transform.URIResolver loaded from parent loader
Re: Configuring Netbeans - missing org.apache.fop.fonts
Can you provide a list of jars in your trunk/lib directory? -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-tp21126843p21516009.html Sent from the FOP - Dev mailing list archive at Nabble.com.
Re: Configuring Netbeans - missing org.apache.fop.fonts
I have no idea what's going wrong. It seems to work for everyone else. In my log output with Ant 1.7 and the -d option I get different log output. For example, Ant includes the full classpath for the javac task in the resourcegen target which doesn't seem to happen on your end. But unfortunately, Ant doesn't log the effective classpath for the taskdef task at all, not even the setup of the libs-build-classpath and libs-build-tools-classpath early in build.xml which are used by the taskdef. What does ant init spit out? Have you checked for permission problems on the JAR files in the lib directory? Shrug. On 17.01.2009 13:24:42 Peter B. West wrote: Jeremias Maerki wrote: That's weird. It works for me (well, I'm not using NetBeans) and for Gump, too. Line 355, that's the eventResourceGenerator for the event processing stuff. That task uses the normal classpaths set up for FOP: all JARs (*.jar) in lib and lib/build plus some compiled classes in the build directory. I don't assume you've manipulated the basedir property because that would probably have led to problems earlier in the script. I'd run the Ant script with -d or -v to see what's going on. On 24.12.2008 01:36:08 Peter B. West wrote: Yes, I know. When I checkout I get a lib directory with xmlgraphics-commons-1.4svn. I make no changes. When I then build with ant clean; ant package BUILD FAILED /home/pbw/NetBeansProjects/fop-trunk/build.xml:355: java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/XMLizable I tried linking xmlgraphics-commons-1.4svn to xmlgraphics-commons.jar, but it makes no difference. Peter Jeremias Maerki wrote: XMLizable is in xmlgraphics-commons.jar. On 23.12.2008 05:19:25 Peter B. West wrote: I just tried to do a clean checkout, build and create a NetBeans project. Form a previous experience, I put ant.jar. qdox.jar and XMLUnit.jar in the lib directory, and tried to build 'package' from the command line. Got a class not found fro XMLizable in one of the event producer tasks. -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ Jeremias, Still failing with revision 735275. Here's the tail of 'ant -d jar-main'. resourcegen: [mkdir] Skipping /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes because it already exists. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/src/codegen/java with patternSet{ includes: [**/*.java] excludes: [] } [javac] org/apache/fop/tools/EventConventionException.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventConventionException.class is up to date. [javac] org/apache/fop/tools/EventProducerCollector.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventProducerCollector.class is up to date. [javac] org/apache/fop/tools/EventProducerCollectorTask.java omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/EventProducerCollectorTask.class is up to date. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/src/codegen/java with patternSet{ includes: [**/*.xsl] excludes: [] } [copy] org/apache/fop/tools/merge-translation.xsl omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/merge-translation.xsl is up to date. [copy] org/apache/fop/tools/model2translation.xsl omitted as /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes/org/apache/fop/tools/model2translation.xsl is up to date. [copy] No sources found. fileset: Setup scanner in dir /home/pbw/NetBeansProjects/fop-trunk/trunk/lib/build with patternSet{ includes: [*.jar] excludes: [] } Finding class org.apache.fop.tools.EventProducerCollectorTask Loaded from /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes org/apache/fop/tools/EventProducerCollectorTask.class Class org.apache.tools.ant.Task loaded from parent loader (parentFirst) Class org.apache.fop.tools.EventProducerCollectorTask loaded from ant loader (parentFirst) Class java.lang.Object loaded from parent loader (parentFirst) Class java.lang.Throwable loaded from parent loader (parentFirst) Class java.io.IOException loaded from parent loader (parentFirst) Finding class org.apache.fop.tools.EventConventionException Loaded from /home/pbw/NetBeansProjects/fop-trunk/trunk/build/codegen-classes org/apache/fop/tools/EventConventionException.class Class java.lang.Exception loaded from parent loader (parentFirst) Class org.apache.fop.tools.EventConventionException loaded from ant loader (parentFirst) Class java.lang.ClassNotFoundException loaded from parent loader (parentFirst) Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst) Class org.apache.tools.ant.types.selectors.FileSelector loaded from
Re: Configuring Netbeans - missing org.apache.fop.fonts
Hi, I was able to do a clean build in Netbeans 6.5. If I have time over the weekend, I'll update the wiki. There are a number of changes since netbeans 4 - It's actually a whole lot easier now. Phil -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-tp21126843p21143676.html Sent from the FOP - Dev mailing list archive at Nabble.com.
Configuring Netbeans - missing org.apache.fop.fonts
Hi, Hope you may help me out. I am configuring netbeans 6.5 with the latest FOP trunk. I am getting an import error for the following: import org.apache.fop.fonts.*; and import javax.media.* However, I am able to do a clean build in ant. How can I resolve these in netbeans? Thanks, Phil -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-tp21126843p21126843.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Configuring Netbeans - missing org.apache.fop.fonts
Fop has some generated source files which the ant build creates. Run your ant build first then add the generated sources (build/gensrc) to NetBeans as a second source directory. See also http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide. Manuel -Original Message- From: bonekrusher [mailto:djs...@yahoo.com] Sent: Monday, 22 December 2008 9:17 PM To: fop-dev@xmlgraphics.apache.org Subject: Configuring Netbeans - missing org.apache.fop.fonts Hi, Hope you may help me out. I am configuring netbeans 6.5 with the latest FOP trunk. I am getting an import error for the following: import org.apache.fop.fonts.*; and import javax.media.* However, I am able to do a clean build in ant. How can I resolve these in netbeans? Thanks, Phil -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-t p21126843p21126843.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Configuring Netbeans - missing org.apache.fop.fonts
Thanks, That has resolved the issue with the fonts. I still am missing: import javax.media.jai.* According to the wiki, there needs to be a source package folder called src/java-1.4 However, I can't seem to find it. Any thoughts? Phil -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-tp21126843p21127306.html Sent from the FOP - Dev mailing list archive at Nabble.com.
RE: Configuring Netbeans - missing org.apache.fop.fonts
Never mind I had to download jai-1_1_2_01-lib-windows-i586.exe From: https://jai.dev.java.net/binary-builds.html The wiki is a little outdated. Regards, Phil -- View this message in context: http://www.nabble.com/Configuring-Netbeans---missing--org.apache.fop.fonts-tp21126843p21127678.html Sent from the FOP - Dev mailing list archive at Nabble.com.
Re: Configuring Netbeans - missing org.apache.fop.fonts
I just tried to do a clean checkout, build and create a NetBeans project. Form a previous experience, I put ant.jar. qdox.jar and XMLUnit.jar in the lib directory, and tried to build 'package' from the command line. Got a class not found fro XMLizable in one of the event producer tasks. Manuel Mall wrote: Fop has some generated source files which the ant build creates. Run your ant build first then add the generated sources (build/gensrc) to NetBeans as a second source directory. See also http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide. Manuel -Original Message- From: bonekrusher [mailto:djs...@yahoo.com] Sent: Monday, 22 December 2008 9:17 PM To: fop-dev@xmlgraphics.apache.org Subject: Configuring Netbeans - missing org.apache.fop.fonts Hi, Hope you may help me out. I am configuring netbeans 6.5 with the latest FOP trunk. I am getting an import error for the following: import org.apache.fop.fonts.*; and import javax.media.* However, I am able to do a clean build in ant. How can I resolve these in netbeans? Thanks, Phil -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/
Re: Configuring Netbeans - missing org.apache.fop.fonts
XMLizable is in xmlgraphics-commons.jar. On 23.12.2008 05:19:25 Peter B. West wrote: I just tried to do a clean checkout, build and create a NetBeans project. Form a previous experience, I put ant.jar. qdox.jar and XMLUnit.jar in the lib directory, and tried to build 'package' from the command line. Got a class not found fro XMLizable in one of the event producer tasks. Manuel Mall wrote: Fop has some generated source files which the ant build creates. Run your ant build first then add the generated sources (build/gensrc) to NetBeans as a second source directory. See also http://wiki.apache.org/xmlgraphics-fop/FOPIDESetupGuide. Manuel -Original Message- From: bonekrusher [mailto:djs...@yahoo.com] Sent: Monday, 22 December 2008 9:17 PM To: fop-dev@xmlgraphics.apache.org Subject: Configuring Netbeans - missing org.apache.fop.fonts Hi, Hope you may help me out. I am configuring netbeans 6.5 with the latest FOP trunk. I am getting an import error for the following: import org.apache.fop.fonts.*; and import javax.media.* However, I am able to do a clean build in ant. How can I resolve these in netbeans? Thanks, Phil -- Peter B. West http://cv.pbw.id.au/ Folio http://defoe.sourceforge.net/folio/ Jeremias Maerki