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
Solved

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

Posted on 2009-05-12
12
412 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
  • 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
The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

 
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 500 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 120
table example 4 32
ejb mdb examples 1 8
running on tomcat not jboss eap 7.0 3 18
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…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

840 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