Jeremias,

Thanks for the clarification on what the classes are looking for.

> The files being loaded are found in the
> META-INF/services directory of the various JAR files. I assume that the
> Lotus Domino has a somewhat special way of providing the class loaders.
> As a result the Service class in xmlgraphics-commons.jar doesn't see the
> SPI files with the class names for the renderers in fop.jar.

In addition to fop.jar, I'm including the following:
xmlgraphics-commons-1.2.1.jar
commons-loggin-1.0.4.jar
avalon-framework-4.2.0.jar
batik-all-1.7.jar
commons-io-1.2.1.jar
serializer-2.7.0.jar
xalan-2.7.0.jar
xerceslmpl-2.7.1.jar
xml-apis-1.3.04.jar
xml-apis-ext-1.2.04.jar

Am I missing something?

M.M.

=====================
Hi Mike

On 09.04.2009 18:40:16 Mike.Miller wrote:
>
> I've run into the following error in my attempt to implement the FOP
> package in a Lotus Domino application:
> java.lang.UnsupportedOperationException: Don't know how to handle
> "application/pdf" as an output format. Neither an FOEventHandler, nor a
> Renderer could be found for this output format.
> at
>
org.apache.fop.render.RendererFactory.createFOEventHandler(RendererFactory.java:212)

>
> I found this post here:
>
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200605.mbox/%[email protected]%3e

>
> ...and a post related to Lotus Domino here:
>
http://mail-archives.apache.org/mod_mbox/xmlgraphics-fop-users/200610.mbox/%3cof6a4d513c.8f587b6d-onc125720d.003ed103-c125720d.003fa...@timetoact.de%3e

>
> ...but setting the element mapping to the various classes
(FOElementMapping
> , SVGElementMapping, BatikExtensionElementMapping, XMPElementMapping,
> RDFElementMapping, PSExtensionElementMapping) does not seem to have the
> same result as reading the properties files.
>
> My preferred method is to set the properties directly and not have to
have
> read the properties files located on the file system.

The properties are not really read from the file system. We're using the
"Service Provider Mechanism" of the JAR specification to look up
plug-ins in the classpath. The files being loaded are found in the
META-INF/services directory of the various JAR files. I assume that the
Lotus Domino has a somewhat special way of providing the class loaders.
As a result the Service class in xmlgraphics-commons.jar doesn't see the
SPI files with the class names for the renderers in fop.jar. Since I
don't know Lotus Domino, I don't know how to help. The general advice is
to make sure that the various JARs needed by FOP end up in the same
class loader. Not sure how you can apply that to Lotus Domino.

> Is this even possible
> using the approach Tobias describes?

Tobias used a work-around by registering the various plug-ins manually.
But there are so many plug-ins at different points in FOP so I don't
think that approach is really practical.

I would suggest to ask Lotus Domino support for help with the
information above. Or maybe we have a Lotus Domino expert here who has
some ideas. Good luck!


Jeremias Maerki

This email message is intended for the sole use of the intended
recipient(s) and may contain confidential or privileged information.  Any
unauthorized review, use, disclosure or distribution is prohibited.  If you
are not the intended recipient, please contact the sender by reply email
and destroy and delete all copies of the original message.

Reply via email to