Peter,
The svg2jpeg serializer in batik 1.1.1 with jdk1.4.0 seems to not work anymore.
Converting the pipeline to use svg2png serialization works. There is a bug posted on
bugzilla. I have proposed a fix, and waiting for resolution. Meanwhile, to make the
fix work, check out xml-batik (HEAD), open
org.apache.batik.transcoder.image.JPEGTranscoder
and change the constructor by commenting out the line as follows:
/**
* Constructs a new transcoder that produces jpeg images.
*/
public JPEGTranscoder() {
// hints.put(ImageTranscoder.KEY_BACKGROUND_COLOR, Color.white);
}
recompile using "ant libs-jar" in xml-batik root checkout.
Replace the batik-libs*.jar in cocoon/WEB-INF/lib with the newly compiled
batik-libs.jar
Delete the work directory for cocoon in tomcat/work/
Re-start Tomcat
The svg2jpeg serializer should work now.
Greetings and Salutations
Georg von Sperling
MedAptus, Inc
www.medaptus.com
[EMAIL PROTECTED]
-----Original Message-----
From: Peter Christoph Alexander Bär [mailto:[EMAIL PROTECTED]]
Sent: Wed 2/27/2002 8:10 PM
To: [EMAIL PROTECTED]
Cc:
Subject: SVG not working with J2SDK 1.4.0 ?!?
A few observations of today. Most relevant to other users is (1),
probably, while (2) and (3) are just comments / reports.
(I Hope that helps to detect bugs and fix them; just let me know,
if this kind of information is of no use --- I don't want to bore
you; I just thought that I could help out the testers with this.)
(1) SVG example not working with J2SDK 1.4.0
============================================
I built the C2 development snapshot xml-cocoon2_20020227171804.tar.gz
with J2SDK 1.4.0 from Sun. To get it working, all I had to do was to
replace javac.jar with tools.jar from the J2SDK 1.4.0 in
$CATALINA_HOME/webapps/cocoon/WEB-INF/lib.
Almost everything appears to work, but the SVG example responds with
a blank page.
With Blackdown J2SDK 1.3.1_02a this example works as expected.
All the following is based on the Blackdown 1.3.1_02a VM.
(2) Moreover example does not work
==================================
The example "Dynamic content" --> "Moreover.com" doesn't work, because the
host can't be found, it seems:
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:
Exception during processing of
http://www.moreover.com/cgi-local/page?o=xml&c=Developer%20news
More precisely:
org.apache.cocoon.ProcessingException: Exception during processing of
http://www.moreover.com/cgi-local/page?o=xml&c=Developer%20news:
java.net.UnknownHostException: p.moreover.com
(3) Slashdot, XMLHack.com and Aggregation 1 working, Aggregation 2 not
======================================================================
Slashdot, XMLHack.com and the first Aggregation example work, but the
Aggregation throws the same error for the Moreover.com part, just like
the Moreover.com "stanalone" example.
The seoond aggregation example throws the following error:
Failed to execute pipeline.
More precisely:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.cocoon.ProcessingException: Exception during processing of
http://www.moreover.com/cgi-local/page?o=xml&c=Developer%20news:
java.net.UnknownHostException: p.moreover.com
(4) Portal & authentication example works now
=============================================
With the dev snap mentioned above, even the portal components demo
works. With its immediate predecessors I could start the portal,
but ran into an error just after login.
(5) I failed to build the CVS HEAD version
==========================================
The compiler was complaining about the CLASSPATH, which is empty
in my case, and doesn't cause problems with the dev snapshot, eg.
I wonder what exactly the difference between the CVS tree and the
development snapshot is. They behave different, it seems.
Peter
--
>>> mailto:[EMAIL PROTECTED] <<<
-
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>
<<winmail.dat>>
--------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>
