restart tomcat everytime I make change to servlet -- after experiment

2003-09-03 Thread Clive Luk
OK. seems i am asking a hard question here. But I did some experiment
myself. just to give out more hints to the list to help solving my problem
and I am hoping someone maybe able to help. I am sure someone in the world
will have the same problem  and been solved.

here is what i have done. after no luck with my virtual host setting. i am
trying going through tomcat directly via port 8080

* I created a directory under {$tomcat_home}/webapps/ call mytest
* I copied the WEB-INF to the default place {$tomcat_home}/webapps/mytest
* under that i have
drwxr-xr-x2 root root 4096 Sep  3 16:20 classes
-rw-r--r--1 root root  998 Sep  3 16:20 web.xml
* under classes i have
-rw-r--r--1 root root  870 Sep  3 16:39 HelloWorld.class


in {$tomcat_home}/conf/server.xml

i added that
Context path=/mytest docBase=mytest debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_mytest_log. suffix=.txt
  timestamp=true/
/Context

then I can access the HelloWorld servlet by
http://localhost:8080/mytest/HelloWorld
If i made changes on HelloWorld.java, recompile and replace the old
HelloWorld.class with the new one.

I still can see tomcat knows i am making changes

WebappClassLoader:   Resource '/WEB-INF/classes/HelloWorld.class' was
modified; Date is now: Wed Sep 03 16:39:54 EST 2003 Was: Wed Sep 03 16:26:11
EST 2003

but after I refresh the http://localhost:8080/mytest/HelloWorld I still get
the bunch of java errors.

first reload saying HTTP Status 500
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception SNIP java errors

second reload saying HTTP Status 503 - Servlet HelloWorld is currently
unavailable
type Status report
message Servlet HelloWorld is currently unavailable
description The requested service (Servlet HelloWorld is currently
unavailable) is not currently available.


Then, since I can see mytest under the tomcat manager. I can reload it.
but still the same java errors happened. I had to stop and start mytest
in order to see the changes. But I don't want to do this STOP START ACTION
again and again after every single change of the servlet.

I thought the reloadable=true will handle that.

I don't really want to blame on a bug of tomcat. But would that be possible.
OR has anyone in the world has done what I want to do without using any
tools like the tomcat manager? I am greatly appreciated for any help.
THANKS.

