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
|
3
(2) |
4
(1) |
5
(1) |
6
|
7
|
|
8
|
9
(1) |
10
|
11
|
12
(3) |
13
(2) |
14
(6) |
|
15
|
16
(3) |
17
(2) |
18
(4) |
19
(2) |
20
|
21
|
|
22
|
23
(1) |
24
(1) |
25
(9) |
26
(7) |
27
(9) |
28
(5) |
|
29
(1) |
30
(7) |
31
(4) |
|
|
|
|
|
From: <php...@li...> - 2007-07-27 11:50:31
|
Hi Jost!
I got your message about sending you the debug log. I
was kind of tied up today (and maybe tomorrow).
Hopefully, I can send you the log by Monday at the
latest.
Btw, I forgot to tell you, I'm using an external
application (MediaWiki). This calls a PHP script that
calls Java code.
Here is a rough time profile:
1) MediaWiki loads a new article (no PHP script)
- 0 to 2 seconds
2) MediaWiki loads article that contains PHP script
that calls Java code using PHP-Java Bridge
a) For the first time - 12 to 18 seconds
b) Succeeding times - 1 to 4 seconds
(not 5 seconds as I reported to you last time)
Meantime, could you point me out to websites that
explain how Apache and PHP work together, and also the
Java VM, so I can better understanding of PHP-Java
Bridge?
Thanks!
Filip
Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
From: <php...@li...> - 2007-07-26 18:19:51
|
Hi Jost, thank a lot for your feedback. >I assumed that you wanted to connect your framework (typo3) with another, >java-based framework running in a different web context, but within the same >tomcat container. > > yes, >1) So you have typo3 running in the Apache front-end connected to an associated back-end >running in tomcat. > > yes >2) A second, unspecified application is running in tomcat, associated with the Apache >front-end via mod_jk. > > > yes >The second application should parse the request parameters and call the first application which >should generate the response. > >Isn't it possible to direct all requests to the second app and then use >requestDispatcher.forward(...) to let typo 3 generate the response? > >The call graph would be: > > apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response > > > this is a great idea. i think this could be the solution. The prerequisite is that the php-webapp is correct running via the bridge in the tomcat. unfortunately runs the php-app not in the tomcat. I reduced my system to the absolutly mimimum. I installed php version 5.2.3. If i configure the system as you decribe in PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples (http://www.dsl.uow.edu.au/~sk33/php5java.htm) the Bridge is running and if i call phpinfo then i see the correct version 5.2.3 If i configure as PHP5, PHP/Java Bridge & Tomcat on XP PRO + SP and examples (http://www.dsl.uow.edu.au/~sk33/php5jsp.htm) the bridge isnt running. In this case, i wondering the the php version is 5.1.3-dev. why used this install not the installed version? A question to you, it is posible to get you as consultand to solve this case in our project? best regards Jörg >Regards, >Jost Boekemeier > > > > dddd > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |
|
From: <php...@li...> - 2007-07-26 10:33:59
|
Hi Jörg,
first of all thank you very much for your feedback.
> i dont know exacly what you mean with another web application.
I assumed that you wanted to connect your framework (typo3) with another,
java-based framework running in a different web context, but within the same
tomcat container.
> I have a
> Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms).
> The requests is not forwarding via mod_jk to the tomcat. In this webapp
> i install the bridge (WebInf Folder and java folder from the
> JavaBridge.war). The second app is located in the tomcat. All requests
> (/jsp) goes via mod_jk to the context in the tomcat. The second app
> implements a HttpServlet. Every request from the first app (typo3
> cms) should be also call the doGet Method in the second Application.
> This method retrieve the parameters and use it. But the response is
> generated by the first app, the cms system.
1) So you have typo3 running in the Apache front-end connected to an associated back-end
running in tomcat.
2) A second, unspecified application is running in tomcat, associated with the Apache
front-end via mod_jk.
The second application should parse the request parameters and call the first application which
should generate the response.
Isn't it possible to direct all requests to the second app and then use
requestDispatcher.forward(...) to let typo 3 generate the response?
The call graph would be:
apache --mod_jk-> tomcat app#2 --forward-> php/java bridge -> response
Regards,
Jost Boekemeier
dddd
|
|
From: <php...@li...> - 2007-07-26 09:28:21
|
Hi Philip, > I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? yes. Some other component must cause the delay. Do you load the Java libraries from a shared network folder so that the dynamic classloader doesn't cache the libraries? Can you please set the log level to 5, open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and append the log at the end of the ticket? We'll look at this issue asap. Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
|
From: <php...@li...> - 2007-07-26 09:23:29
|
Hi Jost, >do you want to call a servlet from another web application or a different container? > > i dont know exacly what you mean with another web application. I have a Apache / Tomcat (mod_jk). First webapp is a pure php-system (typo3 cms). The requests is not forwarding via mod_jk to the tomcat. In this webapp i install the bridge (WebInf Folder and java folder from the JavaBridge.war). The second app is located in the tomcat. All requests (/jsp) goes via mod_jk to the context in the tomcat. The second app implements a HttpServlet. Every request from the first app (typo3 cms) should be also call the doGet Method in the second Application. This method retrieve the parameters and use it. But the response is generated by the first app, the cms system. regards Jörg >The former is possible by using the RequestDispatcher, please see >http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html > > >Regards, >Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Splunk Inc. >Still grepping through log files to find problems? Stop. >Now Search log events and configuration files using AJAX and a browser. >Download your FREE copy of Splunk now >> http://get.splunk.com/ >_______________________________________________ >php-java-bridge-users mailing list >php...@li... >https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > > |
|
From: <php...@li...> - 2007-07-26 09:18:46
|
Hi Jost! Sorry, I forgot to give you information about my environment: 32-bit Intel Machine Windows XP + Service Pack 2 WAMP Version 1.6.5 which includes: * Apache 2.0.59 * PHP 5.1.6 (Using Apache 2.0 Handler as Server API) JDK 1.5.0.10 PHP-Java Bridge 3.2.1 J2EE > I assume you mean the DynamicClassLoader. (DynamicLoad may also mean > that you start the bridge and the JVM as a sub component for each incoming > request). Yes, I meant the DynamicClassLoader. > Do you start Java as a sub component of apache or IIS or as a separate > component, for example via the Tomcat servlet engine? I installed PHP-Java Bridge following instructions here: TITLE: PHP5, PHP/Java Bridge & Apache on XP PRO + SP2 and examples URL: http://www.dsl.uow.edu.au/~sk33/php5java.htm In that setup, I suppose I start Java as a sub component of Apache (?). >> 3) The system loads the Java Virtual Machine (JVM). > Only if the JVM is running as a sub component of Apache ... AND if Apache ... > cannot maintain a pool of PHP instances, which is usually the case with CGI. > (emphasis mine -- Filip) You mention two conditions: 1) the JVM is running as a sub component of Apache The answer appears to be YES. 2) Apache cannot maintain a pool of PHP instances, which is usually the case with CGI I don't use CGI. Does that automatically mean my Apache can maintain a pool of instances? If that is the case (i.e. the second condition is not met), then the system SHOULD NOT be loading the JVM every time a user requests for a PHP script. >> 4) The system loads all Java libraries needed by the PHP script. > Only if the JVM is running as a sub component OR Apache/IIS and PHP is > running in CGI mode. (emphasis mine -- Filip) Only if the JVM is running as a sub component --- TRUE Apache/IIS and PHP is running in CGI mode --- FALSE TRUE or FALSE = TRUE, the system does load all Java libraries needed (e.g. log4j, dom4j, etc.) per request unless they're already in the cache (?) >> What happens exactly with "static loading"? Is this sequence of events accurate? >> >> 0) User starts up the welcome page of a web application. >> The system loads all Java base classes (libraries) AND >> the Java Virtual Machine (JVM). > Well, the JVM is usually started as a separate component. Or in the MINIT > method invoked during the startup of Apache or IIS. This means that one VM > is usually attached to the web server. So do you think this is the solution to my problem (slow loading per request, esp. the first)? > The only exception are CGI or console scripts. By 'console scripts', do you mean command line scripting (that doesn't use a web server)? Thanks again! Filip Send instant messages to your online friends http://uk.messenger.yahoo.com |
|
From: <php...@li...> - 2007-07-26 07:31:02
|
Hi,
> installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the
> DYNAMIC LOAD method.
I assume you mean the DynamicClassLoader. (DynamicLoad may also mean that you start the bridge
and the JVM as a sub component for each incoming request).
> It works but the web page that contains the PHP script loads very slowly
> (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds).
5 seconds is too slow. This may mean that you are starting a new JVM for each invocation.
Do you start Java as a sub component of apache or IIS or as a separate component, for example
via the Tomcat servlet engine?
> What the Java code does is supposedly simple, it reads a short string value from a relational
> database, and passes it to PHP script to display. Oh, but the Java code requires a lot of
> libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them).
Does't matter, the DynamicClassLoader caches them.
> What happens exactly with "dynamic loading"? Is the sequence of events below accurate?
[depends on what you mean with "dynamic loading".
> 1) User requests for a web page that contains a PHP script that calls Java code.
Apache/IIS keeps a pool of PHP instances. When the client browser requests a PHP page, the
web server activates the PHP instance and passes it the script. The PHP/Java Bridge creates
an XML document from the script and forwards it to the Java VM (usually started via a local
Servlet Engine).
> 2) The system loads all Java base classes (libraries).
When your script contains a java_require(...) call, the DynamicClassLoader resolves and loads
the Java libraries and caches them.
> 3) The system loads the Java Virtual Machine (JVM).
Only if the JVM is running as a sub component of Apache or IIS and if Apache or IIS cannot
maintain a pool of PHP instances, which is usually the case with CGI.
> 4) The system loads all Java libraries needed by the PHP script.
Only if the JVM is running as a sub component or Apache/IIS and PHP is running in CGI mode.
> What happens exactly with "static loading"? Is this sequence of events accurate?
>
> 0) User starts up the welcome page of a web application.
> The system loads all Java base classes (libraries) AND
> the Java Virtual Machine (JVM).
Well, the JVM is usually started as a separate component. Or in the MINIT method invoked during
the startup of Apache or IIS. This means that one VM is usually attached to the web server.
The only exception are CGI or console scripts. If you use the C implementation, it will start
a new JVM for each invocation. If you use the PHP implementation, it will throw an error if no
persistent JVM is running on the given port#.
Regards,
Jost Boekemeier
dddd
|
|
From: <php...@li...> - 2007-07-26 06:54:29
|
I'm a PHP programmer tasked with calling Java code written by someone else. I successfully installed the Bridge on my Windows machine. I wrote PHP script that calls Java code using the DYNAMIC LOAD method. It works but the web page that contains the PHP script loads very slowly (15-20 seconds) the first time, but a bit faster the succeeding times (5 seconds).
What the Java code does is supposedly simple, it reads a short string value from a relational database, and passes it to PHP script to display. Oh, but the Java code requires a lot of libraries like log4j, dom4j, asm, xom, etc. (more than 20 of them).
My immediate question is: Is there a way to improve performance, especially the first time the webpage (PHP script) is loaded?
My deeper question is:
What happens exactly with "dynamic loading"? Is the sequence of events below accurate?
1) User requests for a web page that contains a PHP script that calls Java code.
2) The system loads all Java base classes (libraries).
3) The system loads the Java Virtual Machine (JVM).
4) The system loads all Java libraries needed by the PHP script.
5) The system executes the Java code.
What happens exactly with "static loading"? Is this sequence of events accurate?
0) User starts up the welcome page of a web application.
The system loads all Java base classes (libraries) AND
the Java Virtual Machine (JVM).
1) User requests for a webpage that contains a PHP script that calls Java code.
2) The system loads all Java libraries needed by the PHP script.
3) The system executes the Java code.
Regards,
Filip
Send instant messages to your online friends http://uk.messenger.yahoo.com
|
|
From: <php...@li...> - 2007-07-25 20:27:28
|
Hi,
PHP should display a clear error message. If it doesn't there's either a bug in the
bridge or in PHP. Which PHP/Java Bridge version do you use? I old C implementation or
the pure PHP implementation?
Regards,
Jost Boekemeier
__________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-07-25 20:22:53
|
Michael was right. Using ArrayList it worked. I'm tailing the apache error log and nothing appeared there with that script. With the rest of the work I've been doing with php/java bridge I ca= n see all the output there. I will try later to set the log level to 4 and will post the response here. Regards, Andr=E9s Gattinoni On 7/25/07, php...@li... < php...@li...> wrote: > > Hi, > > > And it just dies there. No error on the output nor on the logs. > > there should be some output. Can you please set the log level to 4 and > check the log of the back > end? > Please see our FAQ for details how to enable the log of the PHP/Java > Bridge back end. > > My guess is that this is a PHP issue. Since PHP version 5 PHP does no > longer report any errors to > the client. They are logged in the HTTP log or in the configured PHP log > file or in the System > log. > > > Regards, > Jost Boekemeier > > > dddd > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2007-07-25 20:17:08
|
Hi,
> And it just dies there. No error on the output nor on the logs.
there should be some output. Can you please set the log level to 4 and check the log of the back
end?
Please see our FAQ for details how to enable the log of the PHP/Java Bridge back end.
My guess is that this is a PHP issue. Since PHP version 5 PHP does no longer report any errors to
the client. They are logged in the HTTP log or in the configured PHP log file or in the System
log.
Regards,
Jost Boekemeier
dddd
|
|
From: <php...@li...> - 2007-07-25 20:11:07
|
Hi,
[please excuse the delay]
> I know the mechanism to intantiate java objects via
> java_require('any.jar'), but how call a servlet in a other tomcat
> container?
do you want to call a servlet from another web application or a different container?
The former is possible by using the RequestDispatcher, please see
http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/RequestDispatcher.html
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-07-25 20:10:12
|
If I'm not mistaken, List is an interface, not a concrete class. Hence, =
you
cannot say new List(). It seems like Vector() and ArrayList() are =
fairly
standard implementations of List, so you could try
$oList =3D new java('java.util.ArrayList');
Michael.
> -----Original Message-----
> From: php...@li... [mailto:php-
> jav...@li...] On Behalf Of =
php-java-
> bri...@li...
> Sent: Wednesday, July 25, 2007 2:53 PM
> To: php...@li...
> Subject: [Php-java-bridge-users] Problem with List object
>=20
> Hi guys, I'm having problems with a List object.
>=20
> I have the following code:
>=20
> <?php
> $mAnnouncements =3D array (
> 'Welcome.wav',
> 'CPAA.wav',
> );
> print("Array: <br />");
> print_r($mAnnouncements);
>=20
> print("<br />Creating List Object...<br />");
> $oList =3D new java('java.util.List');
> foreach ($mAnnouncements as $ann)
> {
> $oList->add($ann);
> }
> print("List: <br />");
> print_r($oList);
> print("<br />");
> for ($i =3D 0; $i < $oList->size(); $i++)
> {
> print("Value:" . $oList->get($i) . "<br />");
> }
> ?>
>=20
> When I run it I get this output:
>=20
> Array:
> Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav )
> Creating List Object...
>=20
> And it just dies there. No error on the output nor on the logs.
>=20
> I'm using php/java bridge on that box withoud any problems, working =
with
> my
> own java classes, but when I need to create this List object I get =
this
> problem.
> Any ideas? Do I need to require any file with java_require?
>=20
> Thanks in advance
>=20
> Andr=E9s Gattinoni
> =
-------------------------------------------------------------------------=
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems? Stop.
> Now Search log events and configuration files using AJAX and a =
browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2007-07-25 20:07:49
|
Hi
[please excuse the delay]
your code is a little bit unusual because it uses a generated proxy class. Looking at the
current implementation it seems that the bridge caches the generated proxies, which it shouldn't
do. But this is a minor problem.
> public class ObjPassing
> {
> public void visit( Object o)
> { System.out.println("first visit method"); }
>
> public void visit( IVisit o) // <-- i wish to run this one
> { System.out.println("second visit method"); }
> }
>
> I need to pass a php object(Obj is it's name) who implements my IVisit
> java interface, to ObjPassing, but i never manage to invoke the second
> method: the first method is always invoked.
The bridge should invoke the second method, because the closure (the dynamic proxy) implements the
IVisit interface, which makes it cheaper than the first method which should have a weight of at
least 32 (IVisit -> Object conversion)
> is it possible to call the second method? if yes, where is my fault?
Can you please set the log level to 5 or above? The bridge should display the weight and why it
has selected the wrong method. My guess is that you have loaded IVisit from a different
classloader, so that it is assignment-incompatible with IVisit used by the visit method. Do you
have two java_require() calls in your code?
Regards,
Jost Boekemeier
__________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-07-25 20:00:55
|
Hi, [please excuse the delay] > Just wondering, if there is some test case/example to integrate jsp/jsf > application with phpbb through php-java bridge. do you want to call PHP beans from the JSF framework or do you want to call managed JSF beans from PHP? We've had the former, but the code has been dropped in favor of a more general solution which uses the JSR223 API. (Our implementation was similar to Spring's "DelegatingVariableResolver" described here: http://www.springframework.org/docs/reference/webintegration.html). On the other hand accessing managed beans should be easy: ctx = FacesContext.getCurrentInstance(); ctx.getApplication().getVariableResolver().resolveVariable(ctx, name) > 1. Create an account in phpbb when user creates an account in application > through jsp and vice-versa. Do you want to create the account from JSP or JSF? In any case, what does it mean to "create an account"? Regards, Jost Boekemeier __________________________________ Wissenswertes zum Thema PC, Zubehör oder Programme. BE A BETTER INTERNET-GURU! www.yahoo.de/clever |
|
From: <php...@li...> - 2007-07-25 19:52:44
|
Hi guys, I'm having problems with a List object.
I have the following code:
<?php
$mAnnouncements =3D array (
'Welcome.wav',
'CPAA.wav',
);
print("Array: <br />");
print_r($mAnnouncements);
print("<br />Creating List Object...<br />");
$oList =3D new java('java.util.List');
foreach ($mAnnouncements as $ann)
{
$oList->add($ann);
}
print("List: <br />");
print_r($oList);
print("<br />");
for ($i =3D 0; $i < $oList->size(); $i++)
{
print("Value:" . $oList->get($i) . "<br />");
}
?>
When I run it I get this output:
Array:
Array ( [0] =3D> Welcome.wav [1] =3D> CPAA.wav )
Creating List Object...
And it just dies there. No error on the output nor on the logs.
I'm using php/java bridge on that box withoud any problems, working with my
own java classes, but when I need to create this List object I get this
problem.
Any ideas? Do I need to require any file with java_require?
Thanks in advance
Andr=E9s Gattinoni
|
|
From: <php...@li...> - 2007-07-25 17:46:04
|
Hello,
this is my first post in this thread. I install the bridge
(php-java-bridge_3.2.1a_j2ee) on Tomcat 4.1 / Java 1.5.0 / Apache 2.2 /
PHP 5.2.3
The install was a little bit difficult, but now its works fine. Thank
for the mailing-list and project homepage.
My Question.
I have a php-based cms system (typo3) and a webapplication (pure java)
it is running under tomcat. Both works and in the typo system i can
instatiate java objects. Fine! Every request goes first to the
index.php in the cms. I need a mechanism to call an servlet in the other
pure java-webapp. (i would like to track referer/parameters e.g. in this
app)
I know the mechanism to intantiate java objects via
java_require('any.jar'), but how call a servlet in a other tomcat
container?
(perhaps a beginer question)
regards joersch
|
|
From: <php...@li...> - 2007-07-24 15:59:27
|
hi to all.
first of all, i'm sorry for my bad english.. i hope you will understand me.
I was doing an experiment with php classes and java interfaces.
i have a java class:
public class ObjPassing
{
public void visit( Object o)
{ System.out.println("first visit method"); }
public void visit( IVisit o) // <-- i wish to run this one
{ System.out.println("second visit method"); }
}
I need to pass a php object(Obj is it's name) who implements my IVisit
java interface, to ObjPassing, but i never manage to invoke the second
method: the first method is always invoked.
from php i do:
$obj = new Java('ObjPassing');
$obj->visit(java_get_closure(new Obj(),null, new JavaClass("IVisit")));
is it possible to call the second method? if yes, where is my fault?
thank you
|
|
From: <php...@li...> - 2007-07-23 15:45:12
|
Hi, Just wondering, if there is some test case/example to integrate jsp/jsf application with phpbb through php-java bridge. Though, I know jsp/jsf but zero in php, so if some body could give me some suggestions/hints/pointers for such case then that will be great. I intend to install phpbb using fantastico and looking for simple integration in existing jsp/jsf application (running in tomcat 5.5 (jvm - java 5) under linux OS), something on these lines: 1. Create an account in phpbb when user creates an account in application through jsp and vice-versa. 2. Logs in one then logs-in in another and vice-versa. 3. Logs out in one then logs out in another and vice-versa. 4. When user updates profile in one (at least password) then password gets updated I another and vice-versa. I guess this should be possible through php-java bridge but wondering if anybody already has done something similar and give me some pointers/suggestions. Any help will be highly appreciated. Thanks. |
|
From: <php...@li...> - 2007-07-19 15:56:06
|
Hi Michael,
> $r = $class->getResource("my/package/config.properties"); // works, but see
interesting. Is that the correct behaviour of the DynamicClassLoader?
Please open a ticket (please use
http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233).
Martin or I will check this issue.
Regards,
Jost Boekemeier
__________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-07-19 15:50:44
|
Hi Thomas,
first of all thank you very much for the feedback.
Since version 4.1.8 the pure PHP implementation also supports INET and INET_LOCAL, see the NEWS
file.
The difference between SERVLET/SERVLET_LOCAL and INET/INET_LOCAL is that the former reads
meta-information like X_JAVABRIDGE_OVERRIDE_HOSTS and X_JAVABRIDGE_OVERRIDE_REDIRECT. This
information is used to select the fastest available channel, which is INET/INET_LOCAL on windows
and named pipes on Unix.
In theory the INET/INET_LOCAL channel should be faster, because the SERVLET* "meta" channel
requires one additional round-trip. But on modern operating systems this shouldn't be a problem.
> Why has the version to be > 5.1.2 ? Only too old, any bugs ?
Well, the functionality needed by the bridge is there, but all PHP 5 versions < 5.1.2
have serious problems. Just remove the check from Java.inc, run the "bench" test on 5.0.4 and
you'll see what I mean. :)
> Is it possible to adapt the pure PHP implementation for PHP4 ?
try/catch etc. is not available in PHP4. The binary download contains a php_java.dll for PHP4,
which could be used as follows:
// check if the PHP4 extension is loaded. Otherwise load Java.inc
if(!extension_loaded("java")) require_once("java/Java.inc");
[compiling ]
> 3) Binaries for PHP 5.2.x
Yes, this is possible. PHP 5.2 and all future versions of PHP are supported. IBM has a
tutorial which describes how to compile PHP 5 and PHP 6 on windows. Instructions how to
compile the bridge against PHP 5 or 6 on windows can be found at the end of the INSTALL document.
However, you don't need to compile the C code. It is neither faster nor does it add
additional features[1] except for JVM launching.
Regards,
Jost Boekemeier
[1] This may change in the future, although I'd prefer to add Proxy and ProxyException
interfaces directly to the PHP core.
__________________________________ Wissenswertes für Bastler und Hobby Handwerker. BE A BETTER HEIMWERKER! www.yahoo.de/clever
|
|
From: <php...@li...> - 2007-07-18 20:54:00
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 php...@li... wrote: > Hi Daran, > >>> /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to > > the C version 4.1.8 currently doesn't work in a threaded environment (I forgot to add a TSRMLS). > > Please use the pure PHP version instead. Or please use the latest stable version, which is version > 3.2.1. > > > I will reorganize the download area accordingly. > > > Regards, > Jost Boekemeier Ah yes, threads. Thanks for your help Jost! - -- Darian Anthony Patrick, ZCE, GWAS Principal, Application Development Criticode LLC (215) 240-6566 Office (866) 789-2992 Facsimile Web: http://criticode.com Email: da...@cr... JID: da...@ja... -----BEGIN PGP SIGNATURE----- iD8DBQFGnn3hKpzEXPWA4IcRAhQ4AJ9wzo53ceUeOpDf2CzeIT/bUHwX/ACbBlEk 3sIh43cuOcAy4/Sq7rFFb0o= =Ysv8 -----END PGP SIGNATURE----- |
|
From: <php...@li...> - 2007-07-18 19:37:20
|
Hello, I'm developing Simple Groupware and JavaBridge 4.1.8 is used to call the jCIFS Java library from PHP (bringing CIFS and NTLM to the PHP world). Tests are done on WinXP SP2, Sun Java 1.6.0_02. My questions: 1) pure PHP implementation: does it only support SERVLET_LOCAL / SERVLET ? (start java -jar JavaBridge.jar SERVLET_LOCAL:8080 3) Where is the difference between SERVLET and INET ? Is anyone of them faster ? I tried INET / INET_LOCAL and got: (start java -jar JavaBridge.jar INET_LOCAL:8080 3) Notice: Undefined index: content_length in H:\sgs\src\lib\java\Java.inc on line 1259 Warning: fread() [function.fread]: Length parameter must be greater than 0 in H:\sgs\src\lib\java\Java.inc on line 1259 protocol error: , Invalid document end at col 2) pure PHP implementation for PHP 5.0 and 4.x: Why has the version to be > 5.1.2 ? Only too old, any bugs ? Is it possible to adapt the pure PHP implementation for PHP4 ? 3) Binaries for PHP 5.2.x I found the "legacy" package containing binaries for older php versions, is it possible to build a new one for the latest php versions ? At least for win32, this would be a real time-saver for a lot of people. Thanks, bye Thomas |
|
From: <php...@li...> - 2007-07-18 19:34:08
|
I have an application that stores configuration in a file called
config.properties. It resides in a jar file underneath all of the package
dirs, with the rest of the class files. The class that loads the config
options cannot find this resource when run through php-java-bridge.
All access is done through a central singleton called Toolbox. I wrote some
code to circumvent the Toolbox code and try to load the resource manually,
via PHP and a separate Java application. Here's what I get:
PHP
java_require("myjar.jar");
$Toolbox = new JavaClass("my.package.Toolbox");
$toolbox = $Toolbox->getInstance();
$class = $toolbox->getClass();
$r = $class->getResource("config.properties"); // null
$r = $class->getResource("/my/package/config.properties"); // null
$r = $class->getResource("my/package/config.properties"); // works, but see
below
Java
(myjar.jar in the classpath)
Toolbox toolbox = Toolbox.getInstance();
URL r;
r = toolbox.getClass().getResource("config.properties"); // works
r = toolbox.getClass().getResource("/my/package/config.properties"); //
works
r = toolbox.getClass().getResource("my/package/config.properties"); // null
myjar.jar contains
META-INF/MANIFEST.MF
my/package/config.properties
my/package/Toolbox.class
my/package/<. other .class files .>
Based on my understanding, the Java code is exhibiting the correct behavior
in terms of which resource names work and which don't. I don't think the
my/package/config.properties should work, but if it did work for both, I
could use it. Unfortunately, this is a library which will be used both by
PHP scripts and a Java app.
Any idea what I'm missing here?
Michael.
|
|
From: <php...@li...> - 2007-07-18 18:21:32
|
Hi Daran,
> > /home/dpatrick/php/downloaded/php-java-bridge-4.1.8/java.c:118: error: too few arguments to
the C version 4.1.8 currently doesn't work in a threaded environment (I forgot to add a TSRMLS).
Please use the pure PHP version instead. Or please use the latest stable version, which is version
3.2.1.
I will reorganize the download area accordingly.
Regards,
Jost Boekemeier
dddd
|