By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,584 Members | 1,774 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,584 IT Pros & Developers. It's quick & easy.

batik and fop on weblogic 5.1

P: n/a
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.parseStyleSh eet(Unknown
Source)
at org.apache.batik.css.engine.CSSEngine.parseStyleSh eet(Unknown
Source)
at org.apache.batik.dom.svg.SVGDOMImplementation.crea teCSSEngine(Unknown
Source)
at org.apache.batik.bridge.BridgeContext.initializeDo cument(Unknown
Source)
at org.apache.batik.bridge.GVTBuilder.build(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGDoc ument(Unknown
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderSVGAre a(Unknown
Source)
at org.apache.fop.svg.SVGArea.render(Unknown Source)
at org.apache.fop.render.pdf.PDFRenderer.renderForeig nObjectArea(Unknown
Source)
at org.apache.fop.layout.inline.ForeignObjectArea.ren der(Unknown
Source)
at org.apache.fop.render.AbstractRenderer.renderLineA rea(Unknown
Source)
at org.apache.fop.layout.LineArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderBlock Area(Unknown
Source)
at org.apache.fop.layout.BlockArea.render(Unknown Source)
at org.apache.fop.render.AbstractRenderer.renderAreaC ontainer(Unknown
Source)
at org.apache.fop.render.pdf.PDFRenderer.renderPage(U nknown
Source)
at org.apache.fop.render.pdf.PDFRenderer.render(Unkno wn
Source)
at org.apache.fop.apps.StreamRenderer.queuePage(Unkno wn
Source)
at org.apache.fop.layout.AreaTree.addPage(Unknown Source)
at org.apache.fop.fo.pagination.PageSequence.format(U nknown
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.end Element(ResultTreeHandler.java:307)
at org.apache.xalan.templates.ElemLiteralResult.execu te(ElemLiteralResult.java:716)
at org.apache.xalan.transformer.TransformerImpl.execu teChildTemplates(TransformerImpl.java:2186)
at org.apache.xalan.templates.ElemLiteralResult.execu te(ElemLiteralResult.java:710)
at org.apache.xalan.templates.ElemApplyTemplates.tran sformSelectedNodes(ElemApplyTemplates.java:420)
at org.apache.xalan.templates.ElemApplyTemplates.exec ute(ElemApplyTemplates.java:226)
at org.apache.xalan.transformer.TransformerImpl.execu teChildTemplates(TransformerImpl.java:2186)
at org.apache.xalan.transformer.TransformerImpl.apply TemplateToNode(TransformerImpl.java:2012)
at org.apache.xalan.transformer.TransformerImpl.trans formNode(TransformerImpl.java:1175)
at org.apache.xalan.transformer.TransformerImpl.run(T ransformerImpl.java:3139)
at org.apache.xalan.transformer.TransformerHandlerImp l.endDocument(TransformerHandlerImpl.java:433)
at org.apache.xerces.parsers.SAXParser.endDocument(SA XParser.java:1230)
at org.apache.xerces.validators.common.XMLValidator.c allEndDocument(XMLValidator.java:1080)
at org.apache.xerces.framework.XMLDocumentScanner$End OfInputDispatcher.dispatch(XMLDocumentScanner.java :1499)
at org.apache.xerces.framework.XMLDocumentScanner.par seSome(XMLDocumentScanner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLPar ser.java:1081)
at org.apache.xalan.transformer.TrAXFilter.parse(TrAX Filter.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(FOPP rinterServlet.java:55)
at it.sella.fop.servlet.FOPPrinterServlet.doGet(FOPPr interServlet.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.invokeSe rvlet(ServletStubImpl.java:120)
at weblogic.servlet.internal.ServletContextImpl.invok eServlet(ServletContextImpl.java:941)
at weblogic.servlet.internal.ServletContextImpl.invok eServlet(ServletContextImpl.java:905)
at weblogic.servlet.internal.ServletContextManager.in vokeServlet(ServletContextManager.java:269)
at weblogic.socket.MuxableSocketHTTP.invokeServlet(Mu xableSocketHTTP.java:391)
at weblogic.socket.MuxableSocketHTTP.execute(MuxableS ocketHTTP.java:273)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.ja va:129)

thx & regards,
Benny
Jul 20 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.