All, We have found a fix to the problem. I had the server admin upgrade the Cold fusion MX 6.0 to 6.1 and the problem went away. The version we were running was one of the first MX releases. Not sure what they fixed in the new version, but whatever it was, did the trick.
A little background info on some other things we tried which might prove useful to others. As mentioned in the original posting, command line worked and when we deployed the FOP servlet as its own application it too worked. It was only when we deployed it from within the Cold fusion MX environment that it did not work. Given that, we suspected something with Cold fusion, but while we waited for the admin to install the new version, we tried a couple of other things. 1) When we installed the original cold fusion in order to get the charting tool to work in a headless environment, we had to install some graphics emulation tool. Well, we tried removing that. Once we did that, the standalone application stopped working. Even though we are not explicitly calling any svg tags in the xsl file, everything stopped working. 2) The next thing we tried was to remove the addElementMapping in the driver.java to not include the SVGElementMapping (as suggested by Glen). Upon recompiling and trying that on the cold fusion setup, we got a different error. Seems that it made it past the addElementMapping calls, but then threw a ClassCastException once it got to the Services.providers call. Now, if we ran the standalone application, everything seemed to run fine, however when we opened the resulting PDF file the embedded image was no longer there. While, we are not using any svg tags in the xsl file, it seems to me that some how the image embedding must still rely upon the SVGElementMapping provider. Hope this helps. Thanks to all for your quick responses. Mark -----Original Message----- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: Friday, October 10, 2003 6:28 AM To: [EMAIL PROTECTED] Subject: RE: Running FOP on ColdFusion MX >From: Glen Mazza <[EMAIL PROTECTED]> > >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 <snip/> Glen, Mark says in his original post that it does work fine from command line. I agree that the Error about failed element mapping is masking the true cause of the problem. Since the failure occurs when adding the SVGElement, then a good guess at the true cause is Batik.jar not in the classpath. In my experience if something works on the command line and not in a J2EE server, 9 times out of 10 the problem is classpath related. Chris _________________________________________________________________ On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/msnmobile --------------------------------------------------------------------- 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]
