473,394 Members | 1,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

batik and fop on weblogic 5.1

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
0 2111

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tjorven Lauchardt | last post by:
Hello, I am creating a application with Batik and I have the following problem. I am buidling a DOM Tree and I want to know the bounding box of the text-Elements while I am building the DOM. I...
0
by: Gemmel | last post by:
Hi, im using batik to draw several rectangles via graphics2D. now i would like to add a link to another html or svg document to the rectangle. if the user clicks on the rectangle, the other...
0
by: Brian K | last post by:
I am new to Apache Batik and I am now doing a SVG Editor for my project. I use Java as programming language. I use Batik to generate the SVG from Java Graphics2D, as I would like to transform...
0
by: Per-Christian Engdal | last post by:
Hi, I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1 Sp2 (Windows 2000) installation. The deployment works without exceptions, but when I try to access cocoon through...
4
by: Accolo1 | last post by:
Help we are looking for this person, do you know them? William wjohnson@accolo.com Title: BEA WebLogic Portal Guru Job #: 03-04468 Check the pulse of your career! Evolve our eCommerce web...
1
by: WebServiceSecurity | last post by:
The issue involves the following technologies: - 1. .NET 2.0 Framework 2. WSE2.0 (WS-Security) 3. X.509 certificates 4. BEA Weblogic 8.1.5
0
by: manauwaralam | last post by:
javax.naming.NameNotFoundException: While trying to lookup 'weblogic.jdbc.jts.vdmsPool' didn't find subcontext 'jdbc' Resolved weblogic; remaining name 'jdbc/jts/vdmsPool' at...
5
by: swebster | last post by:
Can someone explain the differences between setting cookies on TomCat or a Weblogic webserver? I discovered today during a deployment to Weblogic that a cookie can be set and retrieved in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.