Hello Frank,

sorry, but this doesn't work in both Cocoon versions. I tested it some time ago with Cocoon 2.0.3 and now with with 2.0.4:

2003-03-11 18:26:33,236 INFO [org.jboss.web.localhost.Engine] DEBUG (2003-03-11) 18:26.33:210 [manager ] (/conweb/stream.secure.pdf) Thread-7/ExcaliburComponentSelector: UnnamedSelector: ComponentSelector could not access the Component for hint [pdf]
org.apache.avalon.framework.configuration.ConfigurationException: Cannot load configuration from file:/home/jheinicke/development/IUPB/iupb/context:/webapps/ROOT/doc/fop/config.xml
at org.apache.cocoon.serialization.FOPSerializer.configure(FOPSerializer.java:196)
at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(DefaultComponentFactory.java:264)



And when changing only the links to the font files in config.xml using context:// protocol:


2003-03-11 18:23:22,125 INFO [org.jboss.web.localhost.Engine] ERROR (2003-03-11) 18:23.22:124 [manager.] (/conweb/stream.secure.pdf) Thread-7/MessageHandler: Failed to read font metrics file nullcontext://webapps/ROOT/doc/fop/fonts/Verdana.xml : unknown protocol: nullcontext


And with Batik: it's one of the most simplest SVG possible: basic shapes, rect in SVG spec. Furthermore (again the stacktrace) the NPE happens in a Fop class:


javax.xml.transform.TransformerException: java.lang.NullPointerException
at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1226)
at org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3135)
at java.lang.Thread.run(Thread.java:536)
Caused by: java.lang.NullPointerException
at org.apache.fop.render.pdf.fonts.LazyFont.getAscender(Unknown Source)
at org.apache.fop.layout.FontState.getAscender(Unknown Source)



Even it brought no solution, thanks for your help.


Joerg


Frank Taffelt wrote:
<map:serializer name="pdf" mime-type="application/pdf"
src="org.apache.cocoon.serialization.FOPSerializer">
  <user-config src="webapps/ROOT/doc/fop/config.xml"/>
</map:serializer>


you should try <user-config
src="context://webapps/ROOT/doc/fop/config.xml"/>.

On the other side the problem can be bug in batik which occurs as a NPE.
When using internal url targets in your fo:instream-foreign-object this
problem is present. This bug is fixed in current batik version 1.5 beta4.
This solved some of my problem's i had with current HEAD (cocoon-2.1).

hth,
Frank

--


System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
www.virbus.de

CeBIT 2003 vom 12. bis zum 19. März in Hannover

VIRBUS stellt gemeinsam mit der IBM-Tochter IT-Services and Solutions
GmbH aus.
Lassen Sie sich überraschen von den neuen, umfassenden Möglichkeiten im
Internet-gestützten Zahlungsverkehr.
Besuchen Sie uns: Halle 3, Stand D55.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to