Mark, Let's do a little bit more detective work on your side. Let's see if the issue is the Batik/SVG libraries (which, along with several other libraries, are very closely intertwined with FOP, regardless of whether or not you use them) or with the ColdFusion.
Try to run FOP from the command line--FOP.bat or FOP.sh--using any of the .fo samples in the "examples" directory. fop helloworld.fo helloworld.pdf Do you get the same error--or does it work fine? If the latter, I don't think the SVG is the issue--something may be wrong with the ColdFusion setup. If the former, you may wish to download a new copy of 0.20.5--something might be wrong with the FOP libraries you're using. If command-line works fine, then the next step--unfortunately--may need to be for you to download the 0.20.5 source build, modify the apps.Driver class to (1) get the actual error message coming from the ClassCastException and/or (2) comment out the loading of the SVGElementMapping. (Run "ant package" to do the build.) I would try (1) before (2)--it may be an obvious error. Glen --- "Gonzalez, Mark A" <[EMAIL PROTECTED]> wrote: > As far as I know, we are not trying to use any SVG > elements. > We are just taking an XML:FO file and attempting to > convert it into a > PDF file. > > Even if we are not using SVG, it will still try to > use the > SVGElementMapping? > > Thanks > Mark > > -----Original Message----- > From: Glen Mazza [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 09, 2003 4:17 PM > To: [EMAIL PROTECTED] > Subject: RE: Running FOP on ColdFusion MX > > > I'm not sure. This code is always run whenever FOP > is activated, at > Driver initialization, and I can't find others > having this issue in the > user archives. > > The code in question is here: > > http://cvs.apache.org/viewcvs.cgi/xml-fop/src/org/apache/fop/apps/Attic/ > Driver.java?annotate=1.36.2.10 > > You're throwing a ClassCastException at line 464, > which is producing this error. FOP's boilerplate > for > this message ("XXXX is not an ElementMapping") might > > be masking the real problem. Also of note is that > another mapper at line 313 presumably did load > successfully (the one at 314 failed). So there > might > be something wrong with your your Batik library > (which > FOP uses for SVG). That or your ColdFusion setup > somehow is not making the SVGElementMapping visible. > > > Glen > > > --- "Gonzalez, Mark A" <[EMAIL PROTECTED]> > wrote: > > FOP version 0.20.5 > > > > Mark > > > > -----Original Message----- > > From: Glen Mazza [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 09, 2003 3:48 PM > > To: [EMAIL PROTECTED] > > Subject: Re: Running FOP on ColdFusion MX > > > > > > What version of FOP are you running? > > > > --- "Gonzalez, Mark A" <[EMAIL PROTECTED]> > > wrote: > > > Hi, > > > > > > I am running into an interesting problem when > > trying > > > to run FOP on Cold > > > Fusion MX for J2EE server. The current > > configuration > > > is WebSphere 5.0, > > > running CFMX for J2EE. > > > When we try to execute the servlet from the > > > coldfusion page (using the > > > java object commands) > > > the process starts running but then throws an > > > exception. The stack > > > trace is as follows: > > > > > > Error = java.lang.IllegalArgumentException: > > > org.apache.fop.svg.SVGElementMapping is not an > ElementMapping > > > at > > > > > > org.apache.fop.apps.Driver.addElementMapping(Driver.java:464) > > > at > > > > > > org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314) > > > at > > > > > > __________________________________ > > Do you Yahoo!? > > The New Yahoo! Shopping - with improved product > > search > > http://shopping.yahoo.com > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product > search > http://shopping.yahoo.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
