This is mildly off-topic -- but I think a good quickstart on how to get
headless X-server up with batik/cocoon is kinda called for.

Okay here are my scripts used to get tomcat/cocoon/batik functioning
nicely with SVG.  These are adaptations of old scripts I had and are
quite possibly covered/infected by GPL or something... 

My setup:

jdk1.3.1_02 (don't use _03 it has a random zip obfuscation feature)
RedHat 7.2
Kernel 2.4.9-smp  special redhat version (probably fixes the memory
management issue..  On my desktop I run with 2.4.17 -- much faster --
got 2.4.9-smp from up2date)
Apache 2.0.35 
Tomcat 4.0.4b2 (don't use 4.0.2/3 they're duds -- 4.0.1 works okay
though)
Latest mod_webapp -- boy was compiling that fun... but thats for another
mail list!
HEAD of Cocoon CVS from today
latest Xvfb from rpmfind



-- I altered tomcat/bin/setclasspath.sh by adding 

export DISPLAY=:1

to it

My apache script runs before my tomcat script, but I don't think it
matters.

this is in 

/etc/rc.d/init.d/tomcat
and is linked in rc3.d as S85tomcat

#! /bin/sh


start(){
        echo "starting tomcat.."
        Xvfb :1 -screen 0 800x600x8 &
        sleep 5
        su -l tomcat -c 'export DISPLAY=:1'
        su -l tomcat -c '/opt/tomcat/bin/startup.sh'
}

stop(){
        echo "stopping tomcat.."
        killall Xvfb
        su -l tomcat -c '/opt/tomcat/bin/shutdown.sh'
}

restart(){
        stop
        sleep 2
        start
}




case "$1" in
  start)
        start
        ;;
  stop)
        stop
        ;;
  restart)
        restart
        ;;
  *)
        echo "Usage: postgresql {start|stop|restart}"
        exit 1
esac

exit 0



-- 
http://www.superlinksoftware.com
http://jakarta.apache.org/poi - port of Excel/Word/OLE 2 Compound
Document 
                            format to java
http://developer.java.sun.com/developer/bugParade/bugs/4487555.html 
                        - fix java generics!
The avalanche has already started. It is too late for the pebbles to
vote.
-Ambassador Kosh


---------------------------------------------------------------------
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]>

Reply via email to