tomcat not starting after reboot or from cron

2003-01-22 Thread Lott, Carey
Has anybody had a problem with tomcat (4.0.4) starting after a reboot?  Or
problems starting it from the root crontab?  
I have no problems at all starting tomcat manually.  Everything works fine
that way.  
To automate the startup after a reboot, I am using init.d with the startup
script in rc3.d.  However, nothing is happening.  I'm not even receiving any
errors in the logs.  But I can immediately start it manually with out a
problem.  
Also I can't stop and start tomcat from a crontab.  I set up a stop and
start script and placed them in the root crontab, but the time comes to stop
tomcat and nothing happens then the startup script should be initiated a
minute later but it is a mute point since tomcat didn't stop, but nothing
shows up in the logs either way. 
Is there a parameter or something that I am missing for this to work?

I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
Solaris 2.7.  Apache 1.3.9 is running on the server as well using port 80.

Thanks in advance for the help.

- Carey - 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Turner, John

If you can do it manually, from a log in session, but not automatically from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
environments.  Without those, you won't get anything.  They're probably
being set just fine for you when you log in.

John

 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:13 PM
 To: 'Tomcat Users List'
 Subject: tomcat not starting after reboot or from cron
 
 
 Has anybody had a problem with tomcat (4.0.4) starting after 
 a reboot?  Or
 problems starting it from the root crontab?  
 I have no problems at all starting tomcat manually.  
 Everything works fine
 that way.  
 To automate the startup after a reboot, I am using init.d 
 with the startup
 script in rc3.d.  However, nothing is happening.  I'm not 
 even receiving any
 errors in the logs.  But I can immediately start it manually 
 with out a
 problem.  
 Also I can't stop and start tomcat from a crontab.  I set up 
 a stop and
 start script and placed them in the root crontab, but the 
 time comes to stop
 tomcat and nothing happens then the startup script should be 
 initiated a
 minute later but it is a mute point since tomcat didn't stop, 
 but nothing
 shows up in the logs either way. 
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well 
 using port 80.
 
 Thanks in advance for the help.
 
 - Carey - 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat not starting after reboot or from cron

2003-01-22 Thread Larry Meadors
I had a similar problem, and changed catalina.sh to do this at the
start:

source /etc/profile

This was where I was setting CATALINA_HOME, and JAVA_HOME. When the
script got run at startup, those vars were not yet set...

Larry

 [EMAIL PROTECTED] 01/22/03 10:20 AM 
Has anybody had a problem with tomcat (4.0.4) starting after a reboot? 
Or
problems starting it from the root crontab?  
I have no problems at all starting tomcat manually.  Everything works
fine
that way.  
To automate the startup after a reboot, I am using init.d with the
startup
script in rc3.d.  However, nothing is happening.  I'm not even receiving
any
errors in the logs.  But I can immediately start it manually with out a
problem.  
Also I can't stop and start tomcat from a crontab.  I set up a stop and
start script and placed them in the root crontab, but the time comes to
stop
tomcat and nothing happens then the startup script should be initiated a
minute later but it is a mute point since tomcat didn't stop, but
nothing
shows up in the logs either way. 
Is there a parameter or something that I am missing for this to work?

I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
Solaris 2.7.  Apache 1.3.9 is running on the server as well using port
80.

Thanks in advance for the help.

- Carey - 

--
To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Shapira, Yoav
Howdy,
We have some tomcat instances that restart nightly from a crontab,
without a problem.  They're all tomcat 4.0.6-LE on Solaris 2.8.  None
use apache as the front end.  None run as root.  Each runs as its own
user, and the restart job is in that user's crontab.  We've had no
problems with this setup.  What does the cron output email say when you
have problems?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Lott, Carey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:13 PM
To: 'Tomcat Users List'
Subject: tomcat not starting after reboot or from cron

