cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lehtonen, Mika" <m...@digikartta.net>
Subject Re: Newer FOP to Cocoon 2.1.11
Date Wed, 13 Feb 2008 22:17:04 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Superb!<br>
<br>
..but still too complicated for me, I'm afraid.<br>
<br>
Could you be more specific on compling part? I tried to compile that
code with javac (1.6.0_04) and got 73 errors. Then I "stole" the
classes from the 2.2 installation of which I tested yesterday and did
what you told to do. I managed to get cocoon standing but not very
good. Even some pdf can be produced but this is what I mainly get.<br>
<br>
reg. mika <span class="moz-smiley-s13"><span> :-! </span></span><br>
<br>
<h1>HTTP Status 500 - </h1>
<hr noshade="noshade" size="1">
<p><b>type</b> Exception report</p>
<p><b>message</b> </p>
<p><b>description</b> <u>The server encountered an internal error
()
that prevented it from fulfilling this request.</u></p>
<p><b>exception</b> </p>
<pre>javax.servlet.ServletException: Servlet execution threw an exception
</pre>
<p><b>root cause</b> </p>
<pre>java.lang.NoSuchMethodError: org.apache.cocoon.blocks.fop.FOPNGSerializer.getLogger()Lorg/apache/commons/logging/Log;
	org.apache.cocoon.blocks.fop.FOPNGSerializer.resolve(FOPNGSerializer.java:230)
	org.apache.fop.apps.FOURIResolver.resolve(FOURIResolver.java:129)
	org.apache.fop.apps.FopFactory.resolveURI(FopFactory.java:729)
	org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:385)
	org.apache.fop.apps.FOUserAgent.resolveURI(FOUserAgent.java:358)
	org.apache.fop.image.ImageFactory.loadImage(ImageFactory.java:190)
	org.apache.fop.image.ImageLoader.loadImage(ImageLoader.java:56)
	org.apache.fop.image.ContextImageCache.getImage(ImageFactory.java:432)
	org.apache.fop.image.ImageFactory.getImage(ImageFactory.java:157)
	org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:70)
	org.apache.fop.fo.FObj.processNode(FObj.java:125)
	org.apache.fop.fo.FOTreeBuilder$MainFOHandler.startElement(FOTreeBuilder.java:320)
	org.apache.fop.fo.FOTreeBuilder.startElement(FOTreeBuilder.java:185)
	org.apache.cocoon.xml.AbstractXMLPipe.startElement(AbstractXMLPipe.java:95)
	org.apache.xml.serializer.ToXMLSAXHandler.closeStartTag(ToXMLSAXHandler.java:206)
	org.apache.xml.serializer.ToSAXHandler.flushPending(ToSAXHandler.java:279)
	org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:245)
	org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
	org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1376)
	org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
	org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
	org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
	org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3447)
	org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:408)
	org.apache.cocoon.xml.AbstractXMLPipe.endDocument(AbstractXMLPipe.java:56)
	org.apache.cocoon.transformation.TraxTransformer.endDocument(TraxTransformer.java:586)
	org.apache.cocoon.generation.DirectoryGenerator.generate(DirectoryGenerator.java:266)
	org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLPipeline(AbstractProcessingPipeline.java:572)
	org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(AbstractProcessingPipeline.java:481)
	org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(SerializeNode.java:144)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.handleCocoonRedirect(ConcreteTreeProcessor.java:297)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.access$000(ConcreteTreeProcessor.java:48)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor$TreeProcessorRedirector.cocoonRedirect(ConcreteTreeProcessor.java:338)
	org.apache.cocoon.environment.ForwardRedirector.redirect(ForwardRedirector.java:60)
	org.apache.cocoon.components.flow.AbstractInterpreter.forwardTo(AbstractInterpreter.java:210)
	org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.forwardTo(FOM_JavaScriptInterpreter.java:865)
	org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.forwardTo(FOM_Cocoon.java:701)
	org.apache.cocoon.components.flow.javascript.fom.FOM_Cocoon.jsFunction_sendPage(FOM_Cocoon.java:270)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.mozilla.javascript.MemberBox.invoke(MemberBox.java:145)
	org.mozilla.javascript.FunctionObject.call(FunctionObject.java:471)
	org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:3085)
	org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2251)
	org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:161)
	org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:340)
	org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2758)
	org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:159)
	org.mozilla.javascript.Context.call(Context.java:489)
	org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1556)
	org.mozilla.javascript.ScriptableObject.callMethod(ScriptableObject.java:1526)
	org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:841)
	org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:124)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:118)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:47)
	org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.invoke(MatchNode.java:108)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:143)
	org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:69)
	org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:93)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:235)
	org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:177)
	org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:254)
	org.apache.cocoon.Cocoon.process(Cocoon.java:699)
	org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
</pre>
<br>
<br>
Kai M&uuml;tz kirjoitti:
<blockquote cite="mid:IGEGJBGDBKJHILGCKKHLKEJDCFAA.kmuetz@web.de"
 type="cite">
  <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:users-return-93940-kmuetz=web.de@cocoon.apache.org">users-return-93940-kmuetz=web.de@cocoon.apache.org</a>
&lt;&gt; wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Hi,

this is a question, I've been reading mails about a very long time,
but haven't been still get a proper answer to it.

So I want 0.9x or 1.xx or NG or whatever FOP to Cocoon 2.1.x because
the
0.20.5 is so restricted. 0.94 would have all the features I need. So
how it is done?

 From where can I download a proper FOPxxyy.jar?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
- Download FOP 0.94

<a class="moz-txt-link-freetext" href="http://xmlgraphics.apache.org/fop/download.html">http://xmlgraphics.apache.org/fop/download.html</a>

Follow the link to a FOP Distribution mirror.

  </pre>
  <blockquote type="cite">
    <pre wrap="">What else do I have to do? I mean step by step; I am not an expert
on
these issues, just using the software.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
- Download the Next Generation FOP Serializer (FOPNGSerializer.java)

<a class="moz-txt-link-freetext" href="http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-fop/cocoon-fop-ng">http://svn.apache.org/repos/asf/cocoon/trunk/blocks/cocoon-fop/cocoon-fop-ng</a>
-impl/src/main/java/org/apache/cocoon/blocks/fop/

- Compile it
- Put it in your classpath
- Replace the fop.jar in your cocoon installation
- Add xmlgraphics-commons-1.2.jar to your cocoon installation
- Disable the "old" FOPSerializer in your root sitemap
- Register the FOPNGSerializer in your sitemap

This works within my cocoon 2.1.8 installation.

Kai


---------------------------------------------------------------------
To unsubscribe, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-unsubscribe@cocoon.apache.org">users-unsubscribe@cocoon.apache.org</a>
For additional commands, e-mail: <a class="moz-txt-link-abbreviated" href="mailto:users-help@cocoon.apache.org">users-help@cocoon.apache.org</a>
  </pre>
</blockquote>
<br>
</body>
</html>

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


Mime
View raw message