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
(2) |
3
|
4
|
5
|
6
(3) |
7
(2) |
8
(2) |
9
(1) |
10
(4) |
11
|
12
|
13
(2) |
14
(1) |
15
(5) |
16
(1) |
17
|
18
|
19
(2) |
20
|
21
(1) |
22
(2) |
23
(2) |
24
|
25
|
26
|
27
|
28
|
29
(1) |
30
|
31
(2) |
|
From: <php...@li...> - 2006-03-31 18:53:59
|
>From: php...@li... >Reply-To: php...@li... >To: php...@li... >Subject: RE: [Php-java-bridge-users] Deploying Multiple PHP apps on >Apache/Tomcat >Date: Fri, 31 Mar 2006 17:40:07 +0200 (CEST) > >Hi, > > > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx > >isn't it possible to set the DocumentRoot to >/usr/opt/tomcat/webapps so that the other apps become >visible to the HTTP server? For example: I tried this and when I do www.xxyxyx.com/MyPHPApp/index.php, and it can't find it. > >DocumentRoot "/usr/opt/tomcat/webapps" ><Directory "/usr/opt/tomcat/webapps/webapps"> > >Another option would be to keep the tomcat webapps and >the http server htdocs directory separate and to >symlink the individual apps from >/usr/opt/tomcat/webapps/appX to /var/www/html/appX. >For example: > >ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ >ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ I couldn't get these to work either. I did get it to work by adding the Alias to a different virtual host, which is ok for now becaue I use javascript to open another window. Alias / /usr/opt/tomcat/webapps/phpBB2/ Jim > > >Regards, >Jost Boekemeier > > > > > > > >___________________________________________________________ >Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > >------------------------------------------------------- >This SF.Net email is sponsored by xPML, a groundbreaking scripting language >that extends applications into web and mobile media. Attend the live >webcast >and join the prime developer group breaking into this new coding territory! >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-03-31 15:40:20
|
Hi, > DocumentRoot /usr/opt/tomcat/webapps/xxyxyx isn't it possible to set the DocumentRoot to /usr/opt/tomcat/webapps so that the other apps become visible to the HTTP server? For example: DocumentRoot "/usr/opt/tomcat/webapps" <Directory "/usr/opt/tomcat/webapps/webapps"> Another option would be to keep the tomcat webapps and the http server htdocs directory separate and to symlink the individual apps from /usr/opt/tomcat/webapps/appX to /var/www/html/appX. For example: ln -s /usr/opt/tomcat/webapps/app1 /var/www/html/ ln -s /usr/opt/tomcat/webapps/app2 /var/www/html/ Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-29 15:53:13
|
I have this bridge up and running, http://php-java-bridge.sourceforge.net/ My problem is I can only have it serve up PHP pages from one directory under TOMCAT(myPHPapp). I want to be able to add other PHP apps in other directories I deploy to Tomcat. My config is Apache 2.0.44/Tomcat 5.5 with the bridge. In my HTTP.CONF I have the following Alias to point to the directory that has my PHP app, <VirtualHost *:80> ServerAdmin pr...@xx... ServerAlias xxyxyx.org *.xxyxyx.org DocumentRoot /usr/opt/tomcat/webapps/xxyxyx Alias / /usr/opt/tomcat/webapps/myPHPapp/ </VirtualHost> Jim |
From: <php...@li...> - 2006-03-23 10:25:22
|
Just a quick reply : I watch the Jasper sources and they are already=20 using the context classloader. As said by Jost Boekemeier, this is an issue of PHP-Java bridge not=20 setting correctly the context classloader before 3.0.8 (see bug PR1449780= ) regards, chris php...@li... wrote: > Thanks for the tip : I did not know that javac (i.e the one in=20 > tools.jar) did not inherit the runtime classpath (but it seems logical=20 > because, for example, I do not want my compilation be influenced by my=20 > eclipse classpath). > > I used the solution previously provided (i.e set java.classpath in the=20 > php.ini) which seems to do the same thing (put the jars in the system=20 > class loader). > I prefer to stay with this solution because it is clearly more simple=20 > than to hook the JasperReports sources or than to set a system=20 > property in an obscure part of the code (what I mean is that if other=20 > applications use PHP-Java-bridge, it is simpler for them to know that=20 > there already are some classes in the system classpath via php.ini). > > Anyway, I will fill a bug on JasperReports to say that it will be good=20 > to provide the necessarly used runtime jars to the javac compiler. > > Thanks to take time to think on my problem. > > Regards, > chris > > php...@li... wrote: >> php...@li... wrote: >>> Just to say I digg into this problem all day and still find no=20 >>> solution. >>> What I do not understand is why a thread does not inherit the=20 >>> classpath from the creating thread >> >> I guess that's not the problem. The problem is, that javac does not=20 >> inherit the classpath. i.e. just because the classes are available >> to the compiler in it's runtime environment does not mean that he has=20 >> access to the class definitions. (i.e. class files) - nor that he know= s >> how to find them. >> >> I have done something similar once, and you definitely need to tell=20 >> javac explicitly where to find the classes it needs. >> If they are in /jre/lib/ext he will look there anyway, but it's not=20 >> really a classloader problem - it's just that javac does not utilize >> it's own classloader to look for classes - it uses the system=20 >> classpath, plus classpaths he has been explicitly told to use. >> >> Try System.setProperty to change the system classpath and try again,=20 >> I guess that will help. >> >> best regards, >> >> Kai Londenberg >> >> >> >> >> >> >> ------------------------------------------------------- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 >> language >> that extends applications into web and mobile media. Attend the live=20 >> webcast >> and join the prime developer group breaking into this new coding=20 >> territory! >> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&da= t=3D121642 >> _______________________________________________ >> php-java-bridge-users mailing list >> php...@li... >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >> >> >> > --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-23 10:12:30
|
Thanks for the tip : I did not know that javac (i.e the one in=20 tools.jar) did not inherit the runtime classpath (but it seems logical=20 because, for example, I do not want my compilation be influenced by my=20 eclipse classpath). I used the solution previously provided (i.e set java.classpath in the=20 php.ini) which seems to do the same thing (put the jars in the system=20 class loader). I prefer to stay with this solution because it is clearly more simple=20 than to hook the JasperReports sources or than to set a system property=20 in an obscure part of the code (what I mean is that if other=20 applications use PHP-Java-bridge, it is simpler for them to know that=20 there already are some classes in the system classpath via php.ini). Anyway, I will fill a bug on JasperReports to say that it will be good=20 to provide the necessarly used runtime jars to the javac compiler. Thanks to take time to think on my problem. Regards, chris php...@li... wrote: > php...@li... wrote: >> Just to say I digg into this problem all day and still find no solutio= n. >> What I do not understand is why a thread does not inherit the=20 >> classpath from the creating thread > > I guess that's not the problem. The problem is, that javac does not=20 > inherit the classpath. i.e. just because the classes are available > to the compiler in it's runtime environment does not mean that he has=20 > access to the class definitions. (i.e. class files) - nor that he knows > how to find them. > > I have done something similar once, and you definitely need to tell=20 > javac explicitly where to find the classes it needs. > If they are in /jre/lib/ext he will look there anyway, but it's not=20 > really a classloader problem - it's just that javac does not utilize > it's own classloader to look for classes - it uses the system=20 > classpath, plus classpaths he has been explicitly told to use. > > Try System.setProperty to change the system classpath and try again, I=20 > guess that will help. > > best regards, > > Kai Londenberg > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting=20 > language > that extends applications into web and mobile media. Attend the live=20 > webcast > and join the prime developer group breaking into this new coding=20 > territory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-22 11:32:06
|
Hi, I'm trying to setup the PHP/Java bridge using PHP 5.1.2 with Apache 2.2.0 on Fedora 5. Sadly, I'm getting this error (see below.) What have I done? Is there a version mismatch? Please help. Thank you. - Mark echo "<?php phpinfo()?>" | php | fgrep "java status" PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/java.so' - /usr/lib/php/modules/java.so: undefined symbol: _zval_dtor in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/java.so' - /usr/lib/php/modules/java.so: undefined symbol: _zval_dtor in Unknown on line 0 |
From: <php...@li...> - 2006-03-21 16:51:27
|
php...@li... wrote: > Just to say I digg into this problem all day and still find no solution. > What I do not understand is why a thread does not inherit the > classpath from the creating thread I guess that's not the problem. The problem is, that javac does not inherit the classpath. i.e. just because the classes are available to the compiler in it's runtime environment does not mean that he has access to the class definitions. (i.e. class files) - nor that he knows how to find them. I have done something similar once, and you definitely need to tell javac explicitly where to find the classes it needs. If they are in /jre/lib/ext he will look there anyway, but it's not really a classloader problem - it's just that javac does not utilize it's own classloader to look for classes - it uses the system classpath, plus classpaths he has been explicitly told to use. Try System.setProperty to change the system classpath and try again, I guess that will help. best regards, Kai Londenberg |
From: <php...@li...> - 2006-03-19 15:02:44
|
Hi, > Why can not I specify a directory instead of the > jars ? In some JVM (most java VM but not Mono) you can use e.g.: java -Djava.ext.dirs=/dir1:/dir2 -jar JavaBridge.jar But you cannot set this option in the php.ini file. However, on windows the following could be used: [java] java.java="javaw -Djava.ext.dirs=..." On Unix you could use a .sh wrapper, for example: [java] java.wrapper=/home/jostb/bin/startBackend.sh And the startBackend.sh script could look like: #!/bin/sh java=$1; shift addOptions="-Djava.ext.dirs=..." exec $java $addOptions $* Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-19 14:49:18
|
Hi, > $ar=array(1, 2, 3); > $v=new java("java.util.Vector", $ar); > outputs: [o(String):"[2, 1, 3]"] I've just commited a fix into the cvs head. The collection is now backed by a TreeMap unless you use something like this: array(1,2,"foo"=>3). The new code should be a little bit faster, too. Please see the ChangeLog, tests/sendArray.php. Thank you very much for this bug report! Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-16 10:24:53
|
Hello, I don't know if this is a proper behavior, but: $ar=array(1, 2, 3); $v=new java("java.util.Vector", $ar); echo $v->toString(); outputs: [o(String):"[2, 1, 3]"] As you see values of vector are not ordered as in input array. Best regards, ML |
From: <php...@li...> - 2006-03-15 18:30:16
|
Hi, > Moving my jars into jre/lib/ext is not an option > because you must be > root to do that (and I am not). In a restricted environment I think it is best to use the servlet/j2ee backend. You can deploy your JavaBridge.war application without having admin privileges and you can store all the java libraries you need into your JavaBridge.war. > Hardcoding the java.classpath in the php.ini is > maybe possible thanks to > a .htaccess so this is ok, I will watch for this > today. All java options except java.log_level are INI_SYSTEM, that means only the administrator can set them. > Is the > "*Thread*.currentThread().getContextClassLoader()" Yes. But in earlier versions of the JavaBridge the context classloader has had the wrong parent, this was fixed in 3.0.7a. But I don't think this bug is responsible for the current problem. Regards, Jost Boekemeier |
From: <php...@li...> - 2006-03-15 17:43:06
|
Hi, > phpize > ./configure --prefix=/opt/php5.1 > --with-java=/opt/jdk1.5 > --with-php-config=/opt/php5.1/bin/php-config > --enable-servlet==/opt/tomcat5.58/common/lib/servlet-api.jar You can just type: phpize && ./configure --with-java=/opt/jdk1.5 && make and then copy the modules/JavaBridge.war to cp modules/JavaBridge.war /opt/tomcat5.58/webapps re-start tomcat and browse to: http://localhost:8080/JavaBridge/test.php Or just download the J2EE binary (http://prdownloads.sourceforge.net/php-java-bridge/php-java-bridge_3.0.7a_j2ee.zip?download), which already contains a pre-compiled JavaBridge.war for Solaris, Linux and Windows. > Al ejecutar > http://localhost:8080/JavaBridge/test.php, se supera > el tiempo > de respuesta y no aparece nada. Does /opt/tomcat5.58/webapps/JavaBridge exist? Which error message do you see in the tomcat log file? Regards, Jost Boekemeier |
From: <php...@li...> - 2006-03-15 16:45:16
|
Q29tcGlsZSBwaHAtamF2YS1icmlkZ2U6DQoNCg0KSFRUUEQyDQouL2NvbmZpZ3VyZSAtLXByZWZp eD0vb3B0L2FwYWNoZTIgIC0tZW5hYmxlLXVzZXJ0cmFjayAgLS1lbmFibGUtdW5pcXVlLWlkIA0K LS1lbmFibGUtc3NsIC0tZW5hYmxlLXN0YXRpYy1yb3RhdGVsb2dzIC0tZW5hYmxlLWh0dHAgLS1l bmFibGUtcmV3cml0ZSANCi0tZW5hYmxlLXNvIC0tZW5hYmxlLW1vZHMtc2hhcmVkPW1vc3QgLS1l bmFibGUtbW9kdWxlcz1tb3N0IC0tZW5hYmxlLWluZm8gDQotLXdpdGgteiAtLXdpdGgtc3NsIC0t ZW5hYmxlLW1pbWUtbWFnaWMg4oiS4oiSZW5hYmxl4oiSbW9kdWxlPWluZm8NCg0KUEhQNS4xDQou L2NvbmZpZ3VyZSAtLXByZWZpeD0vb3B0L3BocDUuMSAtLXdpdGgtYXB4czI9L29wdC9hcGFjaGUy L2Jpbi9hcHhzIA0KLS13aXRob3V0LWphdmEgLS1lbmFibGUtc2lnY2hpbGQgLS13aXRoLWxpYnht bC1kaXI9L3Vzci9saWIgDQotLWVuYWJsZS1jYWxlbmRhciAtLXdpdGgtbGlieG1sLWRpcj0vdXNy L2xpYiAtLXdpdGgtbGlieG1sLWRpcj0vdXNyL2xpYiANCi0tZW5hYmxlLXN5c3Ztc2cgLS1lbmFi bGUtc3lzdnNlbSAtLWVuYWJsZS1zeXN2c2htIA0KLS13aXRoLWxpYnhtbC1kaXI9L3Vzci9saWIg IC0tZW5hYmxlLWZhc3RjZ2kgLS13aXRoLW9wZW5zc2wgLS13aXRoLXpsaWIgDQotLXdpdGgtb2Np OD1pbnN0YW50Y2xpZW50LC9vcHQvc29mdHdhcmUvaW5zdGFudGNsaWVudF8xMF8yIA0KLS1lbmFi bGUtdHJhY2stdmFycyAgLS13aXRoLWNvbmZpZy1maWxlLXBhdGg9L29wdC9hcGFjaGUyL2NvbmYg DQotLXdpdGhvdXQtamF2YSAtLWVuYWJsZS1jZ2kNCg0KQURPUEhQDQpwaHBpemUNCi4vY29uZmln dXJlIC0tcHJlZml4PS9vcHQvcGhwNS4xIC0td2l0aC1hZG8gDQotLXdpdGgtcGhwLWNvbmZpZz0v b3B0L3BocDUuMS9iaW4vcGhwLWNvbmZpZw0KDQpKQVZBX0JSSUdERQ0KcGhwaXplDQouL2NvbmZp Z3VyZSAtLXByZWZpeD0vb3B0L3BocDUuMSAtLXdpdGgtamF2YT0vb3B0L2pkazEuNSANCi0td2l0 aC1waHAtY29uZmlnPS9vcHQvcGhwNS4xL2Jpbi9waHAtY29uZmlnIA0KLS1lbmFibGUtc2Vydmxl dD09L29wdC90b21jYXQ1LjU4L2NvbW1vbi9saWIvc2VydmxldC1hcGkuamFyIA0KDQpBbCBlamVj dXRhciBodHRwOi8vbG9jYWxob3N0OjgwODAvSmF2YUJyaWRnZS90ZXN0LnBocCwgc2Ugc3VwZXJh IGVsIHRpZW1wbyANCmRlIHJlc3B1ZXN0YSB5IG5vIGFwYXJlY2UgbmFkYS4NCg0KUXXDqSBzdWNl ZGUgPz8NCg0KDQoNCg== |
From: <php...@li...> - 2006-03-15 09:56:20
|
Hi, just a maybe-silly question concerning setting the java.classpath in the=20 php.ini : Why can not I specify a directory instead of the jars ? I ask because I have 12 jars to set in the cp, so this is bad to=20 maintains their hard-coded names in the php.ini ex : $> ls /home/christophe/workspace/www2/libraries/java/lib/ commons-beanutils-1.5.jar commons-logging-api-1.0.2.jar =20 jcommon-1.0.0.jar xalan.jar commons-collections-2.1.jar CVS =20 jfreechart-1.0.1.jar commons-digester-1.7.jar itext-1.3.1.jar jxl.jar commons-logging-1.0.2.jar jasperreports-1.2.0.jar poi-2.0.jar $> cat /etc/php5/conf.d/java.ini [java] extension=3Djava.so java.java=3D/usr/java/jdk/bin/java java.java_home=3D/usr/java/jdk java.log_level=3D4 java.log_file=3D/var/log/php-java-bridge.log java.classpath=3D/usr/lib/php5/extensions/JavaBridge.jar:/home/christophe= /workspace/www2/libraries/java/lib report.php *Fatal error*: Uncaught [class java.lang.Exception: java.lang.Exception:=20 CreateInstance failed: new Report. Cause:=20 java.lang.NoClassDefFoundError:=20 net/sf/jasperreports/engine/export/JRPdfExporter] thrown in=20 */home/christophe/workspace/www2/report.php* on line *XXX *with the class being defined in*=20 */home/christophe/workspace/www2/libraries/java/lib/jasperreports-1.2.0.j= ar regards, chris* * php...@li... wrote: > Hi, > > =20 >> Just to say I digg into this problem all day and >> still find no solution. >> =20 > > Sorry for that. I assumed that this wasn't an > important issue, you've said that it works if you move > the jars to jre/lib/ext. > > > =20 >> What I do not understand is why a thread does not >> inherit the classpath=20 >> from the creating thread ? >> =20 > > JSP is a good example. The container doesn't want to > make the jsp classloader available to the webapp, so > it sets the thread context classloader to the parent > of the current classloader. > > I don't know if and how your reporting engine handles > this, but in general applications may choose to ignore > our dynamic loader and load classes or create dynamic > proxies via the system classloader. If this happens, > the loaded classes or defined proxies cannot access > classes loaded via the dynamic loader. > > So I think the best workaround is to install your > libraries in $JAVA_HOME/jre/lib/ext or to hard-code > the java.classpath in the php.ini file, for example: > > java.classpath=3D/path/to/JavaBridge.jar:/path/to/lib1.jar:... > > I have created a ticket for this problem, please see > PR1449780 for details > (http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1449780&g= roup_id=3D117793&atid=3D679233) > > > Thank you very much for this bug report! > > > Regards, > Jost Boekemeier > > > > > > > > > =09 > > =09 > =09 > ___________________________________________________________=20 > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > =20 --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-15 09:17:55
|
Hi, thanks for the detailed answer, I better understand my problem now. Moving my jars into jre/lib/ext is not an option because you must be=20 root to do that (and I am not). Hardcoding the java.classpath in the php.ini is maybe possible thanks to=20 a .htaccess so this is ok, I will watch for this today. Concerning the isssue, here is a snippet from my report engine code in=20 order to provide more details: this is the call to the compiler : JRClassLoader.loadClassForName("org.eclipse.jdt.internal.compiler.Compile= r"); Here is the JRClassLoader called method : ** *public* static *Class* loadClassForName(*String* className) *throws* *C= lassNotFoundException* { *Class* clazz =3D *null*; *ClassLoader* classLoader =3D *Thread*.currentThread().getContextClassL= oader(); *if* (classLoader !=3D *null*) { *try* { clazz =3D *Class*.forName(className, *true*, classLoader); } *catch* (*ClassNotFoundException* e) { ///if (log.isWarnEnabled())/ /// log.warn("Failure using Thread.currentThread().getContextClassLoa= der() in JRClassLoader class. Using JRClassLoader.class.getClassLoader() = instead.");/ } } *if* (clazz =3D=3D *null*) { classLoader =3D JRClassLoader.class.getClassLoader(); *if* (classLoader =3D=3D *null*) { clazz =3D *Class*.forName(className); } *else* { clazz =3D *Class*.forName(className, *true*, classLoader); } } *return* clazz; } Is the "*Thread*.currentThread().getContextClassLoader()" not the good me= thod to obtain PHP-Java-bridge class loader ? Again, thanks for the answer, best regards, chris php...@li... wrote: > Hi, > > =20 >> Just to say I digg into this problem all day and >> still find no solution. >> =20 > > Sorry for that. I assumed that this wasn't an > important issue, you've said that it works if you move > the jars to jre/lib/ext. > > > =20 >> What I do not understand is why a thread does not >> inherit the classpath=20 >> from the creating thread ? >> =20 > > JSP is a good example. The container doesn't want to > make the jsp classloader available to the webapp, so > it sets the thread context classloader to the parent > of the current classloader. > > I don't know if and how your reporting engine handles > this, but in general applications may choose to ignore > our dynamic loader and load classes or create dynamic > proxies via the system classloader. If this happens, > the loaded classes or defined proxies cannot access > classes loaded via the dynamic loader. > > So I think the best workaround is to install your > libraries in $JAVA_HOME/jre/lib/ext or to hard-code > the java.classpath in the php.ini file, for example: > > java.classpath=3D/path/to/JavaBridge.jar:/path/to/lib1.jar:... > > I have created a ticket for this problem, please see > PR1449780 for details > (http://sourceforge.net/tracker/index.php?func=3Ddetail&aid=3D1449780&g= roup_id=3D117793&atid=3D679233) > > > Thank you very much for this bug report! > > > Regards, > Jost Boekemeier > > > > > > > > > =09 > > =09 > =09 > ___________________________________________________________=20 > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de > > > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > > =20 --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-14 18:03:16
|
Hi, > Just to say I digg into this problem all day and > still find no solution. Sorry for that. I assumed that this wasn't an important issue, you've said that it works if you move the jars to jre/lib/ext. > What I do not understand is why a thread does not > inherit the classpath > from the creating thread ? JSP is a good example. The container doesn't want to make the jsp classloader available to the webapp, so it sets the thread context classloader to the parent of the current classloader. I don't know if and how your reporting engine handles this, but in general applications may choose to ignore our dynamic loader and load classes or create dynamic proxies via the system classloader. If this happens, the loaded classes or defined proxies cannot access classes loaded via the dynamic loader. So I think the best workaround is to install your libraries in $JAVA_HOME/jre/lib/ext or to hard-code the java.classpath in the php.ini file, for example: java.classpath=/path/to/JavaBridge.jar:/path/to/lib1.jar:... I have created a ticket for this problem, please see PR1449780 for details (http://sourceforge.net/tracker/index.php?func=detail&aid=1449780&group_id=117793&atid=679233) Thank you very much for this bug report! Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-13 16:43:31
|
Just to say I digg into this problem all day and still find no solution. What I do not understand is why a thread does not inherit the classpath=20 from the creating thread ? or maybe the thread is not the problem (if so, please correct me because=20 I am really new to Java threads and javac called from a .java) regards, chris php...@li... wrote: > Hi, > > I am using PHP-Java-bridge like this : > Report.java : is a java file containning a wrapper to JasperReports=20 > notaly the following imports and method : > import net.sf.jasperreports.engine.*; > [...] > public void setSubReport(String name, String compressed_xml) throws=20 > JRException { > InputStream stream =3D this.readCompressedXml(compressed_xml= ); > //compile into a JasperReport object > JasperReport jasperReport =3D=20 > JasperCompileManager.compileReport(stream); > //add to subreports map > _subreports.put(name, jasperReport); > } > > Now in php, I use Report.php : > $p =3D $GLOBALS['CONF']['SYS']['INCLUDE_PATH']['libraries'].'java/lib/'= ; > $javapath =3D=20 > $p.'commons-beanutils-1.5.jar;'.$p.'commons-collections-2.1.jar;'. > =20 > $p.'commons-digester-1.7.jar;'.$p.'commons-logging-1.0.2.jar;'. > $p.'commons-logging-api-1.0.2.jar;'.$p.'itext-1.3.1.jar;'. > $p.'jasperreports-1.2.0.jar;'.$p.'jcommon-1.0.0.jar;'. > =20 > $p.'jfreechart-1.0.1.jar;'.$p.'poi-2.0.jar;'.$p.'xalan.jar;'.$p.'../rep= ort/Report.jar';=20 > > java_set_library_path($javapath); > try { > $r =3D new Java('Report'); > $r->setSubReport($name, $row['sr_compressed_xml']); > } catch (JavaException $ex) { > $trace =3D new java("java.io.ByteArrayOutputStream"); > $ex->printStackTrace(new java("java.io.PrintStream", $trace)); > die("<pre>java stack trace: $trace</pre>"); > } > > So now, this print the following error (snippet) : > Package not found : net.sf.jaspereports.engine line XX in=20 > master12345.java > (Note: the line JasperCompileManager.compileReport(stream); is the=20 > bottom of the stacktrace). > > This means that my Java class perfectly imports the package (because=20 > it can call the JasperCompileManager.compile method) but the java=20 > classes generated on the fly by Jasper (here named master12345) cannot=20 > use the jars set in the javapath. > > I digg into the source code and see that a new thread is opened for=20 > the compilation : maybe this is the problem (related to the class=20 > loader in php-java-bridge I think ?). > Plus, putting the jars into jdk/jre/lib/ext works, so this prove that=20 > it should be a problem with the class loader. > Note that doing this (jars in lib/ext) is not really an option for a=20 > production environment... > > I hope you can help me to find a workaround for my situation; > > best regards and keep on the good work, > chris > --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-13 10:26:02
|
Hi, I am using PHP-Java-bridge like this : Report.java : is a java file containning a wrapper to JasperReports=20 notaly the following imports and method : import net.sf.jasperreports.engine.*; [...] public void setSubReport(String name, String compressed_xml) throws=20 JRException { InputStream stream =3D this.readCompressedXml(compressed_xml)= ; //compile into a JasperReport object JasperReport jasperReport =3D=20 JasperCompileManager.compileReport(stream); //add to subreports map _subreports.put(name, jasperReport); } Now in php, I use Report.php : $p =3D $GLOBALS['CONF']['SYS']['INCLUDE_PATH']['libraries'].'java/lib/'; $javapath =3D=20 $p.'commons-beanutils-1.5.jar;'.$p.'commons-collections-2.1.jar;'. $p.'commons-digester-1.7.jar;'.$p.'commons-logging-1.0.2.jar;= '. $p.'commons-logging-api-1.0.2.jar;'.$p.'itext-1.3.1.jar;'. $p.'jasperreports-1.2.0.jar;'.$p.'jcommon-1.0.0.jar;'. =20 $p.'jfreechart-1.0.1.jar;'.$p.'poi-2.0.jar;'.$p.'xalan.jar;'.$p.'../repor= t/Report.jar'; java_set_library_path($javapath); try { $r =3D new Java('Report'); $r->setSubReport($name, $row['sr_compressed_xml']); } catch (JavaException $ex) { $trace =3D new java("java.io.ByteArrayOutputStream"); $ex->printStackTrace(new java("java.io.PrintStream", $trace)); die("<pre>java stack trace: $trace</pre>"); } So now, this print the following error (snippet) : Package not found : net.sf.jaspereports.engine line XX in master12345.jav= a (Note: the line JasperCompileManager.compileReport(stream); is the=20 bottom of the stacktrace). This means that my Java class perfectly imports the package (because it=20 can call the JasperCompileManager.compile method) but the java classes=20 generated on the fly by Jasper (here named master12345) cannot use the=20 jars set in the javapath. I digg into the source code and see that a new thread is opened for the=20 compilation : maybe this is the problem (related to the class loader in=20 php-java-bridge I think ?). Plus, putting the jars into jdk/jre/lib/ext works, so this prove that it=20 should be a problem with the class loader. Note that doing this (jars in lib/ext) is not really an option for a=20 production environment... I hope you can help me to find a workaround for my situation; best regards and keep on the good work, chris --=20 =20 _________________________________________________________________________= ______________ Tennaxia, www.tennaxia.com, Pilotez vos obligations environnementales _________________________________________________________________________= ______________ Si=E8ge social : 6, rue L=E9onard de Vinci - 53001 Laval Cedex -=20 T=E9l : 02 43 49 75 50 - Fax : 02 43 49 75 77 Agence Paris : 19, rue r=E9aumur - 75003 Paris -=20 T=E9l : 01 42 77 04 19 - Fax : 08 25 19 19 61 Agence Lyon : Parc du Chater - 63 rue de la garenne - 69340 FRANCHEVILLE -=20 T=E9l : 04 72 39 98 14 - Fax : 04 72 39 93 85 Les informations contenues dans ce message envoy=E9es par TENNAXIA sont c= onfidentielles et sont =E9tablies =E0 l'attention exclusive de leurs destinataires. L'acc=E8= s =E0 ce message par toute autre personne n'est pas autoris=E9. Si vous n'=EAtes pas le de= stinataire de ce message, merci de le d=E9truire et d'en avertir l'exp=E9diteur : toute al= t=E9ration, copie, distribution ou toute action prise ou omise sont interdites et peuvent =EA= tre ill=E9gales. The information in this message sent by TENNAXIA is confidential and may = be legally privileged. It is intended solely for the addressee(s). Access to this me= ssage by anyone else is unauthorized. If you are not the intended recipient, please delet= e it and notify the sender : any disclosure, copying, distribution or any action taken or= omitted to be taken in reliance on it, is prohibited and may be unlawful. |
From: <php...@li...> - 2006-03-10 17:59:36
|
Hi, > java.lang.Exception: Invoke failed: > [o(ApiOrganizationHome)]->findOrganization((IOrganizationWhere)o(ApiOrganizationWhere)). > Cause: Failed reading response from the server. > Nested exception is: > java.lang.OutOfMemoryError: Java heap space I think, the OutOfMemoryError happened in the EJB business logic, not in the JVM running the bridge backend. I assume the findOrganization is a EJB finder method? I haven't had OOM errors in the bridge backend for some time now, but if I remember correctly the bridge reports an OOM in its VM via: JavaBridge ERROR: OutOfMemoryError After that all clients should abort immediately because the backend closes all connections to recover from this. The above formatted error string ("Invoke failed") makes me believe that it's not the bridge backend that reported the OOM, but the component to which the backend is connected, an EJB container probably(?). Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the exception message from the JavaBridge.log (on RHEL the log file is /var/log/php-java-bridge.log) there? We'll look at this asap. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-10 17:28:35
|
Hi, thank you very much for this bug report. As a workaround please move the jar file (which references or contains the native library) to $JAVA_HOME/jre/lib/ext and re-start the backend. > When the php page is loaded, everything is OK. But > when i refresh the page, > it shows the error as below > Native Library /usr/lib/libsfount_api.so already > loaded in another > classloader"] that's an interesting problem. At the moment the dynamic loader can only load pure java libraries. When GNU java is used (gcc/gcj), it can also load native libraries. The SUN java VM cannot load a native library twice. I think this means that we must lock the classloader, when we're asked to load a dynamic library. The loader will remain locked and all further classes and libraries will be loaded via this loader until finalization. I will check this for version 3.0.8, please see PR 1447360 (http://sourceforge.net/tracker/index.php?func=detail&aid=1447360&group_id=117793&atid=679233) Until then please use the above workaround. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-10 16:31:52
|
Hello all, I've been building an application that provides a front end for a HP product called service desk. WE had this error last night, java.lang.Exception: Invoke failed: [o(ApiOrganizationHome)]->findOrganization((IOrganizationWhere)o(ApiOrganiz= ationWhere)). Cause: Failed reading response from the server. Nested exception is: java.lang.OutOfMemoryError: Java heap space I'm running the JVM as a service. As far as I understand it, all java objects should be gabage collected after a script finishes (no more references). But I've been seeing the resident memory usage of the Java service gradually increase as the requests go in, and it doesn't go back down. Anybody got any pointers or help they can give? Thanks, Paul. |
From: <php...@li...> - 2006-03-10 12:46:38
|
Hello! I seem to have the PHP Java Bridge (php-java-bridge_3.0.7a) working with PH= P 5.1.2 on my CentOS server with Apache 2.0.53. I think all configuration is OK, but it still has some problem at run-time. When the php page is loaded, everything is OK. But when i refresh the page, it shows the error as below *Fatal error*: Uncaught [o(Exception):"java.lang.Exception: CreateInstance failed: new StreamFountJava.SFountAPI. Cause: java.lang.UnsatisfiedLinkErro= r: Native Library /usr/lib/libsfount_api.so already loaded in another classloader"] thrown in */home/mbos/php_java.php* on line *10* StreamFountJava.SFountAPI is a java package. I have made the StreamFountJava/SFountAPI.class as *.jar and stored it under /usr/share/java/. Also the *.jar is in my java_require() path. libsfount_api.so is the dynamic link libraries for the java to invoke. It has been loaded by System.loadLibrary() in the SFountAPI.class. This is the php-java-bridge.log: Mar 10 16:09:22 JavaBridge ERROR: Exception occured java.lang.UnsatisfiedLinkError: Native Library /usr/lib/libsfount_api.so already loaded in another classloader at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1551) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482) at java.lang.Runtime.load0(Runtime.java:737) at java.lang.System.load( System.java:811) at StreamFountJava.SFountAPI.<clinit>(SFountAPI.java:24) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance ( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java :274) at php.java.bridge.JavaBridge.CreateObject(JavaBridge.java:515) at php.java.bridge.Request.handleRequest(Request.java:406) at php.java.bridge.Request.handleRequests(Request.java:425) at php.java.bridge.JavaBridge.run(JavaBridge.java:207) at php.java.bridge.ThreadPool$Delegate.run(ThreadPool.java:29) Why every time i refresh my page, the Fatal error will be shown? How can i release my dynamic link libraries from the classloader or avoid the error? I also try to use java_reset() at the top of my php page, but it seems that it doesn't work. I'm sorry for my poor english, because english is not my native language. But trust me, I'm trying my best. Please help me anyway! Best regards to you! Thank you! |
From: <php...@li...> - 2006-03-09 06:16:45
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ok, thank you very much for the help. php...@li... escribi=F3: > Hi, >=20 >> I must to kill all the >> instances of java bridge >> because if i restart Apache don't restart >> php-java-bridge.=20 >=20 > I think this depends on how you restart apache. When > you use apachectl restart or service httpd restart, > apache runs the registered php shutdown procedures > ("MSHUTDOWN()"), which will shut down the associated > java backend. >=20 > If that fails, it may indicate that apache is not able > to shutdown properly. Doing an=20 >=20 > strace -s1024 /usr/sbin/httpd -X 2>/tmp/apache.log &=20 > kill -1 <apache-pid> >=20 > should give some insight. >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 > =09 >=20 > =09 > =09 > ___________________________________________________________=20 > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >=20 - -- ********************************************************************** FUNDACI=D3N CARTIF MARIO DE FRUTOS DIEGUEZ - Email: ma...@ca... Divisi=F3n de Ingenier=EDa del Software y Comunicaciones Parque Tecnol=F3gico de Boecillo, Parcela 205 47151 - Boecillo (Valladolid) Espa=F1a Tel. (34) 983.54.88.21 Fax (34) 983.54.65.21 ********************************************************************** Este mensaje se dirige exclusivamente a su destinatario y puede contener informaci=F3n CONFIDENCIAL sometida a secreto profesional o cuya divulgaci=F3n est=E9 prohibida en virtud de la legislaci=F3n vigente. Si = ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma v=EDa y proceda a su destrucci=F3n. N=F3tese que el correo electr=F3nico via Internet no permite asegurar ni = la confidencialidad de los mensajes que se transmiten ni la correcta recepci=F3n de los mismos. En el caso de que el destinatario de este mensaje no consintiera la utilizaci=F3n del correo electr=F3nico v=EDa Internet, rogamos lo ponga en nuestro conocimiento de manera inmediata. *********************************************************************** This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by a professional privilege or whose disclosure is prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it. Please note that Internet e-mail neither guarantees the confidentiality nor the proper receipt of the messages sent. If the addressee of this message does not consent to the use of Internet e-mail, please communicate it to us immediately. ************************************************************************ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFED8g1bPPtxT8v/3wRAuKcAJ9Fuis//cORN1g4uIyM7bPf4k1y9QCfS3Ug cWyM1fHoun3D2Pv7H/pMJNs=3D =3DWq5F -----END PGP SIGNATURE----- |
From: <php...@li...> - 2006-03-08 19:15:17
|
Hi, > I must to kill all the > instances of java bridge > because if i restart Apache don't restart > php-java-bridge. I think this depends on how you restart apache. When you use apachectl restart or service httpd restart, apache runs the registered php shutdown procedures ("MSHUTDOWN()"), which will shut down the associated java backend. If that fails, it may indicate that apache is not able to shutdown properly. Doing an strace -s1024 /usr/sbin/httpd -X 2>/tmp/apache.log & kill -1 <apache-pid> should give some insight. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-08 06:26:43
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I solve the problem. I must to kill all the instances of java bridge because if i restart Apache don't restart php-java-bridge. When i kill all and restart apache load the new libraries. Thank you for the solutions and sorry for the problems. Best Regards, php...@li... escribi=F3: > Hi Mario, >=20 >> php.java.bridge.JavaBridgeClassLoader.<init>(JavaBridgeClassLoader.jav= a:16) >> I have the same version of frontend and backend: >> Frontend (phpinfo) -> java bridge 3.0.7a >> Backend (global.properties) -> BACKEND_VERSION =3D >> 3.0.7a >=20 > then we must find the reason why old classes of > JavaBridge and JavaBridgeClassLoader are used and > print a stack trace. >=20 > Can you please open a ticket (please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D679= 233) > and append the following information there: >=20 > * Please set the java.log_level to 4 and set > java.log_file to /tmp/bridge.log and re-start the http > server (usually with apachectl restart). Please attach > the complete bridge.log at the end of the ticket. >=20 > * Please type php test.php4 >result.html and attach > the result.html at the end of the ticket. (the > test.php4 is in the source download or in the > php-java-bridge-3.0.7-1.i386.RHEL.rpm >=20 >=20 > Thank you very much for the bug report. >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 >=20 > =09 >=20 > =09 > =09 > ___________________________________________________________=20 > Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by xPML, a groundbreaking scripting lang= uage > that extends applications into web and mobile media. Attend the live we= bcast > and join the prime developer group breaking into this new coding territ= ory! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat= =3D121642 > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users >=20 - -- ********************************************************************** FUNDACI=D3N CARTIF MARIO DE FRUTOS DIEGUEZ - Email: ma...@ca... Divisi=F3n de Ingenier=EDa del Software y Comunicaciones Parque Tecnol=F3gico de Boecillo, Parcela 205 47151 - Boecillo (Valladolid) Espa=F1a Tel. (34) 983.54.88.21 Fax (34) 983.54.65.21 ********************************************************************** Este mensaje se dirige exclusivamente a su destinatario y puede contener informaci=F3n CONFIDENCIAL sometida a secreto profesional o cuya divulgaci=F3n est=E9 prohibida en virtud de la legislaci=F3n vigente. Si = ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma v=EDa y proceda a su destrucci=F3n. N=F3tese que el correo electr=F3nico via Internet no permite asegurar ni = la confidencialidad de los mensajes que se transmiten ni la correcta recepci=F3n de los mismos. En el caso de que el destinatario de este mensaje no consintiera la utilizaci=F3n del correo electr=F3nico v=EDa Internet, rogamos lo ponga en nuestro conocimiento de manera inmediata. *********************************************************************** This message is intended exclusively for its addressee and may contain information that is CONFIDENTIAL and protected by a professional privilege or whose disclosure is prohibited by law. If this message has been received in error, please immediately notify us via e-mail and delete it. Please note that Internet e-mail neither guarantees the confidentiality nor the proper receipt of the messages sent. If the addressee of this message does not consent to the use of Internet e-mail, please communicate it to us immediately. ************************************************************************ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEDnkKbPPtxT8v/3wRAtLhAJ0Yd3qKUl7873Jzb7YtSPTVcVSzdACfXNC+ AChoYoVNgpvW3cZgO7HJXRw=3D =3D+QNF -----END PGP SIGNATURE----- |