How to set servlet reloadable in Tomcat 4.0 ?

2001-09-20 Thread Kenny Ma

i am using tomcat 3.2
But seems tomcat 3.2 cannot reload Servlet..

Can anyone tell me how to config Tomcat 4.0/3.3 to make Servlet reloadable ?

And, tomcat 3.2 / tomcat 4.0. Which is better ?

Thanks


/* Kenny Ma
   [EMAIL PROTECTED] */




Re: Changing the Servlets Directory

2001-09-19 Thread Kenny Ma

Tomcat is very difficult for user to change it's defualt setting...
I want to change the directory of servlet before, but now i already give up.

And I still cant resolve Tomcat cache problem.
Everytime I edit my servlet, I need to restart tomcat to get the latest 
result. I already added reloadable = true in server.xml.

I like Jserv more. Why stop develop Jserv ???


 After I installed Tomcat 3.2.3, my servlet directory is C:\Program
 Files\Apache Group\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes.
 Now I want to change it to, or add the directory C:\public_html\myServlets.
 
 I've tried and tried and I cannot figure this out.  How is this done?
 
 -Matt





/* Kenny Ma
   [EMAIL PROTECTED] */




Re: Help ~ Tomcat cache problem

2001-09-14 Thread Kenny Ma

I cant solve ~~
Anyone can solve this problem
seems this is a big problem to many people



 Deaar Kenny,
   could you solve the problem. If yes, please tell me how!
   Peter
 
  Ok, thanks
  i try to add this into server.xml
  
  is it add between
  ContextManager
  /ContextManager
  ?
  
  
  
   Dear Kenny,
   
   Check if reloadable is true for ur application in Server.xml file.
   
   Context path=/examples docBase=webapps/examples debug=0
   reloadable=true 
   /Context
   
   cheers
   asheesh
   
   - Original Message -
   From: Kenny Ma [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Friday, September 14, 2001 9:38 AM
   Subject: Help ~ Tomcat cache problem
   
Hi,
I am using Tomcat + Apache
   
Why I always need to restart tomcat to get my latest result after I
  make
change of my Servlet program ? Is it tomcat cache the program ? If so,
  how
can I turn the cache off ?
   
It never happened when i use Jserv+Apache before. Thanks
   
   
/* Kenny Ma
   [EMAIL PROTECTED] */
   
  
  
  
  
  
  /* Kenny Ma
 [EMAIL PROTECTED] */





/* Kenny Ma
   [EMAIL PROTECTED] */




Help ~ Tomcat cache problem

2001-09-13 Thread Kenny Ma

Hi,
I am using Tomcat + Apache

Why I always need to restart tomcat to get my latest result after I make 
change of my Servlet program ? Is it tomcat cache the program ? If so, how 
can I turn the cache off ?

It never happened when i use Jserv+Apache before. Thanks


/* Kenny Ma
   [EMAIL PROTECTED] */




Re: Help ~ Tomcat cache problem

2001-09-13 Thread Kenny Ma

Ok, thanks
i try to add this into server.xml

is it add between
ContextManager
/ContextManager
?



 Dear Kenny,
 
 Check if reloadable is true for ur application in Server.xml file.
 
 Context path=/examples docBase=webapps/examples debug=0
 reloadable=true 
 /Context
 
 cheers
 asheesh
 
 - Original Message -
 From: Kenny Ma [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, September 14, 2001 9:38 AM
 Subject: Help ~ Tomcat cache problem
 
  Hi,
  I am using Tomcat + Apache
 
  Why I always need to restart tomcat to get my latest result after I make
  change of my Servlet program ? Is it tomcat cache the program ? If so, how
  can I turn the cache off ?
 
  It never happened when i use Jserv+Apache before. Thanks
 
 
  /* Kenny Ma
 [EMAIL PROTECTED] */
 





/* Kenny Ma
   [EMAIL PROTECTED] */




Re: System.err.println

2001-09-13 Thread Kenny Ma

because:

Hello.java:27: cannot resolve symbol
symbol  : variable servlet
location: class Hello
servlet.log(Hello);
^



 On Thu, 13 Sep 2001, Abhijat Thakur wrote:
 
  I have gone through the archives and have looked at the original responses
  and tried it but my System.err.println does not go to /logs/tomcat.log. I 
am
  using log4j for logging but at some place have to put System.err.println
  statements which i want should be printed to tomcat logs.
 
 why not use servlet.log() if you want that functionality?  afaik routing
 System.err.println is not covered by the spec (but I may be wrong), and so
 you will be relying on specific container bahaviour.
 
 alternatively on unix you could just redirect stderr to whichever file you
 wanted.
 
 hth,
 cheesr
 dim
 
  
  I have made modifications to server.xml and it has
  
  Logger name=tc_log
  verbosityLevel = INFORMATION
   path=logs/tomcat.log
  /
  
  Logger name=servlet_log
  path=logs/servlet.log
  verbosityLevel = DEBUG
  /
  
  Logger name=JASPER_LOG
  path=logs/jasper.log
  verbosityLevel = INFORMATION /
  
  The three are files are made under logs but my System.err.println messages
  dont go there. Please advise.
  
  Thanks a lot.
  
  
  Abhijat Thakur
  
  bDNA Corporation
  
 





/* Kenny Ma
   [EMAIL PROTECTED] */




Re: System.err.println

2001-09-13 Thread Kenny Ma

I got it, thanks


 alright.  Assuming that Hello is a servlet (extends HttpServlet) then you
 dont need the servlet.
 
 eg:
 
   public void doGet( ... )
   {
 log(hello);
 ...
 
   }
 
 cheers
 dim
 
 On Fri, 14 Sep 2001, Kenny Ma wrote:
 
  because:
  
  Hello.java:27: cannot resolve symbol
  symbol  : variable servlet
  location: class Hello
  servlet.log(Hello);
  ^
  
  
  
   On Thu, 13 Sep 2001, Abhijat Thakur wrote:
   
I have gone through the archives and have looked at the original 
responses
and tried it but my System.err.println does not go 
to /logs/tomcat.log. I 
  am
using log4j for logging but at some place have to put 
System.err.println
statements which i want should be printed to tomcat logs.
   
   why not use servlet.log() if you want that functionality?  afaik routing
   System.err.println is not covered by the spec (but I may be wrong), and 
so
   you will be relying on specific container bahaviour.
   
   alternatively on unix you could just redirect stderr to whichever file 
you
   wanted.
   
   hth,
   cheesr
   dim
   

I have made modifications to server.xml and it has

Logger name=tc_log
verbosityLevel = INFORMATION
 path=logs/tomcat.log
/

Logger name=servlet_log
path=logs/servlet.log
verbosityLevel = DEBUG
/

Logger name=JASPER_LOG
path=logs/jasper.log
verbosityLevel = INFORMATION /

The three are files are made under logs but my System.err.println 
messages
dont go there. Please advise.

Thanks a lot.


Abhijat Thakur

bDNA Corporation

   
  
  
  
  
  
  /* Kenny Ma
 [EMAIL PROTECTED] */
  
 





/* Kenny Ma
   [EMAIL PROTECTED] */




Log problem

2001-08-20 Thread Kenny Ma

if i use log(testing) in Servlet using Tomcat
where will this log going to ?

How can I log somthing to a file from Servlet ?
I use System.err.println(Testing) when I am using Jserv before

But i cant now when using Tomcat 3.2.2

Can anyone help me ?
It's very troblem when debuging servlet program if i cant print log to file

Thanks


/* Kenny Ma
   [EMAIL PROTECTED] */




Error-Log file ?

2001-08-19 Thread Kenny Ma

I am using Tomcat 3.2.3/Redhat 7.1

I have a servlet program, the program line 1 is System.err.println(TEST)

when i run the servlet, the output goes into console

I want the err.println output to a file , what can I do ?
or how to config Tomcat ?

ps. I checked /usr/local/tomcat/logs/
It havent output to those files.

/* Kenny Ma
   [EMAIL PROTECTED] */