Has anybody had a problem with tomcat (4.0.4) starting after a reboot?
Or
problems starting it from the root crontab?
I have no problems at all starting tomcat manually.  Everything works
fine
that way.
To automate the startup after a reboot, I am using init.d with the
startup
script in rc3.d.  However, nothing is happening.  I'm not even
receiving
any
errors in the logs.  But I can immediately start it manually with out a
problem.
Also I can't stop and start tomcat from a crontab.  I set up a stop and
start script and placed them in the root crontab, but the time comes to
stop
tomcat and nothing happens then the startup script should be initiated
a
minute later but it is a mute point since tomcat didn't stop, but
nothing
shows up in the logs either way.
Is there a parameter or something that I am missing for this to work?

I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
Solaris 2.7.  Apache 1.3.9 is running on the server as well using port
80.

Thanks in advance for the help.

- Carey -

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: tomcat not starting after reboot or from cron

2003-01-22 Thread p niemandt
I suspect it has something to do with your environmental variables:
Quite likely the java_home  catalina_home has not been set at the time
the script executes. When doing it from the console, as you are already
logged on, it will work fine. You could try to export the variables just
before running startup, see if that makes a difference.

Sadly this is about the extend of my guess ... :-)

On Wed, 2003-01-22 at 17:13, Lott, Carey wrote:
 Has anybody had a problem with tomcat (4.0.4) starting after a reboot?  Or
 problems starting it from the root crontab?  
 I have no problems at all starting tomcat manually.  Everything works fine
 that way.  
 To automate the startup after a reboot, I am using init.d with the startup
 script in rc3.d.  However, nothing is happening.  I'm not even receiving any
 errors in the logs.  But I can immediately start it manually with out a
 problem.  
 Also I can't stop and start tomcat from a crontab.  I set up a stop and
 start script and placed them in the root crontab, but the time comes to stop
 tomcat and nothing happens then the startup script should be initiated a
 minute later but it is a mute point since tomcat didn't stop, but nothing
 shows up in the logs either way. 
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well using port 80.
 
 Thanks in advance for the help.
 
 - Carey - 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
