02-10-2006
From my poor memory, I think Tomcat has a manager Web application that allows a servlet to be reloaded while the server is still running. By default it is installed with Tomcat and you need to change the Tomcat configuration to allow a user to access it. Please look at the Tomcat documentation for details.
Otherwise, you can always shutdown the server and start it again then the servlets must reinitialize.
I think you only need to reload a servlet if you have made changes to the .class'es. If you just update some resources (e.g. images, HTML files etc.) then you don't need to reload the servlet. You also do not need to reload a servlet if you have just updated the JSPs.
10 More Discussions You Might Find Interesting
1. Linux
Hello!
Does anyone know howto reload your kernal without rebooting the machine?
I´ve updated the "/etc/security/limits.conf " file and need to make this active without rebooting the machine. this is Red Hat Advanced Server 2.1AS
Regards...
dOzY (3 Replies)
Discussion started by: dozy
3 Replies
2. UNIX for Dummies Questions & Answers
Hi there,
I got to find out that if I make changes in the prompt or command aliases from .bashrc, I could apply those changes immediately with the command:
source ~/.bashrc
There's another situation when I'd like to apply changes without loging out and in again: If I add someone to a group of... (2 Replies)
Discussion started by: chebarbudo
2 Replies
3. UNIX Desktop Questions & Answers
I am using Thunar on FreeBSD 7.1 and XFCE. I would like the thunar window to reload automatically when a file has been added or deleted. Currently I press Ctrl-R, but perhaps a setting that I dont know of will do this automatically? (0 Replies)
Discussion started by: figaro
0 Replies
4. Web Development
Hi All,
I'm trying to play around with Java Servlets. I have a apache web server running on Solaris. And I'm trying to understand which file I add the JAVA CLASSPATH too so that when apache starts up it will have access to mysql interface libraries etc.
Could some one please tell me?
... (0 Replies)
Discussion started by: fishman2001
0 Replies
5. Shell Programming and Scripting
Hi All,
I have deployed a servlet on my server and the u r l is
http://
localhost:9080/ ExampleApp / TestJackServlet
This works fine when i launch this URL from the browser
I am looking for shell script to hit the servlet or hit the URL without launching the browser session.
I... (3 Replies)
Discussion started by: jack3698
3 Replies
6. Red Hat
Is there a easy-to-use graphical tool (or a simple and direct set of command line instructions) that will help me reload services on Red Hat Enterprise Linux ES version 3?
VSFTPD keeps dying on my business server - seemingly at random, with message "dead but subsys locked"
VSFTPD starts and... (2 Replies)
Discussion started by: mdarby77
2 Replies
7. UNIX for Dummies Questions & Answers
I just created a CNAME and i was told a zone needs to be reloaded after creating a CNAME. What is the command to reload a zone after the CNAME has been created?
Thanks in advance (1 Reply)
Discussion started by: German Shepherd
1 Replies
8. Solaris
Hi,
We have upgrade tomcat from 5.0.20 to 7.0.33 and made changes to server.xml file according to newer version.. how ever the upgrade went fine and now i am unable to deploy application remotely.. it is giving 403 access denied error.. we have seperate appbase directory mentioned in server.xml..... (0 Replies)
Discussion started by: phani4u
0 Replies
9. Solaris
Am trying to find a copy of xsql servlet for solaris 7 but it seams its no longer available to download so am wondering if anyone has a copy backed up there can share with me?
thanks :) (2 Replies)
Discussion started by: Wpgn
2 Replies
10. UNIX for Dummies Questions & Answers
Hi,
For one of our requirements, we are using curl command from a Linux box to call the servlet using PEM certificates type. Once servlet is trigger, the data will be loaded through servlet. If the servlet thread is completed successfully, then the control should return to Unix and based on... (0 Replies)
Discussion started by: subhransun
0 Replies
LEARN ABOUT DEBIAN
ocf_heartbeat_tomcat
OCF_HEARTBEAT_TOMCAT(7) OCF resource agents OCF_HEARTBEAT_TOMCAT(7)
NAME
ocf_heartbeat_tomcat - Manages a Tomcat servlet environment instance
SYNOPSIS
tomcat [start | stop | status | monitor | meta-data | validate-all]
DESCRIPTION
Resource script for Tomcat. It manages a Tomcat instance as a cluster resource.
SUPPORTED PARAMETERS
tomcat_name
The name of the resource, added as a Java parameter in JAVA_OPTS: -Dname=<tomcat_name> to Tomcat process on start. Used to ensure
process is still running and must be unique. (unique, optional, string, no default)
script_log
Log file, used during start and stop operations. (unique, optional, string, no default)
tomcat_stop_timeout
Time-out for stop operation. DEPRECATED (optional, integer, no default)
tomcat_suspend_trialcount
Maximum number of times to retry stop operation before suspending and killing Tomcat. DEPRECATED. Does not retry. (optional, integer,
no default)
tomcat_user
The user who starts Tomcat. (optional, string, no default)
statusurl
URL for state confirmation. (optional, string, no default)
java_home
Home directory of Java. (required, string, no default)
java_opts
Java JVM options used on start and stop. (optional, string, no default)
catalina_home
Home directory of Tomcat. (unique, required, string, no default)
catalina_base
Instance directory of Tomcat (unique, optional, string, no default)
catalina_pid
A PID file name for Tomcat. (unique, optional, string, no default)
tomcat_start_opts
Tomcat start options. (optional, string, no default)
catalina_opts
Catalina options, for the start operation only. (optional, string, no default)
catalina_rotate_log
Rotate catalina.out flag. (optional, string, no default)
catalina_rotatetime
catalina.out rotation interval (seconds). (optional, integer, no default)
SUPPORTED ACTIONS
This resource agent supports the following actions (operations):
start
Starts the resource. Suggested minimum timeout: 60s.
stop
Stops the resource. Suggested minimum timeout: 120s.
status
Performs a status check. Suggested minimum timeout: 60.
monitor
Performs a detailed status check. Suggested minimum timeout: 30s. Suggested interval: 10s.
meta-data
Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 5s.
validate-all
Performs a validation of the resource configuration. Suggested minimum timeout: 5.
EXAMPLE
The following is an example configuration for a tomcat resource using the crm(8) shell:
primitive p_tomcat ocf:heartbeat:tomcat
params
java_home=string
catalina_home=string
op monitor depth="0" timeout="30s" interval="10s"
SEE ALSO
http://www.linux-ha.org/wiki/tomcat_(resource_agent)
AUTHOR
Linux-HA contributors (see the resource agent source for information about individual authors)
resource-agents UNKNOWN 03/09/2014 OCF_HEARTBEAT_TOMCAT(7)