You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(6) |
Oct
(6) |
Nov
(8) |
Dec
(2) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(19) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(7) |
Jun
(9) |
Jul
(13) |
Aug
(31) |
Sep
(111) |
Oct
(52) |
Nov
(72) |
Dec
(42) |
2006 |
Jan
(21) |
Feb
(32) |
Mar
(33) |
Apr
(24) |
May
(15) |
Jun
(40) |
Jul
(32) |
Aug
(19) |
Sep
(38) |
Oct
(37) |
Nov
(63) |
Dec
(37) |
2007 |
Jan
(18) |
Feb
(39) |
Mar
(69) |
Apr
(49) |
May
(71) |
Jun
(59) |
Jul
(71) |
Aug
(85) |
Sep
(46) |
Oct
(14) |
Nov
(25) |
Dec
(56) |
2008 |
Jan
(24) |
Feb
(77) |
Mar
(104) |
Apr
(44) |
May
(41) |
Jun
(11) |
Jul
(31) |
Aug
(59) |
Sep
(44) |
Oct
(86) |
Nov
(66) |
Dec
(93) |
2009 |
Jan
(88) |
Feb
(41) |
Mar
(49) |
Apr
(135) |
May
(22) |
Jun
(31) |
Jul
(60) |
Aug
(71) |
Sep
(76) |
Oct
(18) |
Nov
(52) |
Dec
(20) |
2010 |
Jan
(8) |
Feb
(50) |
Mar
(35) |
Apr
(48) |
May
(46) |
Jun
(84) |
Jul
(38) |
Aug
(61) |
Sep
(51) |
Oct
(31) |
Nov
(17) |
Dec
(18) |
2011 |
Jan
(51) |
Feb
(14) |
Mar
(17) |
Apr
(23) |
May
(15) |
Jun
(11) |
Jul
(5) |
Aug
(5) |
Sep
(15) |
Oct
(8) |
Nov
(5) |
Dec
(25) |
2012 |
Jan
(2) |
Feb
(4) |
Mar
(6) |
Apr
(9) |
May
(27) |
Jun
(32) |
Jul
(36) |
Aug
(10) |
Sep
(16) |
Oct
(3) |
Nov
(13) |
Dec
(7) |
2013 |
Jan
(1) |
Feb
(4) |
Mar
|
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
(2) |
Nov
(1) |
Dec
|
2014 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
(2) |
Jun
(9) |
Jul
(5) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(3) |
Feb
(2) |
Mar
(4) |
Apr
(3) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(2) |
Sep
(5) |
Oct
(1) |
Nov
|
Dec
|
2016 |
Jan
|
Feb
(5) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(5) |
Sep
(3) |
Oct
|
Nov
|
Dec
|
2017 |
Jan
(6) |
Feb
|
Mar
|
Apr
(10) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
(1) |
Dec
|
2018 |
Jan
(2) |
Feb
(5) |
Mar
|
Apr
|
May
(1) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2021 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2023 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
1
|
2
(1) |
3
(1) |
4
(4) |
5
(3) |
6
(5) |
7
(2) |
8
(1) |
9
(3) |
10
(2) |
11
(1) |
12
(5) |
13
(2) |
14
(1) |
15
|
16
|
17
|
18
|
19
|
20
(1) |
21
|
22
|
23
|
24
|
25
|
26
|
27
(4) |
28
(1) |
29
(1) |
30
(2) |
|
From: <php...@li...> - 2006-06-30 18:05:42
|
Hi Jost, Sorry I haven't been able to look at this for a while... SourceForge.net wrote: > does version 3.1.0 fix this problem? If so, I'll provide a > patch for 3.0.8. > I see the latest version is 3.1.3 - do you want me to verify against that one? Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-30 17:32:53
|
Hi, > keeping my .jars). The jars are being found okay, > but the .properties files are not. I think it should be possible to add /usr/share/java/ and extension_dir/lib/ to java_ext_dirs, so that the static loader can load .class files and other resources from those directories. In the meantime just jar them or use the dynamic loader. Add: java_require("path/to/resource_dir/") at the beginning of your scripts. Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-29 22:17:06
|
Is there any support to allow a Java class that is being used by the php-java-bridge to use a .properties file? I have many that I put into my /etc/share/java/ directory (which is where I'm keeping my .jars). The jars are being found okay, but the .properties files are not. Any idea of how to fix this? Thanks. --------------------------------- The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. |
From: <php...@li...> - 2006-06-28 18:16:10
|
Hi, > Stand-Alone - the architecture is as follows > > Browser - Apache - CGI - PHP - PHP/JAVA-Bridge - > sun-jre binary In this case the bridge doesn't create any cookies. PHP must do that: session_start(); if(is_null($_SESSION["var"])) $_SESSION["var"]=new Java("java.lang.StringBuffer"); $val=$_SESSION["var"]; ...your script... session_write_close(); should work. But this way you cannot share the php session with java servlets or JSP, of course. BTW: Why CGI within Apache? Isn't the Apache SAPI good enough? -- Privilege dropping isn't as effective as strong security contexts, but I don't know if Gentoo supports Security Enhanced Linux contexts. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-06-27 23:27:07
|
Hi Jost thx for the very long response - I think you missunderstood some details (I didnt provide so much detaisl that I was not aware off....) > probably because the browser does not accept the > cookie for some reason. PHP scripts usually send a No Cookie is sent at all....so I guess this is the main problem. > When running the back-end within a servlet engine or > AS , the servlet engine or AS generates page I run no servlet engine but the sun-jre directly >> with SUPHP > What is SUPHP? A SuEXEC wrapper designed for php - www.suphp.org - in fact its a small extension that changes the user and than forks off a shell running the php script - but it doesnt matter as the problem persists without suphp when using php-cgi >> Problem: I tried the example script for session >> usage withput success. > > What happens when you click on the sessionSharing.jsp > link at the bottom of the page does that increase the > value? And what are the properties of the generated > cookie, what's the PATH value for example? as written above - nothing happens, always get "new session, var:2", I dont receive a cookie...(its not a browser denial, I sniffed the traffic and no cookie headers are sent - cookies work with php session, so that seems to be ok) > I am not sure what you mean with "named sessions", but > java_session() at the beginning of the script is all > you need. java_session("mySession") - iiuc the given string is a kind of token to identify the session. > You've mentioned that session sharing works when > running in apache. Do you use the servlet back-end or > the standalone back-end? The standalone back-end uses > the PATH value /, so I guess the PATH value is the > problem. Stand-Alone - the architecture is as follows Browser - Apache - CGI - PHP - PHP/JAVA-Bridge - sun-jre binary > Can you please open a ticket (please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) > and set the java.log_level to 5 and attach the > generated log and the value of the generated cookie > (PATH, etc.) there? Will do so tomorrow... > If you run a FastCGI server please also generate a > trace: no I dont regards Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-27 19:12:41
|
Hi, > I am unable to use "java_session" in my PHP scripts > and dont have any clues why... probably because the browser does not accept the cookie for some reason. PHP scripts usually send a PATH value / but tomcat creates a PATH value /webapp. If the webapp is JavaBridge, tomcat creates a /JavaBridge cookie, so that sessions from the JavaBridge webapp do not interfere with sessions from myBridge for example. When running the back-end within a servlet engine or AS , the servlet engine or AS generates page templates for PHP, PHP fills in the PHP-based content and returns the result to the browser. The "CGI subcomponent within a servlet engine or AS" is only special case of the above: the servlet forks off a PHP FastCGI server when it starts and passes control to the PHP server which in turn passes control over to the servlet engine. The servlet engine then returns the page template to PHP, PHP passes the page back to the servlet which finally passes the page to the browser. > with SUPHP What is SUPHP? > Problem: I tried the example script for session > usage withput success. What happens when you click on the sessionSharing.jsp link at the bottom of the page does that increase the value? And what are the properties of the generated cookie, what's the PATH value for example? > new timestamps everytime). I tried named sessions and > unnamed sessions, > added php session_start() but nothing works..... I am not sure what you mean with "named sessions", but java_session() at the beginning of the script is all you need. The session_start(); $_SESSION is only syntactic sugar which uses java_session() internally. You've mentioned that session sharing works when running in apache. Do you use the servlet back-end or the standalone back-end? The standalone back-end uses the PATH value /, so I guess the PATH value is the problem. However, there is no technical difference between the CGI component running within a servlet engine or AS, a FastCGI component associated with a servlet engine or AS or a Apache/IIS front-end associated with a servlet engine or AS. They all rely on the servlet/AS back-end to generate the page template and then pass it and the added PHP content to the client. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and set the java.log_level to 5 and attach the generated log and the value of the generated cookie (PATH, etc.) there? If you run a FastCGI server please also generate a trace: export X_JAVABRIDGE_OVERRIDE_HOSTS=/ strace -s1024 php-cgi -b127.0.0.1:9667 2>protocol.log Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-27 11:24:47
|
Hi Folks, I played around a bit - I get it working with PHP as Module... So - are they any known issues, configuration hints, etc for installing the java-bridge with a CGI-driven PHP ? TIA Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-27 10:15:16
|
Hi Folks, I am unable to use "java_session" in my PHP scripts and dont have any clues why... Setup: Apache 2.0 with PHP 5.1.2-pl1-gentoo, running with SUPHP via cgi, Sun JRE 1.5 and Java-Bridge 3.1.2 (tried 2.0.8 also) Problem: I tried the example script for session usage withput success. Everytime I hit reload, a new session is created (getCreationTime shows new timestamps everytime). I tried named sessions and unnamed sessions, added php session_start() but nothing works..... Any hints ?? Oliver -- Diese Nachricht wurde digital unterschrieben oliwel's public key: http://www.oliwel.de/oliwel.crt Basiszertifikat: http://www.ldv.ei.tum.de/page72 |
From: <php...@li...> - 2006-06-20 18:23:29
|
Hi, while bootstrapping the autoconf files (in server/configure.gnu.in), the configure script already creates a symlink from the system libtool into the current working directory. So I think all we need to do is to check if glibtool is available, check if it is indeed GNU libtool and then symlink glibtool into the current working directory. Something like this: { { libtool=glibtool; glibtool --version } || { libtool=libtool; libtool --version } } && { ln -s `which $libtool` libtool; ${libtool}ize -f } The above change assumes that the Mac version of "libtoolize" is called "glibtoolize", I don't know if it exists. > 1. libtool vs. glibtool > > The bridge requires GNU libtool version 1.4.3 or > higher, which exists on > MacOS 10.4.6 as glibtool. There is ANOTHER utility > called libtool on the > Mac, which is NOT the right tool. > > To solve this issue, make glibtool masquerade as > libtool: > > sudo mv /usr/bin/libtool ~/a.safe.tmp.dir > sudo ln -s /usr/bin/libtool /usr/bin/glibtool Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |
From: <php...@li...> - 2006-06-14 12:08:40
|
dGhrIHWjrGl0IHdvcmsgd2VsbKOso6x1IHIgZ29vZCBwZW9wbGUuCgoyMDA2LzYvMTQsIHBocC1q YXZhLWJyaWRnZS11c2Vyc0BsaXN0cy5zb3VyY2Vmb3JnZS5uZXQgPApwaHAtamF2YS1icmlkZ2Ut dXNlcnNAbGlzdHMuc291cmNlZm9yZ2UubmV0PjoKPgo+IEhpLAo+Cj4gamF2YSBpdCByZXF1aXJl cyB0aGF0IHRoZSBKYXZhIHBhY2thZ2UgaGllcmFyY2h5IG11c3QKPiBtYXRjaCB0aGUgVW5peCBk aXJlY3RvcnkgaGllcmFyY2h5LiBJZiB5b3UgaGF2ZSBhCj4gY2xhc3MgIGZvby5iYXIuQmF6LmNs YXNzLCB0aGlzIGNsYXNzIG11c3QgYmUgcGxhY2VkIGluCj4gdGhlIGRpcmVjdG9yeSBmb28vYmFy LyAob24gd2luZG93czogZm9vXGJhclwpLgo+Cj4gQlRXOiBUaGUgVVJMQ2xhc3NMb2FkZXIgZ29l cyBldmVuIGZ1cnRoZXIgYnkgcmVxdWlyaW5nCj4gdGhhdCBhIGZpbGUgdXJsIHRvIGEgZGlyZWN0 b3J5IG11c3QgZW5kIHdpdGggYSBzbGFzaCwKPiBldmVuIG9uIHdpbmRvd3MuIEZvciBleGFtcGxl IG9uIHdpbmRvd3MKPgo+IGxvYWRlciA9IG5ldyBVUkxDbGFzc0xvYWRlcigpOwo+IGxvYWRlci0+ YWRkVVJMcyhuZXcgVVJMW117ImZpbGU6YzpcXGRpcmVjdG9yeVxcIil9Cj4KPiB3aWxsIGZhaWwg YnV0Cj4KPiBsb2FkZXIgPSBuZXcgVVJMQ2xhc3NMb2FkZXIoKTsKPiBsb2FkZXItPmFkZFVSTHMo bmV3IFVSTFtdeyJmaWxlOmM6XFxkaXJlY3RvcnkvIil9Cj4KPiB3aWxsIHN1Y2NlZWQuCj4KPgo+ ID4gaSBtIGphdmEgbmV3ZXIuIG15IGNvbXBpbGUgcHJvY2VkdXJlIGxpa2UgdGhpczoKPiA+IGph dmFjIHBocHRlc3QuamF2YQo+ID4gamFyIGN2ZiBwaHB0ZXN0LmphciBwaHB0ZXN0LmNsYXNzCj4K PiBta2RpciBqbAo+IG12IHBocHRlc3QuamF2YSBqbAo+IGphdmFjIGpsL3BocHRlc3QuamF2YQo+ IGphciBjdmYgcGhwdGVzdC5qYXIgamwvKi5jbGFzcwo+Cj4gb24gd2luZG93czoKPgo+IG1rZGly IGpsCj4gY29weSBwaHB0ZXN0LmphdmEgamxccGhwdGVzdC5qYXZhCj4gamF2YWMgamxccGhwdGVz dC5qYXZhCj4gamFyIGN2ZiBwaHB0ZXN0LmphciBqbFwqLmNsYXNzCj4KPgo+IFJlZ2FyZHMsCj4g Sm9zdCBCb2VrZW1laWVyCj4KPgo+IF9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fCj4gRG8gWW91IFlhaG9vIT8KPiBTaWUgc2luZCBTcGFtIGxlaWQ/IFlh aG9vISBNYWlsIHZlcmaouWd0IKi5YmVyIGVpbmVuIGhlcmF1c3JhZ2VuZGVuIFNjaHV0ego+IGdl Z2VuIE1hc3Nlbm1haWxzLgo+IGh0dHA6Ly9tYWlsLnlhaG9vLmNvbQo+Cj4KPiBfX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXwo+IHBocC1qYXZhLWJyaWRnZS11 c2VycyBtYWlsaW5nIGxpc3QKPiBwaHAtamF2YS1icmlkZ2UtdXNlcnNAbGlzdHMuc291cmNlZm9y Z2UubmV0Cj4gaHR0cHM6Ly9saXN0cy5zb3VyY2Vmb3JnZS5uZXQvbGlzdHMvbGlzdGluZm8vcGhw LWphdmEtYnJpZGdlLXVzZXJzCj4K |
From: <php...@li...> - 2006-06-13 16:59:03
|
Hi, java it requires that the Java package hierarchy must match the Unix directory hierarchy. If you have a class foo.bar.Baz.class, this class must be placed in the directory foo/bar/ (on windows: foo\bar\). BTW: The URLClassLoader goes even further by requiring that a file url to a directory must end with a slash, even on windows. For example on windows loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory\\")} will fail but loader = new URLClassLoader(); loader->addURLs(new URL[]{"file:c:\\directory/")} will succeed. > i m java newer. my compile procedure like this: > javac phptest.java > jar cvf phptest.jar phptest.class mkdir jl mv phptest.java jl javac jl/phptest.java jar cvf phptest.jar jl/*.class on windows: mkdir jl copy phptest.java jl\phptest.java javac jl\phptest.java jar cvf phptest.jar jl\*.class Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-13 07:44:19
|
> > "In PHP/Java Bridge version 3.0.8 > > jar tvf c:/phptest.jar should display: > > jl/phptest > > META-INF/MANIFEST.MF > > " > i jar tvf c:/phptest.jar not find jl/phptest , only list: META-INF/ META-INF/MANIFEST.MF TxtFileIndexer.class i m java newer. my compile procedure like this: javac phptest.java jar cvf phptest.jar phptest.class is it wrong? |
From: <php...@li...> - 2006-06-12 18:41:59
|
Hi, > package jl; > public class phptest{ ... > public String test(String str) { ... > if i write "java_require("c:/phptest.jar"); $tf =new > Java("jl/phptest");",,,it shows error. > > how can i write it? In PHP/Java Bridge version 3.0.8: jar tvf c:/phptest.jar should display: jl/phptest META-INF/MANIFEST.MF The PHP code may look like: java_require("c:/phptest.jar"); $tf = new Java("jl.phptest"); $tf->test("hello"); In PHP/Java Bridge 3.1.0 you can convert the java library into a PHP class and require it: convert your java library /libraries to PHP code: java -jar JavaBridge.jar --convert c:/php5/pear c:/phptest.jar The above command creates the PHP class jl_phptest in c:/php5/pear/phptest/: <?php /* ini_set("include_path", "c:/php5/pear"); */ require_once("phptest/jl_phptest.php"); $tf = new jl_phptest(); $result = $tf->test("hello"); echo "$result"; ?> Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-12 18:23:07
|
Hi [please excuse the delay] > Added 1504821 to Issue Tracker. great, thank you very much for these bug reports! > > X_javabridge_redirect, referer: Interesting. They probably have a hash function which doesn't allow upper case and probably use this function to also hash up headers from applications. I have attached a patch called php-java-bridge-3.0.8.3_to_3.0.8.4.patch, it should fix this and the "ar" issue. I will apply it to 3.0.8 and 3.1.0, when I have some time. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-12 14:59:13
|
Added 1504821 to Issue Tracker. Cheers, Pat php...@li... wrote: > I added some debug output to begin_header in client.c: > > case 'X':// Redirect > { > php_log_err("Got X"); > php_log_err(str); > char *key; > static const char context[] = "X_JAVABRIDGE_CONTEXT"; > static const char redirect[]= "X_JAVABRIDGE_REDIRECT"; > if(!(*ctx)->peer_redirected && !strcmp(str, redirect)) { > php_log_err("redirect"); > > And this is what I get: > > [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] Got X, referer: > http://localhost:81/JavaBridge/index.php > [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] > X_javabridge_redirect, referer: http://localhost:81/JavaBridge/index.php > > But no 'redirect'; the header has been munged to Mixed case, so the > strcmp against redirect fails. I suspect this is happening in the Web > Server implementation of HttpServletResponse. > > HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2) > states that header field names are case-insensitive, so the comparison > should use strcasecmp. Changing strcmp to strcasecmp in lines 398, 414, > 424 and 444 fixes the problem. > > Hope this is useful, and thanks again for a really useful tool :-) > > Cheers, > > Pat > > php...@li... wrote: > >> I successfully built php-java-bridge_3.0.8.3 on Solaris 10 U1 x86. I'm >> now trying to deploy it. I have Apache 2.2 + PHP5 on the 'client' end, >> Sun Java System Web Server 6.1 SP5 on the server end. >> >> In my php.ini, I have: >> >> extension = java.so >> [java] >> java.hosts = "127.0.0.1:80" >> java.servlet = "/JavaBridge/JavaBridge.phpjavabridge" >> java.log_level="4" >> >> >> After some tweaks to fix some SJSWS specific issues (ensuring that all >> directories in the pat to the shared docs directory are 755, changing >> the ACL to allow PUT), I'm stuck. test.php hangs before it shows the >> bottom of the page. >> >> The WS error log shows an NPE in GlobalRef.get. Here is the whole >> interaction as logged at WS: >> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <C >> v="java.lang.System" p="C" i="136880520" > >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> </C> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 <-- <O >> v="1" p="O" i="136880520"/> >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 >> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <I >> v="1" m="getProperties" p="I" i="136886208" > >> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): JavaBridge ERROR: An exception occured >> [09/Jun/2006:23:10:33] failure (21795): for host 127.0.0.1 trying to PUT >> /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: >> [/JavaBridge] ServletContext.log(): >> java.lang.NullPointerException >> at php.java.bridge.GlobalRef.get(GlobalRef.java:30) >> at php.java.bridge.Request.getGlobalRef(Request.java:88) >> at php.java.bridge.Request.begin(Request.java:352) >> at php.java.bridge.Parser.CALL_BEGIN(Parser.java:95) >> at php.java.bridge.Parser.parse(Parser.java:156) >> at php.java.bridge.Request.handleRequest(Request.java:460) >> at php.java.bridge.Request.handleRequests(Request.java:493) >> at >> php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:213) >> at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:260) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) >> at >> org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209) >> at >> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) >> at >> com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161) >> at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580) >> >> 30 seconds later, Apache reports: >> >> [Fri Jun 09 23:11:03 2006] [notice] child pid 21735 exit signal >> Segmentation fault (11) >> >> Any idea what could be happening here? >> >> I'm trying to interpret the trace from the WS error file - extracting >> the relevant stuff, it says: >> >> # $v = new JavaClass("java.lang.System"); >> <C v="java.lang.System" p="C" i="136880520" > >> </C> >> <O v="1" p="O" i="136880520"/> >> >> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ >> >> # $v->getProperties() >> <I v="1" m="getProperties" p="I" i="136886208" > >> >> So the first method invocation returns an object reference '1', which is >> then used in the second invocation, but, by then, this object doesn't >> seem to exist. I can see the redirection to the named pipe in between >> the two calls, but, from the stack trace, the client doesn't seem to be >> following the redirect - it's just doing another PUT. >> >> It looks like the client should be setting the >> X_JAVABRIDGE_OVERRIDE_HOSTS header to override the redirect, but, for >> some reason, it doesn't, so the server doesn't know to preserve the >> context in the second PUT. >> >> Does this all make sense? Any suggestions on tracking this down further? >> >> Cheers, >> >> Pat >> -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-12 14:44:53
|
Hi, php...@li... wrote: > ... > if i write "java_require("c:/phptest.jar"); $tf =new > Java("jl/phptest");",,,it shows error. > > how can i write it? I think the syntax is $tf =new Java("jl.phptest"); - dot instead of slash. Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-12 10:25:47
|
for example [code] package jl; public class phptest{ /** * A sample of a class that can work with PHP * NB: The whole class must be public to work, * and of course the methods you wish to call * directly. * * Also note that from PHP the main method * will not be called */ public String foo; /** * Takes a string and returns the result * or a msg saying your string was empty */ public String test(String str) { if(str.equals("")) { str = "Your string was empty. "; } return str; } /** * whatisfoo() simply returns the value of the variable foo. */ public String whatisfoo() { return "foo is " + foo; } /** * This is called if phptest is run from the command line with * something like * java phptest * or * java phptest hello there */ public static void main(String args[]) { phptest p = new phptest(); if(args.length == 0) { String arg = ""; System.out.println(p.test(arg)); }else{ for (int i=0; i < args.length; i++) { String arg = args[i]; System.out.println(p.test(arg)); } } } } [/code] if i write "java_require("c:/phptest.jar"); $tf =new Java("jl/phptest");",,,it shows error. how can i write it? |
From: <php...@li...> - 2006-06-11 05:27:17
|
I added some debug output to begin_header in client.c: case 'X':// Redirect { php_log_err("Got X"); php_log_err(str); char *key; static const char context[] = "X_JAVABRIDGE_CONTEXT"; static const char redirect[]= "X_JAVABRIDGE_REDIRECT"; if(!(*ctx)->peer_redirected && !strcmp(str, redirect)) { php_log_err("redirect"); And this is what I get: [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] Got X, referer: http://localhost:81/JavaBridge/index.php [Sat Jun 10 21:50:47 2006] [error] [client 127.0.0.1] X_javabridge_redirect, referer: http://localhost:81/JavaBridge/index.php But no 'redirect'; the header has been munged to Mixed case, so the strcmp against redirect fails. I suspect this is happening in the Web Server implementation of HttpServletResponse. HTTP spec (http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2) states that header field names are case-insensitive, so the comparison should use strcasecmp. Changing strcmp to strcasecmp in lines 398, 414, 424 and 444 fixes the problem. Hope this is useful, and thanks again for a really useful tool :-) Cheers, Pat php...@li... wrote: > I successfully built php-java-bridge_3.0.8.3 on Solaris 10 U1 x86. I'm > now trying to deploy it. I have Apache 2.2 + PHP5 on the 'client' end, > Sun Java System Web Server 6.1 SP5 on the server end. > > In my php.ini, I have: > > extension = java.so > [java] > java.hosts = "127.0.0.1:80" > java.servlet = "/JavaBridge/JavaBridge.phpjavabridge" > java.log_level="4" > > > After some tweaks to fix some SJSWS specific issues (ensuring that all > directories in the pat to the shared docs directory are 755, changing > the ACL to allow PUT), I'm stuck. test.php hangs before it shows the > bottom of the page. > > The WS error log shows an NPE in GlobalRef.get. Here is the whole > interaction as logged at WS: > > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <C > v="java.lang.System" p="C" i="136880520" > > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> </C> > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 <-- <O > v="1" p="O" i="136880520"/> > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 > re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <I > v="1" m="getProperties" p="I" i="136886208" > > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): JavaBridge ERROR: An exception occured > [09/Jun/2006:23:10:33] failure (21795): for host 127.0.0.1 trying to PUT > /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: > [/JavaBridge] ServletContext.log(): > java.lang.NullPointerException > at php.java.bridge.GlobalRef.get(GlobalRef.java:30) > at php.java.bridge.Request.getGlobalRef(Request.java:88) > at php.java.bridge.Request.begin(Request.java:352) > at php.java.bridge.Parser.CALL_BEGIN(Parser.java:95) > at php.java.bridge.Parser.parse(Parser.java:156) > at php.java.bridge.Request.handleRequest(Request.java:460) > at php.java.bridge.Request.handleRequests(Request.java:493) > at > php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:213) > at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:260) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) > at > org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) > at > com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161) > at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580) > > 30 seconds later, Apache reports: > > [Fri Jun 09 23:11:03 2006] [notice] child pid 21735 exit signal > Segmentation fault (11) > > Any idea what could be happening here? > > I'm trying to interpret the trace from the WS error file - extracting > the relevant stuff, it says: > > # $v = new JavaClass("java.lang.System"); > <C v="java.lang.System" p="C" i="136880520" > > </C> > <O v="1" p="O" i="136880520"/> > > re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ > > # $v->getProperties() > <I v="1" m="getProperties" p="I" i="136886208" > > > So the first method invocation returns an object reference '1', which is > then used in the second invocation, but, by then, this object doesn't > seem to exist. I can see the redirection to the named pipe in between > the two calls, but, from the stack trace, the client doesn't seem to be > following the redirect - it's just doing another PUT. > > It looks like the client should be setting the > X_JAVABRIDGE_OVERRIDE_HOSTS header to override the redirect, but, for > some reason, it doesn't, so the server doesn't know to preserve the > context in the second PUT. > > Does this all make sense? Any suggestions on tracking this down further? > > Cheers, > > Pat > -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-10 07:48:00
|
I successfully built php-java-bridge_3.0.8.3 on Solaris 10 U1 x86. I'm now trying to deploy it. I have Apache 2.2 + PHP5 on the 'client' end, Sun Java System Web Server 6.1 SP5 on the server end. In my php.ini, I have: extension = java.so [java] java.hosts = "127.0.0.1:80" java.servlet = "/JavaBridge/JavaBridge.phpjavabridge" java.log_level="4" After some tweaks to fix some SJSWS specific issues (ensuring that all directories in the pat to the shared docs directory are 755, changing the ACL to allow PUT), I'm stuck. test.php hangs before it shows the bottom of the page. The WS error log shows an NPE in GlobalRef.get. Here is the whole interaction as logged at WS: [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <C v="java.lang.System" p="C" i="136880520" > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> </C> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 <-- <O v="1" p="O" i="136880520"/> [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge DEBUG: @1a73d30 --> <I v="1" m="getProperties" p="I" i="136886208" > [09/Jun/2006:23:10:33] info (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): JavaBridge ERROR: An exception occured [09/Jun/2006:23:10:33] failure (21795): for host 127.0.0.1 trying to PUT /JavaBridge/JavaBridge.phpjavabridge, service-j2ee reports: WEB2798: [/JavaBridge] ServletContext.log(): java.lang.NullPointerException at php.java.bridge.GlobalRef.get(GlobalRef.java:30) at php.java.bridge.Request.getGlobalRef(Request.java:88) at php.java.bridge.Request.begin(Request.java:352) at php.java.bridge.Parser.CALL_BEGIN(Parser.java:95) at php.java.bridge.Parser.parse(Parser.java:156) at php.java.bridge.Request.handleRequest(Request.java:460) at php.java.bridge.Request.handleRequests(Request.java:493) at php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:213) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:260) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at javax.servlet.http.HttpServlet.service(HttpServlet.java:908) at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161) at com.iplanet.ias.web.WebContainer.service(WebContainer.java:580) 30 seconds later, Apache reports: [Fri Jun 09 23:11:03 2006] [notice] child pid 21735 exit signal Segmentation fault (11) Any idea what could be happening here? I'm trying to interpret the trace from the WS error file - extracting the relevant stuff, it says: # $v = new JavaClass("java.lang.System"); <C v="java.lang.System" p="C" i="136880520" > </C> <O v="1" p="O" i="136880520"/> re-directing to port# Pipe:/var/tmp//.php_java_bridgeC3a4CQ # $v->getProperties() <I v="1" m="getProperties" p="I" i="136886208" > So the first method invocation returns an object reference '1', which is then used in the second invocation, but, by then, this object doesn't seem to exist. I can see the redirection to the named pipe in between the two calls, but, from the stack trace, the client doesn't seem to be following the redirect - it's just doing another PUT. It looks like the client should be setting the X_JAVABRIDGE_OVERRIDE_HOSTS header to override the redirect, but, for some reason, it doesn't, so the server doesn't know to preserve the context in the second PUT. Does this all make sense? Any suggestions on tracking this down further? Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-10 00:58:20
|
Hi Jost, Thanks for the quick reply. I had GNU ar, it just wasn't on my path. I pathed it and the make completed successfully. I've opened a ticket and attached config.log as requested. I also attached config.status in case that is useful. Cheers, Pat > Hi, > >>> gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o >>> .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o >>> >> -lsocket -lrt -lc >> >>> false cru .libs/libnatcJavaBridge.a >>> > > looks like "ar" is not installed or not in the path. > -- If I remember correctly gnu gcc needs the gnu ar or > a special flag, if you want to use the solaris ar. I > think we should see the failure in the config.log (or > config.status?). > > Can you please open a ticket and append the config.log > at the end of the ticket? Please use > http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 > > I will check this issue on monday. > > > Regards, > Jost Boekemeier > -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-09 18:16:21
|
Hi, > > gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o > > .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o > -lsocket -lrt -lc > > false cru .libs/libnatcJavaBridge.a looks like "ar" is not installed or not in the path. -- If I remember correctly gnu gcc needs the gnu ar or a special flag, if you want to use the solaris ar. I think we should see the failure in the config.log (or config.status?). Can you please open a ticket and append the config.log at the end of the ticket? Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 I will check this issue on monday. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-09 15:02:49
|
I should also mention, this is on Solaris 10 U1 x86. Cheers, Pat php...@li... wrote: > Hi, > > I've played with php-java-bridge on Linux (Ubuntu) and got everything > working really quick. It's a nice piece of work. Now I have to get it > working on Solaris... > > I tried to build php-java-bridge_3.0.8.3 on Solaris 10. I got all the > required tools (versions below) and ./configure seemed to work ok. make > proceeds for a while, then: > > ---make output start--- > > make[1]: Entering directory > `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' > if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR="\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\"" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo > -MD -MP -MF ".deps/natcJavaBridge.Tpo" -c -o natcJavaBridge.lo > natcJavaBridge.c; \ > then mv -f ".deps/natcJavaBridge.Tpo" > ".deps/natcJavaBridge.Plo"; else rm -f ".deps/natcJavaBridge.Tpo"; exit > 1; fi > mkdir .libs > gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD > -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -fPIC -DPIC -o > .libs/natcJavaBridge.o > gcc -DHAVE_CONFIG_H -I. -I. -I. > -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" > -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD > -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -o natcJavaBridge.o > >/dev/null 2>&1 > /bin/bash ./libtool --mode=link gcc -g -O2 -o libnatcJavaBridge.la > -rpath /download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules > -shared -avoid-version -prefer-pic natcJavaBridge.lo -lsocket -lrt > gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o > .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o -lsocket -lrt -lc > false cru .libs/libnatcJavaBridge.a natcJavaBridge.o > make[1]: *** [libnatcJavaBridge.la] Error 1 > make[1]: Leaving directory > `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' > make: *** > [/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules/libnatcJavaBridge.la] > Error 2 > > ---make output end--- > > Any idea how I can get this going? > > Here are my tool versions: > > ---versions start--- > > java version "1.5.0_06" > gcc (GCC) 4.0.2 > Server version: Apache/2.2.0 > php-config 5.1.2 > GNU Make 3.81 > autoconf (GNU Autoconf) 2.59 > automake (GNU automake) 1.8.3 > ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) > > ---versions end--- > > Cheers, > > Pat > -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-09 06:08:28
|
Hi, I've played with php-java-bridge on Linux (Ubuntu) and got everything working really quick. It's a nice piece of work. Now I have to get it working on Solaris... I tried to build php-java-bridge_3.0.8.3 on Solaris 10. I got all the required tools (versions below) and ./configure seemed to work ok. make proceeds for a while, then: ---make output start--- make[1]: Entering directory `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' if /bin/bash ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR="\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\"" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF ".deps/natcJavaBridge.Tpo" -c -o natcJavaBridge.lo natcJavaBridge.c; \ then mv -f ".deps/natcJavaBridge.Tpo" ".deps/natcJavaBridge.Plo"; else rm -f ".deps/natcJavaBridge.Tpo"; exit 1; fi mkdir .libs gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -fPIC -DPIC -o .libs/natcJavaBridge.o gcc -DHAVE_CONFIG_H -I. -I. -I. -DEXTENSION_DIR=\"/opt/csw/php5/lib/php/extensions/no-debug-non-zts-20050922\" -I/usr/jdk/jdk1.5.0_06/include -I/usr/jdk/jdk1.5.0_06/include/solaris -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -g -O2 -MT natcJavaBridge.lo -MD -MP -MF .deps/natcJavaBridge.Tpo -c natcJavaBridge.c -o natcJavaBridge.o >/dev/null 2>&1 /bin/bash ./libtool --mode=link gcc -g -O2 -o libnatcJavaBridge.la -rpath /download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules -shared -avoid-version -prefer-pic natcJavaBridge.lo -lsocket -lrt gcc -shared -Wl,-h -Wl,libnatcJavaBridge.so -o .libs/libnatcJavaBridge.so .libs/natcJavaBridge.o -lsocket -lrt -lc false cru .libs/libnatcJavaBridge.a natcJavaBridge.o make[1]: *** [libnatcJavaBridge.la] Error 1 make[1]: Leaving directory `/export/home/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/server' make: *** [/download/php-java-bridge_3.0.8.3/php-java-bridge-3.0.8.3/modules/libnatcJavaBridge.la] Error 2 ---make output end--- Any idea how I can get this going? Here are my tool versions: ---versions start--- java version "1.5.0_06" gcc (GCC) 4.0.2 Server version: Apache/2.2.0 php-config 5.1.2 GNU Make 3.81 autoconf (GNU Autoconf) 2.59 automake (GNU automake) 1.8.3 ltmain.sh (GNU libtool) 1.5.2 (1.1220.2.60 2004/01/25 12:25:08) ---versions end--- Cheers, Pat -- ------------------------------------------------------------------------ Pat Patterson <mailto:pat...@su...> Federation Architect Superpatterns <http://blogs.sun.com/roller/page/superpat> blog, Planet Identity <http://planetidentity.org> Identity Management Products <http://www.sun.com/identity> /Sun Microsystems, Inc. <http://www.sun.com/>/ ------------------------------------------------------------------------ |
From: <php...@li...> - 2006-06-08 18:27:03
|
Hi, the following php.ini entries will work: extension_dir="c:/php5" java.java = "c:/Program Files/Java/jdk1.5.0/jre/bin/javaw" ;;java.socketname = "9267" Please use PHP/Java Bridge 3.0.8 with the above settings. If you uncomment the java.socketname, you must start the back-end with e.g.: java -jar JavaBridge.jar INET:9267 3 JavaBridge.log In any case please try to use forward slashes instead of windows style back-slackes for java paths (in java the backslash has a different meaning). If you use back-slashes, please do not end a path with a back-slash, for example this causes trouble: extension_dir="c:\" because the bridge code appends /JavaBridge.jar which java translates into c:<escape>JavaBridge.jar. Please do not use java.library, java.libpath, java.classpath. java.library is always ignored by the bridge, but java.library is passed to the VM as java.library.path and java.classpath is passed to the VM as java.class.path. -- The java.library and java.classpath options can be used in certain circumstances, for example when you need to use JNI libraries (impure java libraries which need external dll's: the java libraries go to the java.classpath and the dlls to the java.libpath). But usually you can ignore these options. Your port# 9167 is wrong, too. It must be 9267 or above. 9167 is reserved for the Mono/DotNET back-end. I have created a ticket for this issue, please see http://sourceforge.net/tracker/index.php?func=detail&aid=1503076&group_id=117793&atid=679233 for details. BTW: Please avoid the 3.1.0 release candidate, it has still several problems on windows and one minor issue on Unix. Please use 3.0.8 instead. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |
From: <php...@li...> - 2006-06-07 18:20:06
|
Hi, > I'm really giving up now. too bad. But thank you for testing the 3.1.0 release candidate anyway. > host. It works first time after restart, then it > doesn't. I could reproduce this problem with 3.1.0 rc2 and rc3. The problem appears on Unix only and is connected with a fix for passing environment variables. The current working directory was no longer set, which means that the .sh wrapper can or cannot execute the cgi binary using ./php-cgi-x86-linux. This is fixed in RC4. Please see the ChangeLog for details. > other error, just blank page. Yes, then the shell cannot execute the cgi binary it ends the shell script without writing any output. Regards, Jost Boekemeier __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com |