You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Joose Vettenranta <jo...@iki.fi> on 2003/12/04 12:18:26 UTC
upgraded to cocoon 2.1 and fop is not working
Hey,
I upgraded to cocoon 2.1.2 and FOP stoped working. According to the
logs, page is rendered, but nothing is sent to browser. I am trying to
use fop-sample which came with cocoon.
First I tried with java 1.4.1 but it didn't work (worked with cocoon
2.0.3) and now using 1.4.2_02 java.
I have checked that it outputs nothing with Safari and Lynx.
I am using DEBUG as debug level.
Nothing interesting in tomcat logs (using debug="1")
ps output:
/usr/java/j2sdk1.4.2_02/bin/java -server -Xmx1536m -Xincgc
-Djava.awt.headless=true -Djava.endorsed.dirs= -classpath
/usr/java/j2sdk1.4.2_02/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
-Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
-Djava.io.tmpdir=/var/tomcat4/temp org.apache.cat
error.log: empty
sitemap.log:
INFO (2003-12-04) 13:02.51:604 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/FOTreeBuilder: building formatting
object tree
INFO (2003-12-04) 13:02.51:614 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/MessageHandler: setting up fonts
INFO (2003-12-04) 13:02.52:644 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/PageSequence: [1]
DEBUG (2003-12-04) 13:02.52:929 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Last page-sequence
produced 1 pages.
INFO (2003-12-04) 13:02.52:929 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/FOTreeBuilder: Parsing of document
complete, stopping renderer
DEBUG (2003-12-04) 13:02.52:946 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Initial heap size:
47075Kb
DEBUG (2003-12-04) 13:02.52:947 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Current heap size:
47662Kb
DEBUG (2003-12-04) 13:02.52:947 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Total memory used:
587Kb
DEBUG (2003-12-04) 13:02.52:948 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Memory use is
indicative; no GC was performed
DEBUG (2003-12-04) 13:02.52:948 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: These figures
should not be used comparatively
DEBUG (2003-12-04) 13:02.52:949 [sitemap.sitemap.serializer.fo2pdf]
(/samples/fop/hello.pdf) Thread-10/StreamRenderer: Total time used:
1344ms
--
"Always remember that you are unique, just like everyone else!"
* http://iki.fi/joose/ * joose@iki.fi * +358 44 561 0270 *
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: upgraded to cocoon 2.1 and fop is not working
Posted by Joerg Heinicke <jo...@gmx.de>.
2 possible problems I see:
1. endorsed libs: You -Djava.endorsed.dirs is empty, so you use the JDK
XML libs. This is not "that" bad (but still not recommended) with 1.4.2
as it includes Xalan 2.4 AFAIK. But it's another version than included
with Cocoon. You should set the parameter to lib/endorsed of Cocoon
sources (including Cocoon's XML libs) as it is done in the Jetty script.
2. FOP depends on Batik and the Batik version delivered with Cocoon is
another one delivered in the FOP dist. Maybe a reason, but I don't know
that well.
Joerg
On 04.12.2003 12:18, Joose Vettenranta wrote:
> Hey,
>
> I upgraded to cocoon 2.1.2 and FOP stoped working. According to the
> logs, page is rendered, but nothing is sent to browser. I am trying to
> use fop-sample which came with cocoon.
>
> First I tried with java 1.4.1 but it didn't work (worked with cocoon
> 2.0.3) and now using 1.4.2_02 java.
>
> I have checked that it outputs nothing with Safari and Lynx.
>
> I am using DEBUG as debug level.
>
> Nothing interesting in tomcat logs (using debug="1")
>
> ps output:
> /usr/java/j2sdk1.4.2_02/bin/java -server -Xmx1536m -Xincgc
> -Djava.awt.headless=true -Djava.endorsed.dirs= -classpath
> /usr/java/j2sdk1.4.2_02/lib/tools.jar:/var/tomcat4/bin/bootstrap.jar
> -Dcatalina.base=/var/tomcat4 -Dcatalina.home=/var/tomcat4
> -Djava.io.tmpdir=/var/tomcat4/temp org.apache.cat
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: upgraded to cocoon 2.1 and fop is not working
Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi Joose,
> I upgraded to cocoon 2.1.2 and FOP stoped working. According to the
> logs, page is rendered, but nothing is sent to browser. I am trying to
> use fop-sample which came with cocoon.
FYI I just tried the http://localhost:8888/samples/fop/hello.pdf sample
on a fresh build of the current CVS, started from the cocoon.sh script,
and it works fine here (macosx, JDK 1.4.1).
Maybe you should try to start Cocoon with the cocoon.sh script instead
of tomcat, and see if it makes a difference? I'm not sure what your
problem could be, but this might help in finding out.
-Bertrand
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org