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>
                 <name>mail.smtp.host</name>
                 <value>localhost</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]

Reply via email to