*
The moose likes Tomcat and the fly likes How to generate catalina.out logger of tomcat server on windows Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to generate catalina.out logger of tomcat server on windows" Watch "How to generate catalina.out logger of tomcat server on windows" New topic
Author

How to generate catalina.out logger of tomcat server on windows

Bakul Ghude
Greenhorn

Joined: Nov 28, 2006
Posts: 7
Hello
I am trying to generate logger which is displaying on tomcat window on the window OP ?
How can i do that ?

Please help me ?
and thanks in advance .
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

The simplest way is to install Tomcat with the ".exe" version of the installer.

When installed and run as either a Windows Service or from the Windows start menu, the output goes to a log file under tomcat/logs (like catalina.out).


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Bakul Ghude
Greenhorn

Joined: Nov 28, 2006
Posts: 7
but I want to start it by using command prompt .
By using the command "startup"

One way to write the log in log folder is
Within startup.bat you'll notice the following line:

call "%EXECUTABLE%" start %CMD_LINE_ARGS%

Change this line to

call "%EXECUTABLE%" run %CMD_LINE_ARGS% >>
"%CATALINA_HOME%"/logs/Startup_err.log 2>&1

but due to this I am able to shut down the tomact server by using command "shutdown"

Please help me out
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Originally posted by Bakul Ghude:

but due to this I am able to shut down the tomact server by using command "shutdown"


Did you mean that you're NOT able to stop Tomcat with the shutdown command?
If so, why not?
What's happening when you try?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to generate catalina.out logger of tomcat server on windows