Re: Servlet re-load question - install fix

2003-08-26 Thread Luke Vanderfluit
Hi,

There's a bug in 4.1.27

there's a fix at the tomcat site,
4.1.27-hotfix-22096.tar.gz
I unzipped the fix somewhere neutral then created the directories by
hand and copied the class file in (otherwise tomcat would complain a bit
when starting)

Also you can use the manager app,
from the startup page of tomcat 
http://localhost:8080/index.jsp
choose manager 
if you can't get in you'll have to edit /$CATALINA/conf/tomcat-users by
adding admin,manager to one of the roles (it's in the documentation)
restart tomcat for this to take effect

then when in manager, you can easily stop and start webapps, which is
much faster than restarting tomcat,

but with the above fix tomcat detects the changed classes.

hope this helps
kind regards,
Luke

On Tue, 2003-08-26 at 14:43, Atreya Basu wrote:
 I'm having trouble reloading servlets on Tomcat 4.1.27.
 
 The log files indicate that Tomcat notices that the servlet has 
 changed.  First time, after updating the servlet, I hit up the servlet I 
 get a 500 error and a stack trace.  Every time after that I get a 
 resource not available error.
 My context looks something like this:
 Context docBase= docRoot= reloadable=true
 
 Can anyone please tell me what I can do?  This is pretty serious because 
 I have to re-start Tomcat each time somone changes a servlet.
 
 Thanks in advance.
 
 
 Atreya
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 

when my computer smiles, I'm happy

Luke Vanderfluit 
Mobile: 0421 276 282


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



Servlet re-load question

2003-08-25 Thread Atreya Basu
I'm having trouble reloading servlets on Tomcat 4.1.27.

The log files indicate that Tomcat notices that the servlet has 
changed.  First time, after updating the servlet, I hit up the servlet I 
get a 500 error and a stack trace.  Every time after that I get a 
resource not available error.
My context looks something like this:
Context docBase= docRoot= reloadable=true

Can anyone please tell me what I can do?  This is pretty serious because 
I have to re-start Tomcat each time somone changes a servlet.

Thanks in advance.

Atreya

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


RE: Servlet re-load question

2003-08-25 Thread Schalk
Atreya

Your code looks fine but it may be that you are ommiting the path paramater
that is causing the problem:
Context path=/examples docBase=examples debug=0
reloadable=true 

Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Atreya Basu [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, August 26, 2003 7:13 AM
:: To: Tomcat Users List; Atreya Basu
:: Subject: Servlet re-load question
:: 
:: I'm having trouble reloading servlets on Tomcat 4.1.27.
:: 
:: The log files indicate that Tomcat notices that the servlet has
:: changed.  First time, after updating the servlet, I hit up the servlet I
:: get a 500 error and a stack trace.  Every time after that I get a
:: resource not available error.
:: My context looks something like this:
:: Context docBase= docRoot= reloadable=true
:: 
:: Can anyone please tell me what I can do?  This is pretty serious because
:: I have to re-start Tomcat each time somone changes a servlet.
:: 
:: Thanks in advance.
:: 
:: 
:: Atreya
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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



RE: Servlet re-load question

2003-08-25 Thread Atreya Basu
Hi,

Thanks for the suggestion.  This context is my root context.  So I don't
want to reach it via a sub-directory, I want to access it from the root
url.

_
Atreya Basu
Developer,
Greenfield Research Inc.
e-mail: atreya (at) greenfieldresearch (dot) ca

-Original Message-
From: Schalk [mailto:[EMAIL PROTECTED] 
Sent: August 25, 2003 6:13 AM
To: 'Tomcat Users List'
Subject: RE: Servlet re-load question

Atreya

Your code looks fine but it may be that you are ommiting the path
paramater
that is causing the problem:
Context path=/examples docBase=examples debug=0
reloadable=true 

Kind Regards
Schalk Neethling
Volume4.Development.Multimedia.Branding
emotionalize.conceptualize.visualize.realize
Tel: +27125468436
Fax: +27125468436
email:[EMAIL PROTECTED]
web: www.volume4.co.za
 

:: -Original Message-
:: From: Atreya Basu [mailto:[EMAIL PROTECTED]
:: Sent: Tuesday, August 26, 2003 7:13 AM
:: To: Tomcat Users List; Atreya Basu
:: Subject: Servlet re-load question
:: 
:: I'm having trouble reloading servlets on Tomcat 4.1.27.
:: 
:: The log files indicate that Tomcat notices that the servlet has
:: changed.  First time, after updating the servlet, I hit up the
servlet I
:: get a 500 error and a stack trace.  Every time after that I get a
:: resource not available error.
:: My context looks something like this:
:: Context docBase= docRoot= reloadable=true
:: 
:: Can anyone please tell me what I can do?  This is pretty serious
because
:: I have to re-start Tomcat each time somone changes a servlet.
:: 
:: Thanks in advance.
:: 
:: 
:: Atreya
:: 
:: 
:: -
:: To unsubscribe, e-mail: [EMAIL PROTECTED]
:: For additional commands, e-mail: [EMAIL PROTECTED]



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




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