Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
|
Apache Tomcat General discussion of the Apache Tomcat servlet container. For discussions specific to the Professional Apache Tomcat book, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Apache Tomcat section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2005, 01:39 AM
Authorized User
 
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to inderjeet_79
Default How to get System.out.println on console in Tomcat

Hi All

I have built a small web application with Tomcat. But what ever "System.out.println" i am giving in the source, it is not coming on the console. I have checked in the logs folder, it is not coming there also.

Could someone please help me in getting the System.out.println statements on console???

Thanks & Regards
Inder Jeet Singh.


 
Old September 26th, 2005, 01:45 AM
Authorized User
 
Join Date: Aug 2005
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi you can use system oot.println for tracking

and this is the syntax:

System.out.println("THIRD LIST SIZE IS "+pdfTotalDataList.size());



 
Old September 26th, 2005, 02:19 AM
Authorized User
 
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to inderjeet_79
Default

Hi

I ahve already done the same thing but i am not getting the output either on cosole or in the log file of tomcat.

Inder Jeet Singh

 
Old September 27th, 2005, 09:01 AM
Authorized User
 
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

There is one entry in the xml file of context named "Consume Output".

Set this to false and this should do the trick.

Note: I am not sure about the option. It is named something like Output. Have a look at all the entries in the xml file of the context.

Regards,
eNJay.




 
Old September 28th, 2005, 12:27 AM
Authorized User
 
Join Date: Dec 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to inderjeet_79
Default

Hi Enjay
I could not find out in which XML i need to make the changes........Can you please specify the name of the XMl also???

Thanks & Regards
Inder Jeet Singh

 
Old October 6th, 2005, 07:59 AM
Authorized User
 
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In Conf folder of Tomcat installation directory, there is one folder called catlina. In this folder there are xml files corresponding to each application deployed on the server. In case your application is named 'test', there will be one file called test.xml. This is the application context file. Open this and you should find one element called "Consume Output", set this to false.

I am referring to the folder structure in Tomcat 5.X. In case you are working on some other version, get back with the version. I will be delighted to tell you the place of Application context folder.

Cheers,
eNJay.

 
Old October 10th, 2005, 09:21 AM
Authorized User
 
Join Date: Apr 2005
Posts: 71
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, that was supposed to be in this folder structure.

Conf-->Catalina-->local host--> your context file (example if test is your context, it is text.xml).


Cheers,
eNJay.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open Tomcat console on IE lakshmip Apache Tomcat 0 December 4th, 2007 01:18 AM
Console application but no Console gamotter C# 2 August 22nd, 2007 11:41 PM
Insert System date and System Time -Form _TextBox cnkumar74 VB How-To 14 February 14th, 2007 10:52 AM
JWS Axis Tomcat (posted to Apache Tomcat too) rushman Servlets 0 April 15th, 2005 09:32 AM
Tomcat Console window varun_java Apache Tomcat 3 April 8th, 2005 09:11 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.