tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AC <s...@lisea.com>
Subject RE: Tomcat Unix autostart
Date Mon, 11 Dec 2000 13:48:58 GMT
This is the script I use for FreeBsd. As you can see I use some external 
classpath for my web-applications. Also you have to set your java_home and 
tomcat_home because you don't set it until you logon to the system (for 
instance in your csh.cshrc file for tcsh shell). That's why, maybe, tomcat 
starts if you log in to the system......
In the tomcat.sh if you don't set java_home, it uses the command which that 
it's useless if you don't set the path for your binaries...

andrea
----------------------------
#!/bin/csh

#jdk1.2.2  nativo
setenv CLASSPATH 
/usr/local/jdk1.2.2/jre/lib/rt.jar:/usr/local/ablia/java/lib/mysql_uncomp.jar:/usr/local/ablia/java/lib/ablia
.jar:/usr/local/ablia/java/classes:/usr/local/ablia/java/lib/mail.jar:/usr/local/ablia/java/lib/activation.jar:./

#jdk1.2.2 linux
#setenv CLASSPATH 
/usr/local/linux-jdk1.2.2/jre/lib/rt.jar:/usr/local/ablia/java/lib/mysql_uncomp.jar:/usr/local/ablia/java/li
b/ablia.jar:/usr/local/ablia/java/classes:/usr/local/ablia/java/lib/mail.jar:/usr/local/ablia/java/lib/activation.jar:./

#jdk1.1.8 nativo
#setenv CLASSPATH 
/usr/local/jdk1.1.8/lib:/usr/local/jdk1.1.8/lib/classes.zip:/usr/local/ablia/java/lib/mysql_uncomp.jar:/usr/
local/ablia/java/lib/ablia.jar:/usr/local/ablia/java/classes:/usr/local/ablia/java/lib/mail.jar:/usr/local/ablia/java/lib/acti
vation.jar:./

#setenv JAVA_HOME /usr/local/linux-jdk1.2.2
setenv JAVA_HOME /usr/local/jdk1.2.2
#setenv JAVA_HOME /usr/local/jdk1.1.8

setenv TOMCAT_HOME /usr/local/tomcat32
#setenv JAVA_COMPILER tya

export CLASSPATH
export JAVA_HOME
export TOMCAT_HOME
setenv

      $TOMCAT_HOME/bin/startup.sh  > /dev/null && echo -n ' Tomcat32'




At 12.50 11/12/2000 +0100, you wrote:
>All,
>
>When the startup-script is run at server-boot-time, tomcat starts
>(errors.log is created & filled normaly) but immediately afterwards tomcat
>is killed.
>This we can see at the server's display when booting the machine.
>
>When the machine has finished booting and the script is run from the
>command-line-prompt, tomcat runs fine.
>Could this be related to any rights, paths, special cases, etc when the
>script is run at boot-time? Which settings/environment variables should I
>look at?
>The CLASSPATH-variable is set in tomcat.sh.
>
>The order of booting doesn't seem to be the problem. First apache then
>tomcat or vice versa, makes no difference.
>Apache starting with the boot-script works fine.
>
>Regards,
>Mario Beekwilder
>CMG - TP Maastricht
>
>
>-----Original Message-----
>From: AC [mailto:smda@lisea.com]
>Sent: maandag 11 december 2000 8:58
>To: tomcat-user@jakarta.apache.org
>Subject: Re: Tomcat Unix autostart
>
>
>Tomcat should start after Apache during reboot. Also remember to set your
>classpath in the startup script.
>
>andrea
>
>At 08.44 11/12/2000 +0100, you wrote:
> >Hi,
> >I'm trying to start Tomcat whith rebooting a Unix machine.
> >Tomcat seems to start for a moment and then dissappears.
> >I have a startup script in /sbin/rc3.d
> >I'm using an Alpha1000 with Tru64 unix 4.0D
> >Who can help me.
> >
> >Regards,
> >Jan Stevens
> >Software Developer
> >CMG Maastricht B.V. -Telecom Products
> >*       Adelbert van Scharnlaan 170A            *       043 - 6018185
> >         6224 JX Maastricht                                      *
>043
> >- 6018169
> >*       mailto:Jan.Stevens@cmg.nl


Mime
View raw message