473,805 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tomcat doesn't start at boot!

Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
binary, not an RPM. It looks OK but it won't start at boot time.
There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
tomcat.conf file for this version either. Should I create my own shell
script? What should be in it? Should it just call catalina.sh or
startup.sh? Where should I put this script? Can I copy the script
from a previous version? Or is there anything else I should do?
Thanks in advance.
N.K.
Jul 17 '05 #1
1 5260
Liza wrote:
Hi, I have upgraded from Tomcat4.0.4 to Tomcat4.1.29 by installing a
binary, not an RPM. It looks OK but it won't start at boot time.
There are no scripts in /etc/rc.d/init.d/ or /etc/init.d/ All I have
is catalina.sh and startup.sh in $TOMCAT_HOME/bin. There is no
tomcat.conf file for this version either. Should I create my own shell
script? What should be in it? Should it just call catalina.sh or
startup.sh? Where should I put this script? Can I copy the script
from a previous version? Or is there anything else I should do?
Thanks in advance.
N.K.


Here's what I use (this is on Solaris, but should be the same kind of
idea)...

# NAME
# tomcat
#
# SYNOPSIS
# tomcat [start|stop]
#
# DESCRIPTION
# Script to start and stop the Tomcat Java application server.
#
############### ############### ############### ############### ############### ###

CATALINA_HOME=/opt/tomcat
TOMCAT_USER=web
JAVA_HOME=/opt/j2sdk

case $1 in
'start')
su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAV A_HOME
CATALINA_HOME=$ CATALINA_HOME $CATALINA
_HOME/bin/startup.sh"
;;

'stop')
su - $TOMCAT_USER >/dev/null 2>&1 -c "JAVA_HOME=$JAV A_HOME
CATALINA_HOME=$ CATALINA_HOME $CATALINA
_HOME/bin/shutdown.sh"
;;

*)
echo "Usage: $0 { start | stop }"
;;
esac
--
Dave Ockwell-Jenner
Solar Nexus Solutions
http://www.solar-nexus.com/

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
6245
by: Alexandr Molochnikov | last post by:
Hello, I've spent a few days trying to get Apache and Tomcat work together via JK module. First I followed the following HOWTO link: http://www.johnturner.com/howto/winxp-howto.html and managed to get Tomcat static html page load from Apache server without specifying 8080 port, like this:
2
9517
by: kimbuba | last post by:
Hi all, i'm writing cause i'm not able to find any good resources about this topic. I'm programming on tomcat and i have my browser open to see changes i made. The problem is that i'd like to see changes immediatly, is there a way to do this, but using start-stop-reload from tomcato manager admin? I tried to add this to server.xml <Context path="/info" docBase="info" debug="0" reloadable="true">
2
12875
by: Wired Earp | last post by:
I don't get it. First of all, it claims to run on a JRE. This is obviously a fraud, it even says so when you attempt to start it: "The JAVA_HOME variable should point to a JDK and not a JRE". I can accept that, being new to it all and not really caring, but things are going downhill rather fast from here. I'm installing a simple webapp in the the the webapps folder, complete with a context.xml in the conf folder. My servlet behaves just as...
29
3423
by: Ken Allen | last post by:
I have a number of services developed in C# (.Net), and they have been working fine for the most part. Recently someone reported that ipon occassion (originally rarely, but more frequently on some systems of late), there is an entry in the Event Log immediately after a boot indicating that the service failed to start after 30,000 milliseconds. Usually it starts fine when attempting manually after the boot. I instrumented the code to...
3
2851
by: danish | last post by:
hi everyone..sorry everyone if ive posted on the wrong group but i really needed help.... i wan tto start jakarta-tomcat-5.5.3 from the webbrowser using the 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 normal bash commands...i tried doing so ..but a simple command like { system('whoami') } from
1
2941
by: ashok2006 | last post by:
Hi everybody, Here is my problem:- When I start tomcat the command prompt for tomcat openes but closes within seconds. I've following environment varibles set:- CATALINA_HOME C:\jakarta-tomcat-4.1.31 JAVA_HOME C:\j2sdk1.4.2 Path %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\J2SDK1.4.2\BIN;C:\Sun\AppServer\bin
2
3382
by: shanmukhi | last post by:
Hi, I am using tomcat i got a problem with tomcat 5.0.25 as i specified jdk path during installation of tomcat as C:/j2sdk1.4.2_12/jre i tried by specifying path as C:/java/j2sdk1.4.2_12/jre
0
4224
by: Arun21084 | last post by:
Hi, Recently I installed an application HP SIP(Service Information Portal) on a Windows 2000 server.The application comes along with an installation of Tomcat 5.0.19. Already there was an Apache 2 running on the server used by other application. Once after installation of the product(HP SIP), I tried to restart the Tomcat 5.0.19 process using below methods(errors reported below respectively) 1) services.msc console Could not start...
0
2821
rsrinivasan
by: rsrinivasan | last post by:
Hi all, I already posted the same question in this forum. But i did not get any solution for this. I am using tomcat4.1. This is my tomcat context configuration in server.xml file. <Context path="/tri" docBase="tri" debug="0" reloadable="true" crossContext="true" swallowOutput="false"> <Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_examples_log." suffix=".txt" timestamp="true"/> ...
0
9716
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9596
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10356
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9179
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7644
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6874
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5536
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4316
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3839
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.