?
Solved

Tomcat 4.1.24 configuration on windows

Posted on 2003-03-31
11
Medium Priority
?
243 Views
Last Modified: 2010-04-01
I installed Tomcat4.1.24 on windows, how can I configure my tomcat so my Java application debug information will be stored in a log file? e.g. all messages outputed from "System.out" or "System.err" will be stored.

Thanks in advance.
0
Comment
Question by:victorli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +4
11 Comments
 
LVL 4

Expert Comment

by:thanassis
ID: 8243865
Tomcat puts its log files in the directory tomcat/logs. Servlet invocations are stored in servlet.log and JSP pages are logged in jasper.log. These files can be very helpful when debugging your applications.
0
 

Expert Comment

by:zerg2000
ID: 8244164
Hi thanassis,

Could you please tell us how to configure the Tomcat such that output from System.out.println() in application classes will redirect to the log file instead of command console (defaut)?

Thanks
0
 
LVL 4

Expert Comment

by:thanassis
ID: 8244254
Hi zerg2000,

Do you know about "catalina.out" file?
This is where you have to look for applicaiton logs.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 19

Expert Comment

by:cheekycj
ID: 8245781
Unless tomcat does it differently but servlet engines usually automatically redirect System.out to their stdout.log file or in this case it seems to be the catalina.out file.

CJ
0
 
LVL 1

Author Comment

by:victorli
ID: 8248721
Hi all, thanks for your reply.

Usually I did development using Tomcat running on Linux and I have no problem with that, from Tomcat 4.0.1 to Tomcat 4.1.24, the application debuging information will go to "catalina.out" which is located in "../logs".

BUT, in Windows version of Tomcat 4.1.24, the "catalina.out" does not exist!!!

>Servlet invocations are stored in servlet.log and JSP pages are logged in jasper.log.
I suppose this is from the documentation but I can not find where the "server.log" and "jasper.log" is.

Maybe we need to configure the "server.xml" e.g. put "org.apache.catalina.logger.SystemOutLogger" to somewhere , but not sure.
0
 
LVL 1

Author Comment

by:victorli
ID: 8248777
When starting Tomcat in Windows, a console window will pop up and the information displayed in this window looks like exactly the same as the "catalina.out" in Linux. But after you shutdown then restart the Tomcat, the previous message was gone. It is not persistent and I can not find which file this informat stored or only stored in memory?
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 8248952
if you run tomcat as a service it will put stdout in a log (I think tomcat.log)

or try this:
/some/dir/tomcat/bin/startup.sh 2>errfile >outputfile

Where
errfile = path and filename of error file
outputfile = path and filename of standard output file

read the last thing on deja.

CJ
0
 
LVL 1

Author Comment

by:victorli
ID: 8249546
Hi CJ, thanks for your help.

But I can't find "tomcat.log" either.

Can "startup.sh" run under Windows? I suppose it is for running on Linux/UNix.

Help please.
0
 
LVL 14

Expert Comment

by:kennethxu
ID: 8322198
not tried myself, but I know new version of tomcat use jakarta common log. you need to check out the common log documentation in order to change tomcat logging behavior.
0
 
LVL 35

Expert Comment

by:girionis
ID: 10078546
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

- To be PAQed and points NOT refunded.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

girionis
EE Cleanup Volunteer
0
 
LVL 1

Accepted Solution

by:
GhostMod earned 0 total points
ID: 10130754
PAQed, with points refunded (75)

GhostMod
Community Support Moderator
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Summer 2017 Scholarship Winners have been announced!
This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question