You must have X installed for batik to work or jump through incredible
hoops to make "headless" awt work..  Best thing to do (and highest
performing!) is to install xvfb (an in-memory-only X server).

Alternatively you can comment out all the batik and fo entries in the
sitemap.  Either will work.  Just went through this just now on
virtually the same setup.

One piece of advice:  tomcat 4.0.3 is a dud  --  use 4.0.4b2 or 4.0.1
but not 4.0.2/3  they both fired but got jammed in the barrel.  You have
to jump hoops to get cocoon running on 4.0.3 (see long version of the
instructions) and then you get to experience all kinds of weird errors
when you install other things.

You'll have to compile special versions of avalon and excaliber for jdk
1.4.0 -- that one is looking like a dud too.  I've got it on my PC but
I'm waiting for 1.4.1 or 1.4.0_01 to install it on my server.

I have RH 7.2 httpd 2.0.35/ TC 4.0.4b2 and Java 1.3.1_02 (_03 has a
weird zip file corruption bug)...

wow thats a lot of gotchas for one email...  hope that helps.

-Andy

On Sun, 2002-04-21 at 16:13, Matt Heffron wrote:
> Good day
> I'm experiencing and error when trying to access Cocoon. Snippet of the 
> error generated is included at the end of this email. Some system info:
> 
> OS - Linux (Redhat  7.2)
> HTTP - Apache  2.0.xx
> Servlet Container - Tomcat 4.0.3
> Cocoon ver - 2.0
> Java - 1.4.0
> 
> Hope this is sufficient information.. Other servlets (examples, etc) do run 
> successfully. The error listed below is generated before any information is 
> displayed when I attempt to access http://my.local.host/cocoon/. I've been 
> through the install instructions and have followed them to the letter with 
> the exception of the "batik-libs-xxx.jar" file, which I have been unable to 
> locate anywhere. Thinking it might be a config item that changed but had not 
> yet been updated in the docs, I tried the next best thing I could think of 
> with batik-all-xxx.jar. (Yes, I do know the "x"'s are numbers;) ) I've also 
> been through the list archives, but was unable to resolve this problem.
> 
> Thanks in advance for any help you can provide.
> 
> Matt Heffron
> =============
> =Error Message=
> =============
> Cocoon 2 - Internal server error
> 
> type fatal
> 
> message Type 'svg2png' is not defined for 'serialize' at 
> file:/var/tomcat4/webapps/cocoon/sitemap.xmap:708:36
> 
> description 
> org.apache.avalon.framework.configuration.ConfigurationException: Type 
> 'svg2png' is not defined for 'serialize' at 
> file:/var/tomcat4/webapps/cocoon/sitemap.xmap:708:36
> 
> sender org.apache.cocoon.servlet.CocoonServlet
> 
> source Cocoon servlet
> 
> request-uri
> 
> /cocoon/
> 
> path-info
> 
> 
> 
> stack-trace
> 
> org.apache.avalon.framework.configuration.ConfigurationException: Type 
> 'svg2png' is not defined for 'serialize' at 
> file:/var/tomcat4/webapps/cocoon/sitemap.xmap:708:36
>       at 
> 
>org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.getTypeForStatement(DefaultTreeBuilder.java:553)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.SerializeNodeBuilder.buildNode(SerializeNodeBuilder.java:85)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:156)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.MatchNodeBuilder.buildNode(MatchNodeBuilder.java:121)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelineNodeBuilder.buildNode(PipelineNodeBuilder.java:122)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:156)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNodeBuilder.buildNode(PipelinesNodeBuilder.java:73)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodesList(AbstractParentProcessingNodeBuilder.java:156)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNodeBuilder.buildChildNodes(AbstractParentProcessingNodeBuilder.java:172)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.sitemap.SitemapNodeBuilder.buildNode(SitemapNodeBuilder.java:76)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.createTree(DefaultTreeBuilder.java:358)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:426)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.DefaultTreeBuilder.build(DefaultTreeBuilder.java:389)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.setupRootNode(TreeProcessor.java:357)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:321)
>       at 
> 
>org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:293)
>       at org.apache.cocoon.Cocoon.process(Cocoon.java:584)
>       at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1007)
>       at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>       at 
> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>       at 
> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>       at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>       at 
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
>       at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>       at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>       at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>       at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>       at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>       at 
> 
>org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:217)
>       at 
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
>       at java.lang.Thread.run(Thread.java:536)
> 
> 
> 
> 
> 
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 
-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
                            format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
                        - fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to