• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server Output log to Eclipse

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey Guys-

I have a project running on a Sun Application Server 9.1 (GlassFish) that I would like to see the output of in Eclipse while I run my code. (ie System.outs called by bean classes and whatnot).

It comes up sometimes in the console log view, but other times it doesn't. Does anybody have any ideas how to make this appear?

Thanks,

Sam
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
System.out is a problem this way. You're actually better off using a logging facility.
 
Sam Gardner
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If anyone was wondering, I figured out how to do this.

Under the console tab in Eclipse Europa (the version I'm using, not sure about earlier editions) there is a button at the top right that's labeled "Display selected console" the second option when the server is running is the server's output log.

It saved me a lot of hassle having to go into the server admin page, hope it helps anyone else who was wondering how to do this.
reply
    Bookmark Topic Watch Topic
  • New Topic