I am going to pull all my hair out... : (

Cheers,
Clive


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



Vedr.: restart tomcat everytime I make change to servlet -- afterexperiment

2003-09-03 Thread Thomas Nybro Bolding
There was a thread the other day about the same issue I think. Two persons 
answered:

Tim Funk replied:

YOu mean this?
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22096

-Tim

And John Wigfield replied:

Have you applied the hotfix?

http://hillman-family.net/dist/jakarta/tomcat-4/binaries/

Their answers helped the other guy and will also probably do the job for 
you.

/Thomas




Clive Luk [EMAIL PROTECTED]
03-09-03 09:07
Besvar venligst til Tomcat Users List

 
Til:Tomcat Users List [EMAIL PROTECTED]
cc: 
Vedr.:  restart tomcat everytime I make change to servlet -- after experiment

OK. seems i am asking a hard question here. But I did some experiment
myself. just to give out more hints to the list to help solving my problem
and I am hoping someone maybe able to help. I am sure someone in the world
will have the same problem  and been solved.

here is what i have done. after no luck with my virtual host setting. i am
trying going through tomcat directly via port 8080

* I created a directory under {$tomcat_home}/webapps/ call mytest
* I copied the WEB-INF to the default place {$tomcat_home}/webapps/mytest
* under that i have
drwxr-xr-x2 root root 4096 Sep  3 16:20 classes
-rw-r--r--1 root root  998 Sep  3 16:20 web.xml
* under classes i have
-rw-r--r--1 root root  870 Sep  3 16:39 HelloWorld.class


in {$tomcat_home}/conf/server.xml

i added that
Context path=/mytest docBase=mytest debug=0
 reloadable=true crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=localhost_mytest_log. suffix=.txt
  timestamp=true/
/Context

then I can access the HelloWorld servlet by
http://localhost:8080/mytest/HelloWorld
If i made changes on HelloWorld.java, recompile and replace the old
HelloWorld.class with the new one.

I still can see tomcat knows i am making changes

WebappClassLoader:   Resource '/WEB-INF/classes/HelloWorld.class' was
modified; Date is now: Wed Sep 03 16:39:54 EST 2003 Was: Wed Sep 03 
16:26:11
EST 2003

but after I refresh the http://localhost:8080/mytest/HelloWorld I still get
the bunch of java errors.

first reload saying HTTP Status 500
type Exception report
message
description The server encountered an internal error () that prevented it
from fulfilling this request.
exception SNIP java errors

second reload saying HTTP Status 503 - Servlet HelloWorld is currently
unavailable
type Status report
message Servlet HelloWorld is currently unavailable
description The requested service (Servlet HelloWorld is currently
unavailable) is not currently available.


Then, since I can see mytest under the tomcat manager. I can reload it.
but still the same java errors happened. I had to stop and start 
mytest
in order to see the changes. But I don't want to do this STOP START ACTION
again and again after every single change of the servlet.

I thought the reloadable=true will handle that.

I don't really want to blame on a bug of tomcat. But would that be 
possible.
OR has anyone in the world has done what I want to do without using any
tools like the tomcat manager? I am greatly appreciated for any help.
THANKS.

I am going to pull all my hair out... : (

Cheers,
Clive


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





FONT SIZE=1 FACE=Arial___
Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du 
ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om 
fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit 
system uden at videresende eller kopiere den.
Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for 
virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages 
og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar 
for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen.
___
Please note that this message may contain confidential information. If you have 
received this message by mistake, please inform the sender of the mistake by sending a 
reply, then delete the message from your system without making, distributing or 
retaining any copies of it.
Although we believe that the message and any attachments are free from viruses and 
other errors that might affect the computer or IT system where it is received and 
read, the recipient opens the message at his or her own risk. We assume no 
responsibility for any loss or damage arising from the receipt or use of this message.
/FONT



RE: restart tomcat everytime I make change to servlet

2003-09-03 Thread Mike Curwen
Did you apply the hotfix, that is specifically for class reloading
issues in 4.1.27 ?
 


 -Original Message-
 From: Clive Luk [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, September 02, 2003 9:13 PM
 To: [EMAIL PROTECTED]
 Subject: RE: restart tomcat everytime I make change to servlet
 
 

snip /

 
 Could that be a problem of I am using a binary of tomcat?
 
 i am using tomcat 4.1.27


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



RE: restart tomcat everytime I make change to servlet -- after experiment

2003-09-03 Thread Mike Curwen
Don't pull out your hair, check my reply to your first post... (class
reloading is buggy in Tomcat 4.1.27)


 -Original Message-
 From: Clive Luk [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 03, 2003 2:07 AM
 To: Tomcat Users List
 Subject: restart tomcat everytime I make change to servlet -- 
 after experiment
 

snip /

 
 I don't really want to blame on a bug of tomcat. But would 
 that be possible. OR has anyone in the world has done what I 
 want to do without using any tools like the tomcat manager? I 
 am greatly appreciated for any help. THANKS.
 
 I am going to pull all my hair out... : (
 
 Cheers,
 Clive
 


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



Antwort: RE: restart tomcat everytime I make change to servlet -- afterexperiment

2003-09-03 Thread erik . itter
do you know if it is fixed in 5.0.9?



Mail von Extern


Mike Curwen [EMAIL PROTECTED]


03.09.2003 15:48
Bitte antworten an Tomcat Users List

 
An: 'Tomcat Users List' [EMAIL PROTECTED], 
[EMAIL PROTECTED]
Kopie: 
Thema:  RE: restart tomcat everytime I make change to servlet -- after 
experiment


Don't pull out your hair, check my reply to your first post... (class
reloading is buggy in Tomcat 4.1.27)


 -Original Message-
 From: Clive Luk [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, September 03, 2003 2:07 AM
 To: Tomcat Users List
 Subject: restart tomcat everytime I make change to servlet -- 
 after experiment
 

snip /

 
 I don't really want to blame on a bug of tomcat. But would 
 that be possible. OR has anyone in the world has done what I 
 want to do without using any tools like the tomcat manager? I 
 am greatly appreciated for any help. THANKS.
 
 I am going to pull all my hair out... : (
 
 Cheers,
 Clive
 


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





RE: restart tomcat everytime I make change to servlet [solved]

2003-09-03 Thread Clive Luk
Hi all,

Thank you for all the replies. I have applied the hotfix last night. it
WORKS! thanks for all. that was just a bug. i can save my hair for next
time. : )

Cheers,
Clive

-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:46 PM
To: 'Tomcat Users List'; [EMAIL PROTECTED]
Subject: RE: restart tomcat everytime I make change to servlet


Did you apply the hotfix, that is specifically for class reloading
issues in 4.1.27 ?



 -Original Message-
 From: Clive Luk [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 02, 2003 9:13 PM
 To: [EMAIL PROTECTED]
 Subject: RE: restart tomcat everytime I make change to servlet



snip /


 Could that be a problem of I am using a binary of tomcat?

 i am using tomcat 4.1.27



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



restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


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



Re: restart tomcat everytime I make change to servlet

2003-09-02 Thread Filip Hanik
you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
(StandardWrapper.java:88
5)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:263)
at
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:604)
at
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:562)
at
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:679)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:619)
at java.lang.Thread.run(Thread.java:534)



Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Filip,

