tomcat 5 on HP-UX don't start at boot, but from command line

From: Mattias (mattias_at_freefarm_se_at_yahoo.com)
Date: 09/28/05


Date: 28 Sep 2005 03:34:17 -0700

I am on a HP-UX computer trying to get tomcat 5 running on port 8081 as
user www.
We can start it from a command line, but not get it to run when the
computer boots.

$ uname -a
HP-UX **** B.11.11 U 9000/800
$ /opt/java1.5/bin/java -version
java version "1.5.0.01"
Java(TM) 2 Runtime Environment, Standard Edition (build
1.5.0.01-_06_jun_2005_05_20)
Java HotSpot(TM) Server VM (build 1.5.0.01 jinteg:06.06.05-04:39 PA2.0
(aCC_AP), mixed mode)

During boot the script /sbin/init.d/hpws_tomcat is run. It uses :
su www -c "$HPWS_TOMCAT_HOME/bin/startup.sh 1>/dev/null 2>&1"
And report Tomcat is Started. How ever, it is not.

In order to test I added 2 programs to the hpws_tomcat script :
1) A java program that writs a time stamp into a log file
2) A small java "echo" server on port 4444

The time-stamp program works fine. The Echo-server does not start.
After boot, if I as root give the command
/sbin/init.d/hpws_tomcat start
Everything works just fine.

So this problem seams to be connected to java networking at boot.

Does any one have any ide about what could possibly be wrong?

I am not the only one with this problem I guess, but I have not seen
any
solutions:
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg82008.html



Relevant Pages

  • Re: Tomcat cant see new files
    ... applet loads, it loads a multipage tiff file, and via a different ... Tomcat gives me a 404 error for just that page. ... the new tiff files exist. ... on which side is the "different command line based application" being ...
    (comp.lang.java.programmer)
  • Re: want to start tomcat from php
    ... sheel scripts...i normally use the shell scripts from the command line ... to start and stop the tomcat server..... ... i found out that php gives this incredible facility where i can execute ... You may be able to su to the tomcat user - but again the OS must be set ...
    (comp.lang.php)
  • Re: want to start tomcat from php
    ... danish wrote: ... sheel scripts...i normally use the shell scripts from the command line ... to start and stop the tomcat server..... ...
    (comp.lang.php)
  • want to start tomcat from php
    ... sheel scripts...i normally use the shell scripts from the command line ... to start and stop the tomcat server..... ... i found out that php gives this incredible facility where i can execute ... prints apache as the user....so technically it executes the tomcat ...
    (comp.lang.php)