?
Solved

Unable to find text in System.out.println("comments")  in console of Tomcat

Posted on 2009-05-12
12
Medium Priority
?
416 Views
Last Modified: 2013-12-02
I have deployed a sample application in Tomcat. When I put 'System.out.println("Some text");' in the Servlet in my application , it is no where displaying . How to find out my print statements?
0
Comment
Question by:VamsiRaju
[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
  • 6
  • 5
12 Comments
 
LVL 12

Expert Comment

by:Gibu George
ID: 24362925
Hello VamsiRaju,

You can find it in the log file in the logs folder

Regards,

gibu_george
0
 
LVL 92

Expert Comment

by:objects
ID: 24362970
by default

/logs/catalina.out

0
 

Author Comment

by:VamsiRaju
ID: 24363435
In that I don't find any of my statements in the logs. I have deleated the logs folder and tried again.. But logs folder has not got created under <Catalina Home>
0
Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

 
LVL 12

Expert Comment

by:Gibu George
ID: 24363516
Did you restart tomcat after deleting the logs folder?
0
 
LVL 12

Expert Comment

by:Gibu George
ID: 24363538
How are you starting the tomcat? and which version are you using?
0
 

Author Comment

by:VamsiRaju
ID: 24363556
Yes. I have restarted the Tomcat from my Eclipse. The version I am using is apache-tomcat-6.0.18
0
 
LVL 12

Expert Comment

by:Gibu George
ID: 24363679
If you have started from eclipse you have to edit the launch configuration and configure the inputout to a file to get it otherwise it just writes to the console
0
 

Author Comment

by:VamsiRaju
ID: 24363682
Even it is not writing to the console !!
0
 
LVL 12

Expert Comment

by:Gibu George
ID: 24363713
See the image below
eclipse.bmp
0
 

Author Comment

by:VamsiRaju
ID: 24364418
Could you give me steps to go to that window?
0
 
LVL 12

Accepted Solution

by:
Gibu George earned 2000 total points
ID: 24364517
Go to  Window-->show view --> other --> Servers
Then double click on the Apache Tomcat Server which you have configured. In the general information area of the configuration there is a link to Open launch configuration
0
 

Author Closing Comment

by:VamsiRaju
ID: 31580470
Thank you. In that configurations screen Under server locations I have selected "Use Tomcat Installation" and provided the deploy path and set path for log files as you suggested. Now everything OK. Thank you.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Most of the developers using Tomcat find it easy to configure the datasource in Server.xml and use the JNDI name in the code to get the connection.  So the default connection pool using DBCP (or any other framework) is made available and the life go…
There are numerous questions about how to setup an IBM HTTP Server to be administered from WebSphere Application Server administrative console. I do hope this article will wrap things up and become a reference for this task. You need three things…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month10 days, 15 hours left to enroll

770 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