You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Walker, John" <jw...@neospire.net> on 2007/07/20 11:35:11 UTC

fop with tomcat5.5 and jdk5

I'm wondering if the Application server specific documentation for using fop within a servlet is no longer available or applicable.

I've got an instance of Tomcat 5.5 running in JDK5 returning the following upon request to create a pdf:

ERROR http-8080-Processor25 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/servlet].[action] - Servlet.service() for serv
let action threw exception
java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/Service
at org.apache.fop.render.RendererFactory.discoverRenderers(RendererFactory.java:267)
at org.apache.fop.render.RendererFactory.<init>(RendererFactory.java:57)
at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:75)
........(truncated)

Adding xmlgraphics-commons-1.0.jar to the classpath doesn't make a difference.

Our developer has xmlgraphics-commons-1.1.jar and the fop.jar in his WEB-INF/lib directory of the deployment as well.

And notes on how to properly deploy fop and it's required libraries would be helpful.

-johnny

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


Re: fop with tomcat5.5 and jdk5

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
A quick test shows no problems deploying the example fop.war under Sun
JDK 1.5.0_10 on Tomcat 5.5.23.

If xmlgraphics-commons.jar and fop.jar are both in the WEB-INF/lib
directory (i.e. both end up in the same place in the class loader
hierarchy) then this should work fine. Maybe another copy of fop.jar has
been placed somewhere higher in the class loader hierarchy, i.e. check
common/lib, common/endorsed, server/lib, shared/lib and the JDK's
jre/lib/ext and jre/lib/endorsed directories for superfluous fop.jar
copies.

On 20.07.2007 11:35:11 Walker, John wrote:
> I'm wondering if the Application server specific documentation for using fop within a servlet is no longer available or applicable.
> 
> I've got an instance of Tomcat 5.5 running in JDK5 returning the following upon request to create a pdf:
> 
> ERROR http-8080-Processor25 org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/servlet].[action] - Servlet.service() for serv
> let action threw exception
> java.lang.NoClassDefFoundError: org/apache/xmlgraphics/util/Service
> at org.apache.fop.render.RendererFactory.discoverRenderers(RendererFactory.java:267)
> at org.apache.fop.render.RendererFactory.<init>(RendererFactory.java:57)
> at org.apache.fop.apps.FopFactory.<init>(FopFactory.java:75)
> ........(truncated)
> 
> Adding xmlgraphics-commons-1.0.jar to the classpath doesn't make a difference.
> 
> Our developer has xmlgraphics-commons-1.1.jar and the fop.jar in his WEB-INF/lib directory of the deployment as well.
> 
> And notes on how to properly deploy fop and it's required libraries would be helpful.
> 
> -johnny



Jeremias Maerki


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