In the /opt/jboss-3.2.1/bin/run.sh the following line JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME" should be set to something like this JAVA_OPTS="$JAVA_OPTS -Djava.io.tmpdir=/opt/jboss-3.2.1/jetty -Dprogram.name=$PROGNAME" This tells Jboss to use /opt/jboss-3.2.1/jetty instead of /tmp to store deployed files. If /tmp get's cleaned it will hose jboss unless this change is made.
Just got bitten by this myself. The old ebuilds (version 3.0.2) used to have the tmp directory settable in /etc/conf.d/jboss as JBOSS_TEMP_DIR, which was used in the init-script to set -Djboss.server.temp.dir JBoss is useless in a production setting without this change...
any objections to setting it to /var/tmp/jboss/jetty? (this is more of a r/w filesysttem than /opt)
fixed with jboss-3.2.3 now in portage