p niemandt [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Ricky Leung
Do you mind sharing your Tomcat restart script with us?  I want to do the
same but perhaps on a weekly basis.  One of the problems I am worried about
is that Tomcat isn't stopping, so I would need to wait for it to end or kill
it before I restart it.

Any help would be appreciated.

Thanks.
Ricky

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:31 PM
 To: Tomcat Users List
 Subject: RE: tomcat not starting after reboot or from cron


 Howdy,
 We have some tomcat instances that restart nightly from a crontab,
 without a problem.  They're all tomcat 4.0.6-LE on Solaris 2.8.  None
 use apache as the front end.  None run as root.  Each runs as its own
 user, and the restart job is in that user's crontab.  We've had no
 problems with this setup.  What does the cron output email say when you
 have problems?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:13 PM
 To: 'Tomcat Users List'
 Subject: tomcat not starting after reboot or from cron
 
 Has anybody had a problem with tomcat (4.0.4) starting after a reboot?
 Or
 problems starting it from the root crontab?
 I have no problems at all starting tomcat manually.  Everything works
 fine
 that way.
 To automate the startup after a reboot, I am using init.d with the
 startup
 script in rc3.d.  However, nothing is happening.  I'm not even
 receiving
 any
 errors in the logs.  But I can immediately start it manually with out a
 problem.
 Also I can't stop and start tomcat from a crontab.  I set up a stop and
 start script and placed them in the root crontab, but the time comes to
 stop
 tomcat and nothing happens then the startup script should be initiated
 a
 minute later but it is a mute point since tomcat didn't stop, but
 nothing
 shows up in the logs either way.
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well using port
 80.
 
 Thanks in advance for the help.
 
 - Carey -
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Lott, Carey
I was actually wondering about that concerning the startup environment, but
I didn't think it would be an issue for cron since it was the root crontab.
I'll add it to the script and see what happens.
Thanks!!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:30 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron



If you can do it manually, from a log in session, but not automatically from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
environments.  Without those, you won't get anything.  They're probably
being set just fine for you when you log in.

John

 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:13 PM
 To: 'Tomcat Users List'
 Subject: tomcat not starting after reboot or from cron
 
 
 Has anybody had a problem with tomcat (4.0.4) starting after 
 a reboot?  Or
 problems starting it from the root crontab?  
 I have no problems at all starting tomcat manually.  
 Everything works fine
 that way.  
 To automate the startup after a reboot, I am using init.d 
 with the startup
 script in rc3.d.  However, nothing is happening.  I'm not 
 even receiving any
 errors in the logs.  But I can immediately start it manually 
 with out a
 problem.  
 Also I can't stop and start tomcat from a crontab.  I set up 
 a stop and
 start script and placed them in the root crontab, but the 
 time comes to stop
 tomcat and nothing happens then the startup script should be 
 initiated a
 minute later but it is a mute point since tomcat didn't stop, 
 but nothing
 shows up in the logs either way. 
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well 
 using port 80.
 
 Thanks in advance for the help.
 
 - Carey - 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Lott, Carey
Y'all were right.  You were absolutely right!
It was the environment variables.  Once I placed the variables at the
beginning of the script and exported them, the cron worked perfectly.

Thanks Again

-Original Message-
From: Lott, Carey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:37 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron


I was actually wondering about that concerning the startup environment, but
I didn't think it would be an issue for cron since it was the root crontab.
I'll add it to the script and see what happens.
Thanks!!

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:30 PM
To: 'Tomcat Users List'
Subject: RE: tomcat not starting after reboot or from cron



If you can do it manually, from a log in session, but not automatically from
startup or from cron, I'm 99% sure it's because environment variables like
JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
environments.  Without those, you won't get anything.  They're probably
being set just fine for you when you log in.

John

 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:13 PM
 To: 'Tomcat Users List'
 Subject: tomcat not starting after reboot or from cron
 
 
 Has anybody had a problem with tomcat (4.0.4) starting after 
 a reboot?  Or
 problems starting it from the root crontab?  
 I have no problems at all starting tomcat manually.  
 Everything works fine
 that way.  
 To automate the startup after a reboot, I am using init.d 
 with the startup
 script in rc3.d.  However, nothing is happening.  I'm not 
 even receiving any
 errors in the logs.  But I can immediately start it manually 
 with out a
 problem.  
 Also I can't stop and start tomcat from a crontab.  I set up 
 a stop and
 start script and placed them in the root crontab, but the 
 time comes to stop
 tomcat and nothing happens then the startup script should be 
 initiated a
 minute later but it is a mute point since tomcat didn't stop, 
 but nothing
 shows up in the logs either way. 
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well 
 using port 80.
 
 Thanks in advance for the help.
 
 - Carey - 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Shapira, Yoav
Howdy,
I can't share the exact script due to intellectual property law issues
;)  But it's trivial, basically doing:

export CATALINA_HOME=/foo/bar
$CATALINA_HOME/bin/shutdown.sh
sleep 60
$CATALINA_HOME/bin/startup.sh

That's it.  

One of the problems I am worried about
is that Tomcat isn't stopping, so I would need to wait for it to end or
kill it before I restart it.

If tomcat isn't stopping, find out why and fix it if possible.  The most
typical cause is non-daemon user threads spawned by your apps but never
destroyed properly.  We had that problem and fixed it where we could.
Where we can't, we run only one webapp per instance and have a
ServletContextListener with a System.exit() call in its
contextDestroyed() method to assure shutdown.  Not the cleanest
solution, but it's worked well in practice.

Yoav Shapira
Millennium ChemInformatics

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Ricky Leung
Thanks for the info.

For the information, Tomcat usually stops, but occasionally, it doesn't.
This seems to happen when there are some lockwaits on the db and Tomcat is
just sitting there waiting for it to return.  And yes, we are tracking on it
to see why this is happening so we can have this fixed.


Ricky

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 1:03 PM
 To: Tomcat Users List
 Subject: RE: tomcat not starting after reboot or from cron


 Howdy,
 I can't share the exact script due to intellectual property law issues
 ;)  But it's trivial, basically doing:

 export CATALINA_HOME=/foo/bar
 $CATALINA_HOME/bin/shutdown.sh
 sleep 60
 $CATALINA_HOME/bin/startup.sh

 That's it.

 One of the problems I am worried about
 is that Tomcat isn't stopping, so I would need to wait for it to end or
 kill it before I restart it.

 If tomcat isn't stopping, find out why and fix it if possible.  The most
 typical cause is non-daemon user threads spawned by your apps but never
 destroyed properly.  We had that problem and fixed it where we could.
 Where we can't, we run only one webapp per instance and have a
 ServletContextListener with a System.exit() call in its
 contextDestroyed() method to assure shutdown.  Not the cleanest
 solution, but it's worked well in practice.

 Yoav Shapira
 Millennium ChemInformatics

 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Lott, Carey
