xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samuel Remacle" <srema...@hotmail.com>
Subject RE: FOP embedding problem (NoClassDefFoundError)
Date Tue, 19 Jul 2005 17:17:22 GMT
<html><div style='background-color:'><DIV class=RTE>
<P>This is not a web application, so I'm not using Tomcat...</P>
<P><BR><BR>&gt;From: "Jeff Stanley" &lt;jstanley@infinitecampus.com&gt;<BR>&gt;Reply-To:
fop-users@xmlgraphics.apache.org<BR>&gt;To: &lt;fop-users@xmlgraphics.apache.org&gt;<BR>&gt;Subject:
RE: FOP embedding problem (NoClassDefFoundError)<BR>&gt;Date: Tue, 19 Jul 2005 10:30:49
-0500<BR>&gt;<BR>&gt;Sounds like your .jar files are not being shared
across different<BR>&gt;web-apps, do you have shared jar files in the common lib
folder of<BR>&gt;Tomcat?<BR>&gt;<BR>&gt;________________________________<BR>&gt;<BR>&gt;From:
Samuel Remacle [mailto:sremacle@hotmail.com]<BR>&gt;Sent: Tuesday, July 19, 2005
2:45 AM<BR>&gt;To: fop-users@xmlgraphics.apache.org<BR>&gt;Subject: FOP
embedding problem (NoClassDefFoundError)<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt;Hello,<BR>&gt;<BR>&gt;I'm
a young programmer and I'd like to embed FOP in my application, but<BR>&gt;unfortunately
I'm having some problems to do 
this.<BR>&gt;<BR>&gt;First of all, I tried to embed FOP using the code
given in the sample<BR>&gt;application ExampleFO2PDF (available with FOP), but when
I tried to test<BR>&gt;my application, I got the following error:<BR>&gt;<BR>&gt;Exception
in thread main<BR>&gt;java.lang.NoClassDefFoundError: org.apache.fop.fo.PropertyListMaker<BR>&gt;<BR>&gt;&nbsp;&nbsp;at
checked the code of my application, but I couldn't find any error (the<BR>&gt;code
is almost the same as in the sample apllication).<BR>&gt;<BR>&gt;So I
decided to test the sample application ExampleFO2PDF, and I got the<BR>&gt;same
error (I was expecting it).<BR>&gt;<BR>&gt;After 
seaching the web for a solution, I found (in a CVS commit) the<BR>&gt;code of the
"missing interface" (PropertyListMaker). So I added this<BR>&gt;interface to the
package and I tested again both applications, and then<BR>&gt;I got another error:<BR>&gt;<BR>&gt;Exception
in thread main<BR>&gt;java.lang.NoClassDefFoundError: org.apache.fop.fo.ElementMapping$Maker<BR>&gt;<BR>&gt;&nbsp;&nbsp;at
searched the web once again but I could not find the code of the<BR>&gt;"missing
class". So I decided to test the FOP application (given with<BR>&gt;the FOP API).
I tested it with y FO file, and it worked, I got my PDF<BR>&gt;file without any

problem. So I tried to embed FOP in my application<BR>&gt;using the code the the
FOP application (wich is different from the code<BR>&gt;of the sample application),
but I got the same errors.<BR>&gt;<BR>&gt;The IDE I'm working with is
Oracle JDeveloper, I added the files<BR>&gt;fop.jar, avalon-framework-cvs-20020806.jar
and ant-1.5.1.jar to the<BR>&gt;environment, I did not add the Xalan and Batik JARs
to the environment<BR>&gt;because I'm using more recent versions of Xalan and Batik.
I downloaded<BR>&gt;FOP on the Apache website.<BR>&gt;<BR>&gt;I
hope that this mail is complete and I would be glad if you could help<BR>&gt;me
to solve this problem.<BR>&gt;<BR>&gt;Thanks<BR>&gt;<BR>&gt;Samuel
To<BR>&gt;unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org For<BR>&gt;additional
commands, e-mail: fop-users-help@xmlgraphics.apache.org<BR></P></DIV></div></html>

To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

View raw message