batik and fop on weblogic 5.1

Discussion in 'XML' started by Benny, Jul 10, 2003.

  1. Benny

    Benny Guest

    Hi i am using fop to generate dynamical pdf documents from a servlet,
    in weblogic 5.1.
    Fop works very fine but i need to generate barcodes in my documents so
    i am integrating it with krysalis barcode libraries. The integration
    works fine if i test it from a standalone application (pdf with
    barcode is printed), but there are problems using it from the weblogic
    servlet; the document is generated but the barcode is not and after
    many different tests i am having the following exception. Surely the
    problem is about batik libraries that are used by krysalis to generate
    the barcode in svg format, but i don't understand why the exception is
    only when i work in weblogic.

    [ERROR] svg graphic could not be built:
    zip:/bea9/sottosistemi/sicurezza/beinter/h2o/myclasses/fop/batik.jar#org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css:
    Invalid CSS document.
    name
    org.w3c.dom.DOMException:
    zip:/bea9/sottosistemi/sicurezza/beinter/h2o/myclasses/fop/batik.jar#org/apache/batik/dom/svg/resources/UserAgentStyleSheet.css:
    Invalid CSS document.
    name
    at org.apache.batik.css.engine.CSSEngine.parseStyleSheet(Unknown
    Source)
    at org.apache.batik.css.engine.CSSEngine.parseStyleSheet(Unknown
    Source)
    at org.apache.batik.dom.svg.SVGDOMImplementation.createCSSEngine(Unknown
    Source)
    at org.apache.batik.bridge.BridgeContext.initializeDocument(Unknown
    Source)
    at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
    at org.apache.fop.render.pdf.PDFRenderer.renderSVGDocument(Unknown
    Source)
    at org.apache.fop.render.pdf.PDFRenderer.renderSVGArea(Unknown
    Source)
    at org.apache.fop.svg.SVGArea.render(Unknown Source)
    at org.apache.fop.render.pdf.PDFRenderer.renderForeignObjectArea(Unknown
    Source)
    at org.apache.fop.layout.inline.ForeignObjectArea.render(Unknown
    Source)
    at org.apache.fop.render.AbstractRenderer.renderLineArea(Unknown
    Source)
    at org.apache.fop.layout.LineArea.render(Unknown Source)
    at org.apache.fop.render.AbstractRenderer.renderBlockArea(Unknown
    Source)
    at org.apache.fop.layout.BlockArea.render(Unknown Source)
    at org.apache.fop.render.AbstractRenderer.renderAreaContainer(Unknown
    Source)
    at org.apache.fop.render.pdf.PDFRenderer.renderPage(Unknown
    Source)
    at org.apache.fop.render.pdf.PDFRenderer.render(Unknown
    Source)
    at org.apache.fop.apps.StreamRenderer.queuePage(Unknown
    Source)
    at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
    at org.apache.fop.fo.pagination.PageSequence.format(Unknown
    Source)
    at org.apache.fop.apps.StreamRenderer.render(Unknown Source)
    at org.apache.fop.fo.FOTreeBuilder.endElement(Unknown Source)
    at org.apache.xalan.transformer.ResultTreeHandler.endElement(ResultTreeHandler.java:307)
    at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:716)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
    at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:710)
    at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:420)
    at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:226)
    at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2186)
    at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2012)
    at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1175)
    at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3139)
    at org.apache.xalan.transformer.TransformerHandlerImpl.endDocument(TransformerHandlerImpl.java:433)
    at org.apache.xerces.parsers.SAXParser.endDocument(SAXParser.java:1230)
    at org.apache.xerces.validators.common.XMLValidator.callEndDocument(XMLValidator.java:1080)
    at org.apache.xerces.framework.XMLDocumentScanner$EndOfInputDispatcher.dispatch(XMLDocumentScanner.java:1499)
    at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.java:381)
    at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
    at org.apache.xalan.transformer.TrAXFilter.parse(TrAXFilter.java:134)
    at org.apache.fop.apps.Driver.render(Unknown Source)
    at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
    at it.sella.fop.servlet.FOPPrinterServlet.doPost(FOPPrinterServlet.java:55)
    at it.sella.fop.servlet.FOPPrinterServlet.doGet(FOPPrinterServlet.java:34)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:120)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:941)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:905)
    at weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContextManager.java:269)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:391)
    at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:273)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)

    thx & regards,
    Benny
     
    Benny, Jul 10, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian K
    Replies:
    0
    Views:
    870
    Brian K
    Oct 12, 2003
  2. Shripathi Kamath

    Question on JFreeChart and Batik

    Shripathi Kamath, Nov 26, 2003, in forum: Java
    Replies:
    0
    Views:
    2,345
    Shripathi Kamath
    Nov 26, 2003
  3. Glenn Thomas Hvidsten

    Batik and FreeHep

    Glenn Thomas Hvidsten, Feb 28, 2005, in forum: Java
    Replies:
    0
    Views:
    837
    Glenn Thomas Hvidsten
    Feb 28, 2005
  4. Brian K
    Replies:
    0
    Views:
    682
    Brian K
    Oct 12, 2003
  5. Pablo
    Replies:
    0
    Views:
    1,019
    Pablo
    Mar 28, 2007
Loading...

Share This Page