Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Eclipse and the console

 
Arvind Mahendra
Ranch Hand
Posts: 1162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need your help. I was using tomcat 4 and notepad earlier to make my servlets and JSPs. I used to add some S.O.P statements and be able to see them on the dos prmpt which was of great help to me. But now I am using myeclipse and Tomcat 5. when I start tomcat from within eclipse i can see the server starting up on the console within eclipse but it doesn't output any of my S.O.P messages on the console when I'm navigating around my app. Whats goin on?
[ August 03, 2007: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bikash Jha, welcome to the Ranch.

We've put together some guidelines for making best use of JavaRanch as a resource. You can find then by clicking on the "Smart Questions" link in my sig.

One of these tips is to take the time to compose descriptive subjects for your posts; read this for more information.

I have adjusted the subject of this post for you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65111
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a forum just for dealing with IDE issues. I've moved this post there for you.
 
Scott Anderson III
MyEclipse Support
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Bikash Jha:
I need your help. I was using tomcat 4 and notepad earlier to make my servlets and JSPs. I used to add some S.O.P statements and be able to see them on the dos prmpt which was of great help to me. But now I am using myeclipse and Tomcat 5. when I start tomcat from within eclipse i can see the server starting up on the console within eclipse but it doesn't output any of my S.O.P messages on the console when I'm navigating around my app. Whats goin on?

[ August 03, 2007: Message edited by: Bear Bibeault ]


Bikash,

The issue you're seeing with messages to standard output is that Tomcat 5's logging configuration is simply different and more sophisticated than Tomcat 4. As a result, it has different defaults that cause different behavior. It's not really related to the switch to MyEclipse. However, since you are using MyEclipse, you can now use our full end to end debugging capbility for both JSP pages and Java code to simply set breakpoints, inspect variables, modify your code, etc while your application is running. Please have a look at the MyEclipse Feature Overview presentation, particularly the J2EE Development section to see how this is done. I think you'll find it much easier than debugging by print statements. :-)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic