Your problem is that you are stopping tomcat, which shuts down the jvm,
and then you are trying to start it again. Because the jvm has exited, it
never starts it again.
I'm not sure if this will work, but you could do a system exec that forks
into another process, and sleeps for a bit (long en
- Original Message -
From: "Dmitri Colebatch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, July 24, 2001 10:49 AM
Subject: Re: Restarting TOMCAT
> Your problem is that you are stopping tomcat, which shuts down the jvm,
> and then you are trying
yes u have to stop tomcat whenever u compile the bean or the servlet.
bye
> -Original Message-
> From: Jurrius, Mark [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, February 06, 2001 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: Restarting Tomcat??
>
> I'm using Tomcat 3.2 with Microsoft
That's a great question! I was about to ask a very similar question myself.
If you make changes to a JSP file, that means that file has to be
recompiled, first to a .java file, then by javac to a .class file, which is
really a Servlet. So, does changing a JSP file mean the Tomcat web app to
which
I don't know the "why's". I just know that a change to a JSP doesn't require
a restart but a change to a class file does.
Karl
>
> That's a great question! I was about to ask a very similar
> question myself.
>
> If you make changes to a JSP file, that means that file has to be
> recompiled, firs
t;
Sent: Tuesday, March 30, 2004 10:43 PM
Subject: RE: restarting tomcat
> I don't know the "why's". I just know that a change to a JSP doesn't
require
> a restart but a change to a class file does.
>
> Karl
>
> >
> > That's a great question
> -Original Message-
> From: Duncan Krebs [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 30, 2004 8:51 PM
> To: Tomcat Users List
> Subject: Re: restarting tomcat
>
>
> I also know that there are different types of debugging modes
> that you can
> run T
. I don't see why
this would not carry over to Tomcat5.
- Duncan
- Original Message -
From: "Rob Ross" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, March 30, 2004 10:55 PM
Subject: RE: restarting tomcat
ECTED]
> Sent: Tuesday, March 30, 2004 10:06 PM
> To: Tomcat Users List
> Subject: Re: restarting tomcat
>
>
> Rob,
> I know with using ECLIPSE and Tomcat4x you can run 'catalina
> jpda start'
> from a command prompt and be able to walk through your
>
essing, unless I hear something
> definitive, that they too require the web app to be reloaded.
>
> Rob
>
>
>
> > -Original Message-
> > From: Duncan Krebs [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, March 30, 2004 10:06 PM
> > To: Tomcat Users List
Changed items can be re-loaded on the fly because of dynamic classloading.
Every JSP instance lives in its own classloader. When a jsp source file is
changed, the JSP servlet recognizes the change and recompiles the JSP. Once
the JSP is translated to a new .java (and .class file) - the class fil
Try to call shell/DOS script (startup.bat/sh) from Java.
tom
-Original Message-
From: Ankit [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 8:36 AM
To: [EMAIL PROTECTED]
Subject: restarting tomcat programatically
hi,
i am trying to restart tomcat from my web application. Is th
riginal Message -
From: "Marek, Tomas" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, June 13, 2002 12:24 PM
Subject: RE: restarting tomcat programatically
> Try to call shell/DOS script (startup.bat/sh) from Java.
Howdy,
If your own webapp is running on the tomcat instance you're trying to
restart, then HUH? ;) One VM can always restart another, as others have
proposed. So you can have a command line program, shell scripts,
another webapp running on another tomcat instance, etc.
Alternatively, look at ho
Had the same problem, never figured out how to get rid of it.
I used it stand alone.
-V.
- Original Message -
From: "Simon Hardingham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 13, 2001 10:27 AM
Subject: Restarting Tomcat/Apache
> Hi,
>
> I am having problems re
You have to have the ajp12 instantiated in server.xml file just for
shutdown, even if you do not use it in workers.properties
Just copy the ajp13 connector stuff and change ajp12 -> ajp13
It usually helps...
On Mon, 13 Aug 2001, Simon Hardingham wrote:
> Hi,
>
> I am having problems restarting
I use jave just about the exact same configuration and I don't have the
problems you state. I have noticed that if I restart tomcat *without*
restarting apache, there are problems.
To restart I use the following script:
#!/bin/bash
/usr/apache/bin/apachectl stop
sleep 2
/usr/jakarta/dist/tomcat/
TECTED]
> Subject: Re: Restarting Tomcat/Apache
>
>
> I use jave just about the exact same configuration and I
> don't have the
> problems you state. I have noticed that if I restart tomcat *without*
> restarting apache, there are problems.
>
> To restart I use the fo
[EMAIL PROTECTED]]
> Sent: 13 August 2001 21:13
> To: [EMAIL PROTECTED]
> Subject: Re: Restarting Tomcat/Apache
>
>
> I use jave just about the exact same configuration and I
> don't have the
> problems you state. I have noticed that if I restart tomcat *without*
>
Hi,
to start tomcat in a separate window use
"$CATALINA_HOME/bin/catalina.sh start"
to stop tomcat use
"$CATALINA_HOME/bin/catalina.sh stop"
It works fine so you don't need to wait for ending the tomcat process.
Bye
Thanh
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PR
It works fine if you wait long enough between calling the stop and start script,
but not if you write a "restart" script which
calls "catalina.sh start" and immediately after, "catalina.sh stop", because
then there's no delay between the two, and tomcat doesn't have the
time to shutdown before you
There is a manager application well described in the doc ;-)
-Original Message-
From: Jakarta Tomcat Newsgroup [mailto:[EMAIL PROTECTED]]
Sent: 09 July 2002 16:40
To: [EMAIL PROTECTED]
Subject: restarting tomcat without restarting ;)
Subject: restarting tomcat without restarting ;)
From
Set the reloadable attribute of the Context element in your server.xml to
true
RS
jakarta-tom on 07/09/2002 09:40:02 AM
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
To:[EMAIL PROTECTED]
cc:
Subject:restarting tomcat without restarting ;)
Subject: restarting tomcat w
Maybe you didn't really kill off Tomcat, but just the DOS box it was running
in,... (I've seen it happen after closing the DOS box, but not after
Ctrl+C'ing the program.)
Try bringing up the Task Manager, and make sure there aren't any instances
of a "java" image name running.
I've already tried that. Tomcat is dead, alright. Is there a way to
explicitly free up a port on NT?
At 06:04 PM 07/02/2001, you wrote:
>Maybe you didn't really kill off Tomcat, but just the DOS box it was running
>in,... (I've seen it happen after closing the DOS box, but not after
>Ctrl+C'ing
f [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 02, 2001 7:34 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Restarting Tomcat on NT
>
>
> I've already tried that. Tomcat is dead, alright. Is there a way to
> explicitly free up a port on NT?
>
> At 06:04 PM 07/02/2001, you w
mine which ports are currently in use (and their state).
>
> Randy
>
> > -Original Message-
> > From: Steven Turoff [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 02, 2001 7:34 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: Restarting Tomcat on NT
> >
EMAIL PROTECTED]]
Sent: Tuesday, July 03, 2001 5:30 AM
To: [EMAIL PROTECTED]
Subject: RE: Restarting Tomcat on NT
Actually, I'm not running Tomcat as a service. I meant that I don't have
any problems starting Tomcat after rebooting the machine. I've run netstat
-a (results below)
process dies.
> >
> > Also, 2000 (and I believe NT) ship with netstat. Using "netstat
>-a"
> >you can determine which ports are currently in use (and their state).
> >
> > Randy
> >
> > > -Original Message-
> > &
The best practice is to find the "leak" and fix it. Restarting is a cover up
to a problem that may cause bigger problems down the road as the project
scope increases. You "can" do this but it only hides the real problem and if
someone replicates you site and forgets to write or enable the script, t
Agreed,
and if you have any session information and the session can't be (for
whatever reason) be de/serialized, it would indeed be a very bad idea to
restart tomcat.
Christoph
Robert Harper wrote:
The best practice is to find the "leak" and fix it. Restarting is a cover up
to a problem that
http://localhost:8080/manager/stop?path=/Learning";
username="adminUserName" password="adminPassword"/>
${STOPOUTPUT}
http://localhost:8080/manager/start?path=/Learning";
t;Darrell
>>
>>
>>-Original Message-
>>From: Steven Turoff [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, July 03, 2001 5:30 AM
>>To: [EMAIL PROTECTED]
>>Subject: RE: Restarting Tomcat on NT
>>
>>
>>Actually, I'm not running To
If that is the case then I believe that the docs would be incorrect. I
often restart Tomcat without restarting Apache.
-Original Message-
From: softspt [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 03, 2003 1:32 AM
To: [EMAIL PROTECTED]
Subject: Restarting Tomcat without restarting Apache
You can start/stop each independently. I do it all the time. You may
encounter errors in Apache's logs, if it is in the middle of trying to
satisfy a request to Tomcat, but Tomcat is restarted before the request can
complete.
The cleanest way to do this, for stops, is: stop Apache, then stop
If you are using the mod_jk from 3.2.x, then this is true. Any more recent
version allows you to restart Tomcat independently of Apache. You can even
simply upgrade mod_jk, and continue to use TC 3.2.x if you want.
"softspt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Protective
Protective Marking: UNCLASSIFIED
Thanks for the replies; sounds like I needn't have worried so much :-)
*
This Email and any files transmitted with it is intended solely for
the use of the individual or entity to whom the
I have heard of this done by using a second webserver with perl installed and
then using Perl Win32 calls from webserver A to webserver B to restart the
server.
You could always run the other webserver on a high protected port so you
don't need a second box.
-Tim
Altug B. Altintas wrote:
Hi
Howdy,
Restarting all of tomcat or just selected webapps?
Yoav Shapira
Millennium ChemInformatics
>-Original Message-
>From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
>Sent: Thursday, December 04, 2003 10:57 AM
>To: Tomcat Users List
>Subject: Restarting tomcat from web page
>
>Hi
>Ho
The only way to restart a Windows service is through native code. You
could use JNDI, or Runtime.exec() to run a "net stop & net start"
script, or a perl script, or a vbs one... there are many options here :-)
Apart from protecting the page, I would also implement a first step with
a countdown,
it doesn't matter, but restarting all of tomcat much better.
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, December 04, 2003 6:03 PM
Subject: RE: Restarting tomcat from
Millennium ChemInformatics
>-Original Message-
>From: Altug B. Altintas [mailto:[EMAIL PROTECTED]
>Sent: Friday, December 05, 2003 4:21 AM
>To: Tomcat Users List
>Subject: Re: Restarting tomcat from web page
>
>it doesn't matter, but restarting all of tomcat much
hi,
could u please give an example ?
- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 4:09 PM
Subject: RE: Restarting tomcat from web page
Howdy,
It does matter
Hello fredrik,
You can use the manager task to reload the app without restarting the
server. See the manager docs.
Jake
Friday, August 16, 2002, 3:03:58 PM, you wrote:
ftc> Hello,
ftc> Do I need to restart tomcat every time I update a class/bean?
ftc> This is so frustrating!
ftc> /Fredrik
If you call "net stop tomcat" (which effectively does a
System.exit), how will the Java process be around to call "net start
tomcat"? (Answer, it won't).
Randy
> -Original Message-
> From: Matt Egyhazy [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 02, 2002 6:24
45 matches
Mail list logo