Re: Which logging library is needed to run fop 0.20.4 servlets
Logging has changed from 0.20.3 to 0.20.4. We were able to eliminate the need for logkit. Instead we use the logger interface from Avalon which also has a ConsoleLogger which became our new standard logger. I don't know if you really use the FOPServlet from the distribution, but if you do, you should also update the servlet when you upgrade FOP (because the logging has changed). Probably you have the old servlet that still wants to use a LogKit logger. Look in the contrib/servlet directory in the distribution. The libs you need to run the FOP Servlet are: fop.jar, batik.jar, avalon-framework*.jar. logkit.jar is not needed anymore. Look here for details about logging in 0.20.4: http://xml.apache.org/fop/embedding.html I hope this helps. On 22.11.2002 22:35:57 Ciot, Thierry wrote: I have searched the FAQ and the mail archive but could not find anything useful. Thanks in advance for answering this question. I am using fop 0.20.4 (fop-0.20.4rc). I cannot use fop within a servlet. I have tested with both tomcat 3.3.1 and Tomcat 4. I get the following error message java.lang.NoClassDefFoundError: org/apache/log/Hierarchy It turns out that the avalon jar file shipped with fop does not contain that class. I have tracked down Hierarchy to belong to the logkit project. I downloaded logkit 1.1 and put the jar file in the lib directory. Now I can proceed further but it still fails when trying to renderFO with the following error message: Location: /fop/servlet/fop Internal Servlet Error:java.lang.NoSuchMethodError: org.apache.fop.apps.Driver.setLogger(Lorg/apache/log/Logger;)V The method now has the following signature: org.apache.fop.apps.Driver.setLogger(org.apache.avalon.framework.logger.Logger); That's the reason for the NoSuchMethodError. This is probably because the setLogger requires a different method parameter. What lib do I need to run a fop servlet? Thierry. Location: /fop/servlet/fop Internal Servlet Error: java.lang.NoClassDefFoundError: org/apache/log/Hierarchy at FopServlet.doGet(FopServlet.java:53) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) snip/ Location: /fop/servlet/fopInternal Servlet Error:java.lang.NoSuchMethodError: org.apache.fop.apps.Driver.setLogger(Lorg/apache/log/Logger;)V at FopServlet.renderFO(FopServlet.java:94) at FopServlet.doGet(FopServlet.java:64) at javax.servlet.http.HttpServlet.service(HttpServlet.java) snip/ Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unknown formatting object null^null
And you don't have that problem when running FOP from the command line? Could you try to rebuild FOP with debug info on (see build.xml, properties). You then get line numbers in stacktraces so it's simpler to identify the problem. And you have relatively new versions of Xerces and Xalan, right? On 22.11.2002 15:08:58 Matthias Kräuter wrote: Hello, I#180;ve got a problem with rendering an fo-file to pdf using an embedded Fop. I get the following exceptions. [reports] [INFO] building formatting object tree [reports] [DEBUG] setting up fonts [reports] [ERROR] Unknown formatting object null^null BUILD FAILED java.lang.NullPointerException at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown Source) at org.apache.fop.tools.DocumentReader.parse(Unknown Source) at org.apache.fop.apps.Driver.render(Unknown Source) I tried out the hints in the list, but none of them really worked. I#180;m using FOP 0.20.4 with included Xalan and Xerces and Xerces Namespace-Awareness set explicitly to 'true'. My fo-File looks like that: ?xml version=1.0 encoding=UTF-8 standalone=no? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set ... /fo:root Does someone know what I#180;m doing wrong? Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: break line
xavier gibouin wrote: and XXX doesn't appear after break lines Again it works fine for me. What FOP version are you talking about and what exactly doesn't work? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading to 0.20.4 problems
[EMAIL PROTECTED] wrote: If I find in bug database Fixed in cvs , what have I to do ? You should either wait till next maintenance release is out or you should be able to work with cvs - you have to check out maintenance branch code and build FOP yourself. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tools for Fo
Paolo Beatrici wrote: Are there any tools that convert, for example, a simple excel, word or other formats to a Fo format or to a xsl/fo format? This can be very userful for the fixed part of a pdf document. Look at http://wh2fo.sourceforge.net. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to make an element disappear completely?
Matthias Brunner wrote: Every element in the source document has an id and the following lines will be at the beginning of every template: fo:inlinexsl:value-of select=concat(name(),':',@id)/ /fo:inline Sounds like you want to mark every formatting object. If that's true, what about fo:marker ? -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]