Hi Matthias,
as you assumed the class is not compiled automatically by cocoon, so you
need to do it by yourself. I have placed the compiled class next to the
cocoon jars in order to be accessible by the cocoon class loader.
More precisely i put all cocoon extensions (serializers & generators)
inside a separate jar file that is located in the
<webapp-dir>/WEB-INF/lib directory as well as the FOP and cocoon libraries.
If you specified the java classpath anywhere else (e.g. manually), you
have to apply your changes there.
good luck, Arne
Matthias Müller wrote:
Hi Arne,
thanks for the serializer. i've never inserted own classes to cocoon. in which directory do i have to put the .java file? is it automatically compiled or do i have to do that manually?
----- Ursprüngliche Mail ----
Von: Arne Hildebrand <[EMAIL PROTECTED]>
An: [email protected]
Gesendet: Donnerstag, den 12. Juli 2007, 15:07:28 Uhr
Betreff: Re: AW: Size issues with SVG in PDF
Matthias,
you can upgrade to 0.9x versions of FOP if you implement a cocoon
serializer by your own, as i did for my own project. I'ver attached my
pretty simple java code, that might be improved if needed ;-). Just
provide this to the cocoon classpath, replace the fop jars with current
0.9x builds and add the serializer inside the cocoon "sitemap.xmap":
<map:serializer name="fo2pdf" mime-type="application/pdf"
src="CocoonFOPSerializer"> <set-content-length>false</set-content-length>
</map:serializer>
HTH, Arne
Matthias Müller wrote:
Thx for your experiences. I can't upgrade to 0.93 since it's not supported by
the latest stable apache cocoon version. i desire the upcoming version 2.2
since months ;-)
Thx Louis for the code snippet. i try to figure out why i have such a large
increasement. I'll let you kow,
greetings matthias
<snip/>
__________________________________
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Dipl.-Ing. Arne Hildebrand
Fachhochschule für Technik und Wirtschaft
Hochschulrechenzentrum
Treskowallee 8
10313 Berlin
Tel: +49 (0) 30 5019 2525
Fax: +49 (0) 30 5019 2798
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]