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
|
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----- |
From: <php...@li...> - 2006-03-07 19:24:11
|
Hi Mario, >php.java.bridge.JavaBridgeClassLoader.<init>(JavaBridgeClassLoader.java:16) > I have the same version of frontend and backend: > Frontend (phpinfo) -> java bridge 3.0.7a > Backend (global.properties) -> BACKEND_VERSION = > 3.0.7a then we must find the reason why old classes of JavaBridge and JavaBridgeClassLoader are used and print a stack trace. Can you please open a ticket (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the following information there: * 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. * 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 Thank you very much for the bug report. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-07 06:48:20
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 php...@li... escribi=F3: > Hi, >=20 >> java.lang.NullPointerException >> at=20 > php.java.bridge.JavaBridgeClassLoader.<init>(JavaBridgeClassLoader.java= :16) >=20 > this sounds similar to the problem reported in > PR1271474: > http://sourceforge.net/tracker/?group_id=3D117793&atid=3D679233&func=3D= detail&aid=3D1271474 >=20 > The bridge protocol doesn't check this, but in general > the version numbers of the java.so/php_java.dll > frontend and the JavaBridge.war/JavaBridge.jar backend > must match. The version # of the frontend is reported > via phpinfo(), since version 3.0.5 the version number > of the backend is stored in global.properties text > file, located in the php/java/bridge folder within the > JavaBridge.jar file. >=20 > Can you please check if you don't have old versions of > the JavaBridge classes in your classpath? >=20 > If the problem persists, please open a new ticket, > please use > http://sourceforge.net/tracker/?func=3Dadd&group_id=3D117793&atid=3D679= 233 >=20 >=20 > Regards, > Jost Boekemeier >=20 >=20 >=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 - -- ********************************************************************** 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 iD8DBQFEDSykbPPtxT8v/3wRAu3oAJ9PoDc51AjL24f8Bbti+ndvjz0ZagCfaW5K zVQ4ggZjUVmcJx+AdFi+xRo=3D =3DutTb -----END PGP SIGNATURE----- |
From: <php...@li...> - 2006-03-06 17:38:10
|
Hi, > java.lang.NullPointerException > at php.java.bridge.JavaBridgeClassLoader.<init>(JavaBridgeClassLoader.java:16) this sounds similar to the problem reported in PR1271474: http://sourceforge.net/tracker/?group_id=117793&atid=679233&func=detail&aid=1271474 The bridge protocol doesn't check this, but in general the version numbers of the java.so/php_java.dll frontend and the JavaBridge.war/JavaBridge.jar backend must match. The version # of the frontend is reported via phpinfo(), since version 3.0.5 the version number of the backend is stored in global.properties text file, located in the php/java/bridge folder within the JavaBridge.jar file. Can you please check if you don't have old versions of the JavaBridge classes in your classpath? If the problem persists, please open a new ticket, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-06 13:22:25
|
Are you sure? JavaBridge.java:35 is a header/comment line w/o any code. What version does java -jar JavaBridge.jar 10 10 "" report? php...@li... wrote: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone! I configure and compile without problems php-java-bridge 3.0.7 but when i restart the web server in the log appears this: java.lang.NullPointerException at php.java.bridge.JavaBridgeClassLoader.(JavaBridgeClassLoader.java:16) at php.java.bridge.JavaBridge.(JavaBridge.java:35) at php.java.bridge.JavaBridge.init(JavaBridge.java:205) at php.java.bridge.JavaBridge.main(JavaBridge.java:231) What's the problem?! My Specs: Apache 2.0.55-4 Php 4.4.2-1 Java2 1.5.0_06 Thx in advance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEDCxGbPPtxT8v/3wRAnEoAJ9Nf+MIcsSVs33ScrAKm9DxxS8MZQCdGbxb BXSfKEQV2pm8CK5rRvPIVYk= =UODu -----END PGP SIGNATURE----- ------------------------------------------------------- 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 --------------------------------- Yahoo! Mail Bring photos to life! New PhotoMail makes sharing a breeze. |
From: <php...@li...> - 2006-03-06 12:35:02
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone! I configure and compile without problems php-java-bridge 3.0.7 but when i restart the web server in the log appears this: java.lang.NullPointerException at php.java.bridge.JavaBridgeClassLoader.<init>(JavaBridgeClassLoader.java:16) at php.java.bridge.JavaBridge.<init>(JavaBridge.java:35) at php.java.bridge.JavaBridge.init(JavaBridge.java:205) at php.java.bridge.JavaBridge.main(JavaBridge.java:231) What's the problem?! My Specs: Apache 2.0.55-4 Php 4.4.2-1 Java2 1.5.0_06 Thx in advance -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEDCxGbPPtxT8v/3wRAnEoAJ9Nf+MIcsSVs33ScrAKm9DxxS8MZQCdGbxb BXSfKEQV2pm8CK5rRvPIVYk= =UODu -----END PGP SIGNATURE----- |
From: <php...@li...> - 2006-03-02 17:15:57
|
Hi, > configure: running /bin/sh './configure.gnu' > --prefix=/usr > '--disable-servlet' > '--with-java=/usr/local/j2sdk1.4.2_11/' > - --cache-file=/dev/null --srcdir=. > aclocal: configure.in: 20: macro XYZ not > found in library you must install the required versions of autoconf, libtool and automake into the path, see INSTALL document, or switch off backend compilation (./configure --disable-backend) and use the precompiled servlet/j2ee backend instead. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-03-02 08:42:29
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello everyone! I try to install php-java-bridge i have the following error, can anyone help me?! My Specs: Apache 2.0.54-5 Php 4.3.10-16 Java2 1.5.0_06 Error: checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking whether gcc and cc understand -c and -o together... yes checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php4 - -I/usr/include/php4/main -I/usr/include/php4/Zend -I/usr/include/php4/T= SRM checking for PHP extension directory... /usr/lib/php4/20020429 checking for re2c... exit 0; checking for gawk... no checking for mawk... mawk checking for java support... yes, shared checking for java servlet support... yes, shared checking for java script support... yes, shared checking for java server faces support... yes, shared checking for sys/param.h... yes checking for sys/types.h... yes checking for sys/time.h... yes checking for assert.h... yes checking for fcntl.h... yes checking for limits.h... yes checking for signal.h... yes checking for stdarg.h... yes checking for stdlib.h... yes checking for string.h... yes checking for syslog.h... yes checking for sys/ioctl.h... yes checking for sys/poll.h... yes checking for sys/select.h... yes checking for sys/socket.h... yes checking for sys/un.h... yes checking for sys/wait.h... yes checking for unistd.h... yes checking whether AF_LOCAL is declared... yes checking whether PF_LOCAL is declared... yes checking for socket in -lsocket... no checking for sem_init in -lrt... yes checking for pthreads_cflags... checking for pthreads_lib... checking for broken stdio buffering... no checking for abstract namespace... yes checking for struct ucred... yes checking for jni interface... yes checking for broken gcc installation... no checking for a sed that does not truncate output... /bin/sed checking for egrep... grep -E checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking how to run the C preprocessor... gcc -E checking for ANSI C header files... yes checking for sys/types.h... (cached) yes checking for sys/stat.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... (cached) yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking how to run the C++ preprocessor... g++ -E checking for g77... no checking for f77... no checking for xlf... no checking for frt... no checking for pgf77... no checking for fort77... no checking for fl32... no checking for af77... no checking for f90... no checking for xlf90... no checking for pgf90... no checking for epcf90... no checking for f95... no checking for fort... no checking for xlf95... no checking for ifc... no checking for efc... no checking for pgf95... no checking for lf95... no checking for gfortran... no checking whether we are using the GNU Fortran 77 compiler... no checking whether accepts -g... no checking the maximum length of command line arguments... 32768 checking command to parse /usr/bin/nm -B output from gcc object... ok checking for objdir... .libs checking for ar... ar checking for ranlib... ranlib checking for strip... strip checking if gcc static flag works... yes checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC checking if gcc PIC flag -fPIC works... yes checking if gcc supports -c -o file.o... yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating libtool appending configuration tag "CXX" to libtool checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC checking if g++ PIC flag -fPIC works... yes checking if g++ supports -c -o file.o... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes appending configuration tag "F77" to libtool configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged configure: configuring in server configure: running /bin/sh './configure.gnu' --prefix=3D/usr '--disable-servlet' '--with-java=3D/usr/local/j2sdk1.4.2_11/' - --cache-file=3D/dev/null --srcdir=3D. aclocal: configure.in: 20: macro `AM_PROG_GCJ' not found in library aclocal: configure.in: 46: macro `AM_CPPFLAGS' not found in library aclocal: configure.in: 53: macro `AM_CPPFLAGS' not found in library autoheader: error: AC_CONFIG_HEADERS not found in configure.in configure.in:15: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allo= w. See the Autoconf documentation. configure.in:16: error: possibly undefined macro: AM_CONFIG_HEADER configure.in:20: error: possibly undefined macro: AM_PROG_GCJ configure.in:21: error: possibly undefined macro: AC_PROG_LIBTOOL configure.in:46: error: possibly undefined macro: AM_CPPFLAGS configure.in:159: error: possibly undefined macro: AM_CONDITIONAL You should add the contents of `/usr/share/aclocal/libtool.m4' to `aclocal.m4'. configure.in:15: no proper implementation of AM_INIT_AUTOMAKE was found, configure.in:15: probably because aclocal.m4 is missing... configure.in:15: You should run aclocal to create this file, then configure.in:15: run automake again. configure.in:16: required file `./config.h.in' not found /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/lang-compile.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL /usr/share/automake-1.6/am/lang-compile.am: AMDEP does not appear in AM_CONDITIONAL automake: Makefile.am: Java source seen but `GCJ' not defined in `configure.in' ./configure: line 1310: syntax error near unexpected token `1.6.3' ./configure: line 1310: `AM_INIT_AUTOMAKE(1.6.3)' configure: error: /bin/sh './configure.gnu' failed for server - -- ********************************************************************** 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 iD8DBQFEBq0pbPPtxT8v/3wRAhvZAJ4jHir+lWyb/eBbM2q5TJ7MiN5WxwCeMhAp rsK+mtwQFxbTF+5E7L/1MMA=3D =3DzeZk -----END PGP SIGNATURE----- |
From: <php...@li...> - 2006-02-24 18:14:33
|
Hi, > to believe that the WAR file could -replace- a PHP > installation, effectively running PHP internally. Exactly. The .war file already contains binaries for solaris, linux and windows in the cgi folder. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-02-23 19:04:28
|
On Thu, 23 Feb 2006 php...@li... wrote: > I think the JavaBridge.war (the j2ee binary download) > file is a good example. You rename it to, say > "mybridge.war" and copy it to the autodeploy folder of > the servlet engine or application server. After that > you can visit: I looked in the WAR file, but I'm a bit puzzled. The PHP/Java Bridge site says that people may not need to install PHP -- this lead me to believe that the WAR file could -replace- a PHP installation, effectively running PHP internally. Is this possible? I didn't see anything in the WAR that looked like the PHP interpreter...? And thanks, by the way, for your quick reply to my earlier question! --->Ben |
From: <php...@li...> - 2006-02-23 18:32:31
|
Hi, > the packaging of > all the components into one archive. Do you have any > examples of how this > is done? I think the JavaBridge.war (the j2ee binary download) file is a good example. You rename it to, say "mybridge.war" and copy it to the autodeploy folder of the servlet engine or application server. After that you can visit: http://localhost:8080/mybridge and run the php examples. The fact that the bridge uses a servlet engine as its execution environment is an "accident", an implementation detail; php and java have to communicate using a "continuation passing style", php calls the servlet engine and the servlet engine in turn calls the php (fast-) cgi api. If you restrict your servlet engine to listen only on the local (127.0.0.1) interface, you can hide this implementation detail to your users. > PHP as an internal [and external] > scripting language for > the game. I think the java-server-faces example shows this. When you click on the helloWorld.jsf link, the JSF application tries to invoke the external php script @80:/helloWorld.php, see the faces-config.xml. If that fails, it tries again, using the local script /helloWorld.php from the .war file. What the JSF example doesn't show is that the bridge can even hold the external script instance hostage, i.e. you can invoke functions or methods and examine properties. In combination with php5 reflection this could be used to implement auto completion, for example. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-02-23 16:49:19
|
Hello! In the description page for the PHP/Java Bridge, it says: "PHP, the PHP/Java Bridge and the php files can be packaged within a standard J2EE archive, customers can easily deploy it into a J2EE application server or servlet engine. They don't have to install PHP and they usually cannot tell the difference whether the pages are generated by PHP, JSP or servlets." I'm curious as to how this is accomplished, e.g. the packaging of all the components into one archive. Do you have any examples of how this is done? What I'm trying to use the bridge for is to create MUD server that uses Java as the backend, and PHP as an internal scripting language for the game. In case you're not aware, a MUD server is text-based game where players connect via Telnet. Aside from the PHP and Java I'd like to archive into one file, I also would like to be able to call external PHP scripts on the server from the application, as well as have scripts within the archive itself. Is this doable with the bridge? Any help with how to package things so as to run the whole thing from one archive would be really appreciated. And if you have any thoughts on the implementation of the MUD server application, I'd be happy to hear them. I'm a little daunted with the scope of my own project. :^) Thanks! --->Ben |
From: <php...@li...> - 2006-02-22 15:39:00
|
php...@li... wrote: > $vevent = new > Java("net.fortuna.ical4j.model.component.VEvent",(String)"20051225T190000",(String)"20051225T220000",(String)"Christmas > Day"); > ... > *Fatal error*: Uncaught [o(Exception):"java.lang.Exception: > CreateInstance failed: new > net.fortuna.ical4j.model.component.VEvent((Date)o(String), > (Date)o(String), (String)o(String)). Cause: > java.lang.IllegalArgumentException: argument type mismatch"] thrown in > */var/www/java/ical4j-testing/test.php* on line *25* you need to pass a java date object as first and second parameter, not a string i am not familiar with java but something like $date = new Java('java.date',('20051225T190000'); could help look add the java reference on how to create an java.date object -- Sebastian Mendel www.sebastianmendel.de www.sf.net/projects/phpdatetime | www.sf.net/projects/phptimesheet |