Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > batik and fop on weblogic 5.1

Reply
Thread Tools

batik and fop on weblogic 5.1

 
 
Benny
Guest
Posts: n/a
 
      07-10-2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running Apache FOP: org.apache.fop.fo.FOTreeBuilder fatalError Pablo Java 0 03-28-2007 02:31 PM
Batik and FreeHep Glenn Thomas Hvidsten Java 0 02-28-2005 01:27 PM
Question on JFreeChart and Batik Shripathi Kamath Java 0 11-26-2003 01:17 AM
Apache Batik - Question on editing SVG file and transform the graphics to other formats (e.g. JPG, PNG...) Brian K Java 0 10-12-2003 03:44 PM
Apache Batik - Question on editing SVG file and transform the graphics to other formats (e.g. JPG, PNG...) Brian K XML 0 10-12-2003 03:44 PM



Advertisments