• 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

How To see my System.out

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All
I have installed iPlanet webserver version 6 and I am having hard time seeing my System.out statements that I have in my JSP pages or Servlets. There doesn't seems to be a log file that I can access to see the standard out for my System.out statements.
Any help is much appreciated.
Thanks
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you installed on Windows OS (NT) you need to change a setting in services:
Control Panel
Services
Stop iPlanet Application Server
Double Click iPlanet Application Server
check Allow Service to Interact with Desktop
OK, Start iPlanet Application Server
You should get three command prompt windows to pop up including KJS.exe - Java Server. This is where your sysouts will show up.
Good Luck
 
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you are using solaris your logs will go into kjs_X_CCSO. Where X is the kjs engine ID if you are running only one kjs then it is kjs_1_CCSO
--sridhar
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear alls,
I want to enquire that whether it is possible to log the System.out to a predefined file in Solaris OS. Thanks.
Rgds,
Steve
 
sridhar satuloori
Ranch Hand
Posts: 144
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think you can do it by setting the System.setOut() to a different file. (System.setOut Reassigns the "standard" output stream.) Its just a guess i never tried it.
-Sridhar
 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys
I think Maitham's question is on iWS and NOT on iAS(Maitham are you still listening?)
You can very well write all your sys prints to a file and save them to debug at a later time.
PL refer to
this question
to set sys prints on iWS.
In case of iAS,the kjs logs prints all of'em on the window and its your wish to rotate them via a simple script when the server gets bounced. OR you may still follow the above procedure....only that you will increase I/O operations which are expensive.
 
Maitham Habib
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
raj, yes i am still listening,
and yes i meant iWS 6 under windows NT4.0.
Now the good news is that i was able to specify the log to which all my system.out and system.err will go to. this is done by adding the following line to the magnus.conf file under the config directory under your virtual server directory in iPlanet:
Init fn="nt-console-init" stderr="C:/iPlanet/Servers/https-myserver.co.nz/logs/console" stdout="C:/iPlanet/Servers/https-myserver.co.nz/logs/console" EarlyInit="yes"
make sure you replace https-myserver.co.nz with your won virtual server name.
this will tell iPlanet WS to log the system.out to a file called console and the system.err to a file called console (you can choose different names if you want), the location of the two files is ofcourse specified by this part in the above line C:/iPlanet/Servers/https-myserver.co.nz/logs/console
I hope this will be useful for anyone having problem seeing the system.out and system.err in iPlanet WS 6.0 on windows NT.
Thanks
 
steveque
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm facing the same question.
Raj, sorry I can't go to the hyperlink provided by you.
Maitham, can I apply your solution on Solaris platform? Is there any difference in setting?
Thanks.
Steve
 
Just let me do the talking. Ahem ... so ... you see ... we have this tiny ad...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic