Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java Open Source > Apache Tomcat
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old September 26th, 2005, 01:39 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
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.


Reply With Quote
  #2 (permalink)  
Old September 26th, 2005, 01:45 AM
Authorized User
 
Join Date: Aug 2005
Location: , , .
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());



Reply With Quote
  #3 (permalink)  
Old September 26th, 2005, 02:19 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
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

Reply With Quote
  #4 (permalink)  
Old September 27th, 2005, 09:01 AM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
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.




Reply With Quote
  #5 (permalink)  
Old September 28th, 2005, 12:27 AM
Authorized User
 
Join Date: Dec 2004
Location: , , .
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

Reply With Quote
  #6 (permalink)  
Old October 6th, 2005, 07:59 AM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
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.

Reply With Quote
  #7 (permalink)  
Old October 10th, 2005, 09:21 AM
Authorized User
 
Join Date: Apr 2005
Location: , , India.
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.

Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 06:42 AM.


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