Ricky,

Actually, for my startup script that is in init.d, all I am doing is linking
to catalina.sh.  An ls -al of it look like this:

lrwxrwxrwx   1 root staff 53 Nov 12 09:01 tomcat -
/bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh

I have then placed a link to this in the rc3.d.  I could have linked
directly to catalina.sh from rc3.d, but for consistency I like all my
startup and kill scripts in the rc#.d directories to link to the init.d
directory.  The link in the rc3.d directory looks like this:

lrwxrwxrwx   1 root sys   18 Oct 25 10:13 S55tomcat -
/etc/init.d/tomcat

An uppercase S signifies a startup script, and an uppercase K signifies
a kill (or stop) script.

This is the script I am using in the crontab:  (I am sure many have come up
with better, but this works for my developers)

#!/bin/ksh
# The script stops and starts the java servlet container

JAVA_HOME=/bto/appl/apache/j2sdk
CATALINA_HOME=/bto/appl/apache/jakarta-tomcat-4.0.4
#CLASSPATH=$CATALINA_HOME/common/lib:$JAVA_HOME/jre/lib:$JAVA_HOME/lib:$JAVA
_HOME/jre/lib/ext:.
CLASSPATH=$CATALINA_HOME/common/lib/servlet.jar:/bto/appl/apache/j2sdk/jre/l
ib/rt.jar:/bto/appl/apache/j2sdk/lib/tools.jar:/bto/app
l/apache/j2sdk/lib/dt.jar:/bto/appl/apache/j2sdk/lib/htmlconverter.jar:/bto/
appl/apache/j2sdk/jre/lib/charsets.jar:/bto/appl/apache
/j2sdk/jre/lib/javaplugin.jar:/bto/appl/apache/j2sdk/jre/lib/ext/dnsns.jar:/
bto/appl/apache/j2sdk/jre/lib/ext/localedata.jar:/bto/a
ppl/apache/j2sdk/jre/lib/ext/ldapsec.jar:/bto/appl/apache/j2sdk/jre/lib/jce.
jar:/bto/appl/apache/j2sdk/jre/lib/jsse.jar:.:/bto/appl
/apache/jakarta-tomcat-4.0.4/webapps/esd/WEB-INF/classes:/bto/appl/apache/ja
karta-tomcat-4.0.4/webapps/esd/WEB-INF/lib:/bto/appl/ap
ache/htdocs/esd/java

export JAVA_HOME
export CATALINA_HOME
export CLASSPATH

/bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh stop

/bin/sleep 10

/bto/appl/apache/jakarta-tomcat-4.0.4/bin/catalina.sh start



