View Single Post
  #2 (permalink)  
Old 04-10-2008
benoit's Avatar
benoit benoit is offline
ZeroC Staff
 
Name: Benoit Foucher
Organization: ZeroC, Inc.
Project: Ice
 
Join Date: Feb 2003
Location: Rennes, France
Posts: 1,474
Hi,

IceGrid uses the Ice.StdErr and Ice.StdOut properties to redirect the server output. The standard error/output is redirected by the server Ice communicator when it's initialized (with the java.lang.System.setOut/setErr methods). I suspect your prolog JNI library continues to log to the old stdout/stderr instead of using the new standard output/error.

One solution to get this working would be the write a small wrapper to redirect stderr/stdout and then spawn the Java process. IceGrid would use this wrapper instead of directly using the java executable.

Cheers,
Benoit.
Reply With Quote