You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by James McLean <ja...@matrixlinks.ca> on 2003/04/06 08:11:16 UTC
Re: Sample PDF
The sitemap appears to be in good order. I spent most of the day trying
alternate configurations of Tomcat and Cocoon with no success. However, I
encountered more information, in what appears to be the same error
message, after installing a different version of Tomcat. I understand that
previous versions of Cocoon required an X11 server (or virtual
framebuffer) to be running in order for FOP to function - is this still
true?
Thanks,
James
Here are the interesting segments of the latest error message:
2003-04-06 00:47:29 StandardWrapperValve[Cocoon2]: Servlet.service() for
servlet Cocoon2 threw exception
javax.servlet.ServletException: Servlet execution threw an exception
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
[snip]
----- Root Cause -----
java.lang.NoClassDefFoundError: org/apache/batik/bridge/UserAgent
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:115)
at
org.apache.cocoon.components.renderer.ExtendableRendererFactory.class$(ExtendableRendererFactory.java:69)
at
org.apache.cocoon.components.renderer.ExtendableRendererFactory.<init>(ExtendableRendererFactory.java:77)
at
org.apache.cocoon.components.renderer.ExtendableRendererFactory.<clinit>(ExtendableRendererFactory.java:73)
at
org.apache.cocoon.serialization.FOPSerializer.<clinit>(FOPSerializer.java:92)
at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Class.java:232)
at
org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:163)
[snip]
cocoon-users@xml.apache.org writes:
>To my mind, the crucial bit:
>
>> ----- Root Cause -----
>> java.lang.NoClassDefFoundError
>> at java.lang.Class.newInstance0(Native Method)
>> at java.lang.Class.newInstance(Class.java:232)
>> at
>> org.apache.avalon.excalibur.component.DefaultComponentFactory.newInsta
>> nce(DefaultComponentFactory.java:163)
>> at
>
>There's a component that Cocoon can't find. Make sure that you've got an
>entry
>something like:
>
> <map:serializer name="fo2pdf"
>src="org.apache.cocoon.serialization.FOPSerializer" ...
>
>in your sitemap. If not, get that line from the sitemap in the original
>package and try
>again.
>
>HTH.
>
>Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re(2): Sample PDF
Posted by James McLean <ja...@matrixlinks.ca>.
Thank you for your response. I am currently using JVM 1.3.1. I have tried
running X11, and the PJA awt replacement (this incurred the SVG serializer
to stop functioning correctly), again with no success. It would appear
that I'm running out of options... It could be problem with standards
compliance within the Apple JVM. Does anyone have experience with Cocoon
or FOP on MacOS X?
Sincerely,
James
cocoon-users@xml.apache.org writes:
>An X11 server was needed for Batik, which it appears from the stack trace
>that FOP
>is using. With Java 14.x (not sure exactly which), you can use AWT in
>headless
>mode, which means that an X11 server isn't required. What version of Java
>are you
>using?
>
>Regards, Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: Sample PDF
Posted by Upayavira <uv...@upaya.co.uk>.
On 6 Apr 2003 at 1:11, James McLean wrote:
> The sitemap appears to be in good order. I spent most of the day
> trying alternate configurations of Tomcat and Cocoon with no success.
> However, I encountered more information, in what appears to be the
> same error message, after installing a different version of Tomcat. I
> understand that previous versions of Cocoon required an X11 server (or
> virtual framebuffer) to be running in order for FOP to function - is
> this still true?
An X11 server was needed for Batik, which it appears from the stack trace that FOP
is using. With Java 14.x (not sure exactly which), you can use AWT in headless
mode, which means that an X11 server isn't required. What version of Java are you
using?
Regards, Upayavira
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org