This article explains how to modify the standard SPADE so that it works on Debian 7.1
As Debian 7.1 uses the aptitude application manager, you install the JDK with the following command executed as root.
aptitude install openjdk-6-jdk aptitude install curl
You will need to apply the following extra patch to the jboss-as-standalone.sh file.
cd ~/server/jboss-as-7.1.1.Final/ cp -rp bin/init.d/jboss-as-standalone.sh bin/init.d/jboss-as-standalone.sh.slc64.`date +%Y-%m-%d` cat > patch_5.txt << EOF *** jboss-as-standalone.sh.slc64..2013-08-02 2013-08-02 11:09:11.330953972 -0700 --- jboss-as-standalone.sh 2013-08-02 11:22:32.418939670 -0700 *************** *** 11,16 **** --- 11,26 ---- # Source function library. if [ -r /etc/init.d/functions ] ; then . /etc/init.d/functions + else + if [ -r /lib/lsb/init-functions ] ; then + . /lib/lsb/init-functions + success() { + log_end_msg 0 || true + } + failure() { + log_end_msg 1 || true + } + fi fi # Load Java configuration. *************** if [ ! -z "$JBOSS_USER" ]; then *** 67,73 **** fi start() { ! echo -n "Starting $prog: " if [ -f $JBOSS_PIDFILE ]; then read ppid < $JBOSS_PIDFILE if [ `ps --pid $ppid 2> /dev/null | grep -c $ppid 2> /dev/null` -eq '1' ]; then --- 77,83 ---- fi start() { ! echo -n "[ ] Starting $prog: " if [ -f $JBOSS_PIDFILE ]; then read ppid < $JBOSS_PIDFILE if [ `ps --pid $ppid 2> /dev/null | grep -c $ppid 2> /dev/null` -eq '1' ]; then *************** start() { *** 108,114 **** break fi sleep 1 ! let count=$count+1; done success --- 118,124 ---- break fi sleep 1 ! (( count=$count+1 )) done success *************** start() { *** 117,128 **** } stop() { ! echo -n $"Stopping $prog: " count=0; if [ -f $JBOSS_PIDFILE ]; then read kpid < $JBOSS_PIDFILE ! let kwait=$SHUTDOWN_WAIT # Try issuing SIGTERM --- 127,138 ---- } stop() { ! echo -n "[ ] Stopping $prog: " count=0; if [ -f $JBOSS_PIDFILE ]; then read kpid < $JBOSS_PIDFILE ! kwait=$SHUTDOWN_WAIT # Try issuing SIGTERM *************** stop() { *** 130,136 **** until [ `ps --pid $kpid 2> /dev/null | grep -c $kpid 2> /dev/null` -eq '0' ] || [ $count -gt $kwait ] do sleep 1 ! let count=$count+1; done if [ $count -gt $kwait ]; then --- 140,146 ---- until [ `ps --pid $kpid 2> /dev/null | grep -c $kpid 2> /dev/null` -eq '0' ] || [ $count -gt $kwait ] do sleep 1 ! (( count=$count+1 )) done if [ $count -gt $kwait ]; then patch bin/init.d/jboss-as-standalone.sh patch_5.txt rm patch_5.txt