From: Paul S. <po...@ma...> - 2005-07-07 23:26:00
|
Jost, > Hi, > > > was able > > to compile version 2.0.7pre2 against Apples Java 1.5.0_02-36 on > Tiger > > that's great! The C code will not be changed any further, so I > expect that the future versions of the bridge will continue to run, > even though we don't have the chance to test on MacOS X. > > > > I did not succeed at getting it running using the (named?) sockets > > OSX should have "unix domain sockets" too, but I guess the problem > is JNI related. Apple has changed JNI in an incompatible way; there > was a discussion on the gnu java mailing list about this issue. No surprise there, they have their own ways of doing things ;-) > > If you compile with > > make "CFLAG=-DCFG_JAVA_SOCKET_INET" did a make clean, then that and a make install > > the bridge will use TCP sockets instead even if the configure > script reports that "unix domain sockets" are available. This flag > is necessary on BSD, too, as BSD usually runs the linux JDK which > cannot load the natcJavaBridge.so files that BSD creates. > > One problem with TCP sockets is that most java implementations > create a socket which binds itself to *all* available network > interfaces. This might become a security issue if the backend > runs on the web-server. > Agreed, its on internal network so if I'm feeling paranoid I can firewall it I suppose. > > We should change this, a LOCAL: backend should bind itself to the > local interface only. > PHP reported the following (I'm using /tmp to get over permissions) :- /usr/local/lib/php/extensions/no-debug-non-zts-20041030/ RunJavaBridge /System/Library/Frameworks/JavaVM.framework/Home//bin/ java -Djava.library.path=/usr/local/lib/php/extensions/no-debug-non- zts-20041030 -Djava.class.path=/usr/local/lib/php/extensions/no-debug- non-zts-20041030/JavaBridge.jar -Djava.awt.headless=true php.java.bridge.JavaBridge LOCAL:/tmp/.php-java-bridge_socket 3 /tmp/ php-java-bridge.log But the log file says :- Jul 08 09:16:04 JavaBridge INFO : Local sockets not available:java.lang.UnsatisfiedLinkError: startNative. Try TCP sockets instead java.lang.Exception: Could not create socket: LOCAL:/tmp/.php-java- bridge_socket at php.java.bridge.JavaBridge.init(JavaBridge.java:266) at php.java.bridge.JavaBridge.main(JavaBridge.java:313) > > > Regards, > Jost Boekemeier > > > Gesendet von Yahoo! Mail - Jetzt mit 1GB kostenlosem Speicher CHEERS Paul |