But the servlet is sitting in one of the virtual host i setup. I can't see
my virtual host setting in my tomcat manager. I only see the default setting
in the manager. is there any other way?

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


using ANT or the admin webapp will let you do that.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:24 PM
Subject: RE: restart tomcat everytime I make change to servlet


Hi Filip,

Thanks for the reply. How do I restart the context without restarting
tomcat? does that mean if i make any changes to servlet i will have to
restart something? sorry i am only new in tomcat.

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Filip Hanik
hmm, maybe this

http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks

Filip
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 6:55 PM
Subject: RE: restart tomcat everytime I make change to servlet


Filip,

But the servlet is sitting in one of the virtual host i setup. I can't see
my virtual host setting in my tomcat manager. I only see the default setting
in the manager. is there any other way?

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


using ANT or the admin webapp will let you do that.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:24 PM
Subject: RE: restart tomcat everytime I make change to servlet


Hi Filip,

Thanks for the reply. How do I restart the context without restarting
tomcat? does that mean if i make any changes to servlet i will have to
restart something? sorry i am only new in tomcat.

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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: restart tomcat everytime I make change to servlet

2003-09-02 Thread Clive Luk
Thanks for your quick reply,

I have search around on the web. some people said you only put the
reloadable=true in the Context tag that' will solve the problem. But i
still have no luck.

The follwoing is my virtual host setting in server.xml. But I still got the
error. if you look at my previous post for the logs. Thanks again.

Could that be a problem of I am using a binary of tomcat?

i am using tomcat 4.1.27

Host name=catch.mine.nu debug=1 appBase=/web/domain/htdocs
   unpackWARs=true autoDeploy=true

 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs  prefix=domain_com. suffix=.log
 timestamp=true/

 Context path= docBase= debug=0 reloadable=true

 Logger className=org.apache.catalina.logger.FileLogger
 prefix=domain. suffix=.log timestamp=true /

 Resource name=mail/Session auth=Container
   type=javax.mail.Session/
 ResourceParams name=mail/Session
 parameter
 namemail.smtp.host/name
 valuelocalhost/value
 /parameter
 /ResourceParams

 /Context
/Host

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 12:03 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


hmm, maybe this

http://raibledesigns.com/wiki/Wiki.jsp?page=TomcatAntTasks

Filip
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 6:55 PM
Subject: RE: restart tomcat everytime I make change to servlet


Filip,

But the servlet is sitting in one of the virtual host i setup. I can't see
my virtual host setting in my tomcat manager. I only see the default setting
in the manager. is there any other way?

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:38 AM
To: [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


using ANT or the admin webapp will let you do that.

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html
- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Filip Hanik [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:24 PM
Subject: RE: restart tomcat everytime I make change to servlet


Hi Filip,

Thanks for the reply. How do I restart the context without restarting
tomcat? does that mean if i make any changes to servlet i will have to
restart something? sorry i am only new in tomcat.

Cheers,
Clive

-Original Message-
From: Filip Hanik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:22 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: restart tomcat everytime I make change to servlet


you will need to restart the context I believe,

but if you truly want this functionality, put your servlet code in a JSP

Filip

- Original Message -
From: Clive Luk [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:13 PM
Subject: restart tomcat everytime I make change to servlet


Hi list,

I have come up another problem with making changes on servlet. Hope someone
can give me a hand on that. This is how I do it.

1. make changes to servlet1.java
2. javac servlet1.java
3. copy the servlet1.class to /whatever/WEB-INF/classes

The problem is I don't have any problem running tomcat. Until I overwrite an
old version of servlet with an new one. Everything seems gone wrong.

I will get HTTP status 500 to the servlet I changed.

If I reload the page again. I will get 503 Servlet servlet1 is currently
unavailable.

If I try other servlet that I didn't change I will get the same error.

Please help. Thanks in advance.

Cheers,
Clive


-
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]