From: <php...@li...> - 2007-05-12 21:48:37
|
Jost, On the linux platform, I need to start the standalone client twice to change java status. The first time, I started it. java -Djava.library.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-2005= 0 922 -Djava.class.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-200509= 2 2/JavaBridge.jar -Djava.awt.headless=3Dtrue -Dphp.java.bridge.base=3D/usr/local/lib/php/extensions/no-debug-non-zts-2= 0 050922 php.java.bridge.Standalone LOCAL:@java-bridge-50ab 5 /usr/local/log/bridge.log @@java-bridge-50ab JavaBridge log: /usr/local/log/bridge.log I checked the java status, it was 'not running' I then, start standalone client the second time,=20 java -Djava.library.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-2005= 0 922 -Djava.class.path=3D/usr/local/lib/php/extensions/no-debug-non-zts-200509= 2 2/JavaBridge.jar -Djava.awt.headless=3Dtrue -Dphp.java.bridge.base=3D/usr/local/lib/php/extensions/no-debug-non-zts-2= 0 050922 php.java.bridge.Standalone LOCAL:@java-bridge-50ab 5 /usr/local/log/bridge.log system error: could not bind socket: Address already in use @9267 JavaBridge log: /usr/local/log/bridge.log=20 On the second time, although I got system error: Address already in use, the java status changed to 'running' Ps -ef | grep java --> I saw two identical standalone clients were running. Also, I deployed my app jars under /usr/local/lib/php/extensions/no-debug-non-zts-20050922/ and also log4j.properties under the same directory. In my app jars, I had codes logging and tracing data, but I could not find these logging data. Could you let me know how to I log data to the file bridge.log. Best regards, Joe |