cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "caleb racey" <Caleb.Ra...@newcastle.ac.uk>
Subject probelms with image samples java 1.4.1_03
Date Thu, 25 Sep 2003 13:28:57 GMT
Hi folks, has anyone got images working properly on headless linux with
java 1.4.1_03? I can't get svg to jpeg to work. Anybody got any clues or
pointers.?


I have downloaded and installed cocoon 2.1.1 on a headless redhat 9 box
with j2sdk1.4.1_03 and Tomcat/4.1.24-LE-jdk14

I have passed in the java.awt.headless="true" setting at startup so
graphics on a headless box should be alright. My catalina opts being: 

CATALINA_OPTS="$CATALINA_OPTS -server -Xms256m -Xmx1800m -Xincgc
-Djava.awt.headless=true -DproxyHost=myproxy'shostname
-DproxyPort=myproxysport"

When I visit the batik samples the straight svg examples work alright
but I get an error when I visit the svg to jpeg pages 

the error I get is 
The image "http://myservername/cocoon2.1.1/samples/batik/batikLogo.jpeg"
cannot be displayed, because it contains errors.


Tomcat logs have the following 2 errors
 
1st error

2003-09-25 14:16:50 StandardWrapperValve[Cocoon]: Servlet.service() for
servlet Cocoon threw exception javax.servlet.ServletException: Servlet
execution threw an exception at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269) 
<full chain cut out for briefness>
----- Root Cause -----
java.lang.UnsatisfiedLinkError:
/usr/local/java/j2sdk1.4.1_03/jre/lib/i386/libawt.so:
/usr/local/java/j2sdk1.4.1_03/jre/lib/i386/libawt.so: failed to map
segment from shared object: Cannot allocate memory at
java.lang.ClassLoader$NativeLibrary.load(Native Method)
<full chain cut out for briefness>

2nd error

2003-09-25 13:49:51 StandardWrapperValve[Cocoon]: Servlet.service() for
servlet Cocoon threw exception javax.servlet.ServletException: Servlet
execution threw an exception at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:269) at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193) at at java.lang.Thread.run(Thread.java:536)
<full chain cut out for briefness>
----- Root Cause -----
java.lang.NoClassDefFoundError at
org.apache.batik.transcoder.image.JPEGTranscoder.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
<full chain cut out for briefness>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message