Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 424
  • Last Modified:

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

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
VamsiRaju
Asked:
VamsiRaju
  • 6
  • 5
1 Solution
 
Gibu GeorgeChief Technology OfficerCommented:
Hello VamsiRaju,

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

Regards,

gibu_george
0
 
objectsCommented:
by default

/logs/catalina.out

0
 
VamsiRajuAuthor Commented:
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
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

 
Gibu GeorgeChief Technology OfficerCommented:
Did you restart tomcat after deleting the logs folder?
0
 
Gibu GeorgeChief Technology OfficerCommented:
How are you starting the tomcat? and which version are you using?
0
 
VamsiRajuAuthor Commented:
Yes. I have restarted the Tomcat from my Eclipse. The version I am using is apache-tomcat-6.0.18
0
 
Gibu GeorgeChief Technology OfficerCommented:
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
 
VamsiRajuAuthor Commented:
Even it is not writing to the console !!
0
 
Gibu GeorgeChief Technology OfficerCommented:
See the image below
eclipse.bmp
0
 
VamsiRajuAuthor Commented:
Could you give me steps to go to that window?
0
 
Gibu GeorgeChief Technology OfficerCommented:
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
 
VamsiRajuAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now