merci hannao,
En suivant ton liens, je pense avoir identifier au moins un problème ^^
A un moment ils parlent de variables d’environnement, celles qui concernent tomcat sont stockées dans le fichier /etc/init.d/tomcat5.5.
[code]PATH=/bin:/usr/bin:/sbin:/usr/sbin
NAME=tomcat5.5
DESC="Tomcat servlet engine"
DAEMON=/usr/bin/jsvc
CATALINA_HOME=/usr/share/$NAME
DEFAULT=/etc/default/$NAME
if [ id -u -ne 0 ]; then
echo "You need root privileges to run this script"
exit 1
fi
Make sure tomcat is started with system locale
if [ -r /etc/default/locale ]; then
. /etc/default/locale
export LANG
fi
. /lib/lsb/init-functions
. /etc/default/rcS
The following variables can be overwritten in $DEFAULT
Run Tomcat 5 as this user ID
TOMCAT5_USER=tomcat55
The first existing directory is used for JAVA_HOME (if JAVA_HOME is not
defined in $DEFAULT)
JDK_DIRS="/usr/lib/jvm/java-6-sun-1.6.0.12/"
Look for the right JVM to use
for jdir in $JDK_DIRS; do
if [ -r “$jdir/bin/java” -a -z “${JAVA_HOME}” ]; then
JAVA_HOME_TMP="$jdir"
# checks for a real JDK like environment, needed to check if
# really the java-gcj-compat-dev package is installed
if [ -r “$jdir/bin/jdb” ]; then
JAVA_HOME="$JAVA_HOME_TMP"
fi
fi
done
export JAVA_HOME
Directory for per-instance configuration files and webapps
CATALINA_BASE=/var/lib/$NAME
[/code]
. . . le fichier est balèze j’ai pas tout mis ^^
Mais voila lorsque je fait un “echo” c’est comme si elle n’existaient pas:
debian-01:/home/dom# echo "java home = $JAVA_HOME, catalina base = $CATALINA_BASE, catalina home = $CATALINA_HOME"
java home = , catalina base = , catalina home =
/etc/init.d/tomcat5.5 status -> Tomcat servlet engine is running with pid 2493
nmap localhost -> 22,25,111,8009, toujours pas de port 8080
Je pars faire quelques test avec les variables d’environnement dont je ne connais pas encore le fonctionnement, je préviens dès que j’ai du nouveau.