-Original Message-
From: Ricky Leung [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 22, 2003 12:36 PM
To: Tomcat Users List
Subject: RE: tomcat not starting after reboot or from cron


Do you mind sharing your Tomcat restart script with us?  I want to do the
same but perhaps on a weekly basis.  One of the problems I am worried about
is that Tomcat isn't stopping, so I would need to wait for it to end or kill
it before I restart it.

Any help would be appreciated.

Thanks.
Ricky

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:31 PM
 To: Tomcat Users List
 Subject: RE: tomcat not starting after reboot or from cron


 Howdy,
 We have some tomcat instances that restart nightly from a crontab,
 without a problem.  They're all tomcat 4.0.6-LE on Solaris 2.8.  None
 use apache as the front end.  None run as root.  Each runs as its own
 user, and the restart job is in that user's crontab.  We've had no
 problems with this setup.  What does the cron output email say when you
 have problems?

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Lott, Carey [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 12:13 PM
 To: 'Tomcat Users List'
 Subject: tomcat not starting after reboot or from cron
 
 Has anybody had a problem with tomcat (4.0.4) starting after a reboot?
 Or
 problems starting it from the root crontab?
 I have no problems at all starting tomcat manually.  Everything works
 fine
 that way.
 To automate the startup after a reboot, I am using init.d with the
 startup
 script in rc3.d.  However, nothing is happening.  I'm not even
 receiving
 any
 errors in the logs.  But I can immediately start it manually with out a
 problem.
 Also I can't stop and start tomcat from a crontab.  I set up a stop and
 start script and placed them in the root crontab, but the time comes to
 stop
 tomcat and nothing happens then the startup script should be initiated
 a
 minute later but it is a mute point since tomcat didn't stop, but
 nothing
 shows up in the logs either way.
 Is there a parameter or something that I am missing for this to work?
 
 I am running Tomcat 4.0.4 (as a standalone server using port 8880) on
 Solaris 2.7.  Apache 1.3.9 is running on the server as well using port
 80.
 
 Thanks in advance for the help.
 
 - Carey -
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Wendy Smoak
 If you can do it manually, from a log in session, but not automatically
from
 startup or from cron, I'm 99% sure it's because environment variables like
 JAVA_HOME and CATALINA_HOME are not being set for the startup and cron
 environments.  Without those, you won't get anything.  They're probably
 being set just fine for you when you log in.

We're having the same problem with 4.1.1x on HP-UX 11.  We did have
JAVA_HOME set, but not CATALINA_HOME, CATALINA_BASE or CATALINA_TMPDIR.  But
adding those three didn't help.

Curiously, you can (as root) type '/sbin/init.d/hpws_tomcat start' (sans
single quotes) and it starts up just fine.

It's executing this:
su www -c $HPWS_TOMCAT_HOME/bin/startup.sh 1/dev/null 21

I also added export statments for the three CATALINA variables to the
hpws_tomcat script, seeing that there was an export for JAVA_HOME in there
already.

The [Unix] startup logs show Tomcat Started which gets output if all is
well after the line above.  But the Tomcat logs show *nothing* as if
startup.sh was never run, and it isn't running.

It's a mystery, but since I can start Tomcat manually it's not an emergency.
Any ideas?

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



RE: tomcat not starting after reboot or from cron

2003-01-22 Thread Turner, John

Just one, but I'm not sure it's relevant on HP-UX.

su www is not the same as su - www.  The - means use the login
environment the user whose username is the next argument.  So, even if you
exported the variables, without telling su to pick them up, it won't.  At
least, that's how it works in the open source world, as well as Solaris.

HTH

John


 -Original Message-
 From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 22, 2003 3:23 PM
 To: 'Tomcat Users List'
 Subject: RE: tomcat not starting after reboot or from cron
 
 
  If you can do it manually, from a log in session, but not 
 automatically
 from
  startup or from cron, I'm 99% sure it's because environment 
 variables like
  JAVA_HOME and CATALINA_HOME are not being set for the 
 startup and cron
  environments.  Without those, you won't get anything.  
 They're probably
  being set just fine for you when you log in.
 
 We're having the same problem with 4.1.1x on HP-UX 11.  We did have
 JAVA_HOME set, but not CATALINA_HOME, CATALINA_BASE or 
 CATALINA_TMPDIR.  But
 adding those three didn't help.
 
 Curiously, you can (as root) type '/sbin/init.d/hpws_tomcat 
 start' (sans
 single quotes) and it starts up just fine.
 
 It's executing this:
 su www -c $HPWS_TOMCAT_HOME/bin/startup.sh 1/dev/null 21
 
 I also added export statments for the three CATALINA variables to the
 hpws_tomcat script, seeing that there was an export for 
 JAVA_HOME in there
 already.
 
 The [Unix] startup logs show Tomcat Started which gets 
 output if all is
 well after the line above.  But the Tomcat logs show *nothing* as if
 startup.sh was never run, and it isn't running.
 
 It's a mystery, but since I can start Tomcat manually it's 
 not an emergency.
 Any ideas?
 
 -- 
 Wendy Smoak
 Applications Systems Analyst, Sr.
 Arizona State University PA Information Resources Management
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]