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...> - 2009-07-03 10:46:09
|
Well, if you use php 5.3 it is indeed easier. In PHP 5.3 you can autoload
Java libraries and import Java classes like ordinary PHP classes. The
following example extends java.lang.String:
<?php java_autoload();
use java\lang\String as JString;
class String extends JString {
function toString(){
return "I am " . parent::toString();
}
function __toString() {return this->toString();}
}
echo new String("foo");
?>
=> I am foo
Regards,
Jost Boekemeier
3. Jul 2009 10:46 vorm. schrieb am <
php...@li...>:
Thank you. Now I see how it has to be done.
Although it's not as fluffy as I would have wished but I guess it will
work. :-)
Cheers,
Alexander Thomas
Am 02.07.2009 um 14:54 schrieb php...@li...
:
> You could use the visitor- or the decorator design pattern to > intercept
the > method calls fr...
|
|
From: <php...@li...> - 2009-07-03 08:45:09
|
Thank you. Now I see how it has to be done. Although it's not as fluffy as I would have wished but I guess it will work. :-) Cheers, Alexander Thomas Am 02.07.2009 um 14:54 schrieb php...@li... : > You could use the visitor- or the decorator design pattern to > intercept the > method calls from your Java class. > > It all depends on your requirements. If your java class is a data > structure > with a few methods, I would use a visitor. To override specific > methods from > the superclass I would use a decorator. > > Please see a standard text book or wikipedia.org for details. > > As far as the bridge is concerned, all you need is java_closure() to > convert > your PHP object into a Java object. After that you can apply whatever > pattern you prefer to merge the two java instances. > > Regards, > Jost Boekemeier > > 2. Jul 2009 12:52 nachm. schrieb am < > php...@li...>: > > Hi everybody, > > first of all thanks for this great piece of software that makes it > easy to use powerful Java libs in a PHP based application. That's > really awesome. > > Currently I'm working on a PDF generation using iText and I'm > surprised that it's quite easy to find my way around. But of course I > wouldn't post this if there wasn't this one thing that is not working > for me: writing a PHP class that derives from a Java class. > > Before you guys scream "RTFM!", I really tried to find this out myself > but all I could find was the FAQ file in the documentation. This > points to java_closure() and to an example in the file script_api.php > in the tests folder. > > Reading the documentation of java_closure() and the example only the > implementation of java interfaces in a PHP class is described (which > will definitely be useful for me later - I'm sure). > > So my question: can someone please explain how a PHP class can extend > a Java class? > > Any hint would be appreciated. > > Thank you very much. > > Regards, > Alexander Thomas > > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-07-02 17:02:55
|
Hi Andre,
I have noticed that PHP 5.3 final uses a backslash as a namespace operator
instead of ::, used in PHP 5.3RC1.
I have changed the META-INF/java/JavaBridge.inc java_autoload_function to
use \\ instead of :: in the CVS head, so that the following code can be used
in php 5.3:
<?php java_autoload();
use java\lang\String as JString;
echo JString("hello");
?>
This is a new php 5.3 feature, so I think my change doesn't hurt, even if I
made a terrible mistake and java_autoload() doesn't work at all anymore. But
if I didn't make a mistake, your debian port will be the first to support
php 5.3 namespaces with automatic java class loading.
BTW: I have promised to help to test under debian and to add a patch for
google app engine. Unfortunately I don't have time at the moment.
Regards,
Jost Boekemeier
2. Jul 2009 4:59 vorm. schrieb am <
php...@li...>:
Hello,
There is a new updated Debian package 5.4.4.2-2 at CVS repository.
It contains (I expect) correctly packaged Tomcat 5.5 EXPERIMENTAL
security configurations.
It is not a new bridge version, only a packaging improvement.
So who already has a 5.4.4.2 running, manually configured, does not have
to update in a rush.
I uploaded binaries, but the new SF site is still not showing them at
available files to download.
One can build Debian packages from CVS, if need the new package now.
Please, help with broad testing.
I am working in a reasonable SE Linux php-java-bridge Debian rules
packaging and hope to commit an experimental package for evaluation next
week.
Regards.
Andre Felipe Machado
http://www.techforce.com.br
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-07-02 13:22:30
|
You could use the visitor- or the decorator design pattern to intercept the method calls from your Java class. It all depends on your requirements. If your java class is a data structure with a few methods, I would use a visitor. To override specific methods from the superclass I would use a decorator. Please see a standard text book or wikipedia.org for details. As far as the bridge is concerned, all you need is java_closure() to convert your PHP object into a Java object. After that you can apply whatever pattern you prefer to merge the two java instances. Regards, Jost Boekemeier 2. Jul 2009 12:52 nachm. schrieb am < php...@li...>: Hi everybody, first of all thanks for this great piece of software that makes it easy to use powerful Java libs in a PHP based application. That's really awesome. Currently I'm working on a PDF generation using iText and I'm surprised that it's quite easy to find my way around. But of course I wouldn't post this if there wasn't this one thing that is not working for me: writing a PHP class that derives from a Java class. Before you guys scream "RTFM!", I really tried to find this out myself but all I could find was the FAQ file in the documentation. This points to java_closure() and to an example in the file script_api.php in the tests folder. Reading the documentation of java_closure() and the example only the implementation of java interfaces in a PHP class is described (which will definitely be useful for me later - I'm sure). So my question: can someone please explain how a PHP class can extend a Java class? Any hint would be appreciated. Thank you very much. Regards, Alexander Thomas ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-07-02 10:51:34
|
Hi everybody, first of all thanks for this great piece of software that makes it easy to use powerful Java libs in a PHP based application. That's really awesome. Currently I'm working on a PDF generation using iText and I'm surprised that it's quite easy to find my way around. But of course I wouldn't post this if there wasn't this one thing that is not working for me: writing a PHP class that derives from a Java class. Before you guys scream "RTFM!", I really tried to find this out myself but all I could find was the FAQ file in the documentation. This points to java_closure() and to an example in the file script_api.php in the tests folder. Reading the documentation of java_closure() and the example only the implementation of java interfaces in a PHP class is described (which will definitely be useful for me later - I'm sure). So my question: can someone please explain how a PHP class can extend a Java class? Any hint would be appreciated. Thank you very much. Regards, Alexander Thomas |
|
From: <php...@li...> - 2009-07-02 02:58:39
|
Hello, There is a new updated Debian package 5.4.4.2-2 at CVS repository. It contains (I expect) correctly packaged Tomcat 5.5 EXPERIMENTAL security configurations. It is not a new bridge version, only a packaging improvement. So who already has a 5.4.4.2 running, manually configured, does not have to update in a rush. I uploaded binaries, but the new SF site is still not showing them at available files to download. One can build Debian packages from CVS, if need the new package now. Please, help with broad testing. I am working in a reasonable SE Linux php-java-bridge Debian rules packaging and hope to commit an experimental package for evaluation next week. Regards. Andre Felipe Machado http://www.techforce.com.br |
|
From: <php...@li...> - 2009-07-01 17:41:07
|
Hi,
I think you have failed to understand the JSP example.
HELLO_SCRIPT_READER is static final to make sure that the resource is
(re-)created with the jsp.class file; the PHP code passed to
createPhpScriptReader() is always compiled to a "/..._cache_.php file" with
the JSP file.
Everything else is a simple wrapper for
requestDispatcher.include("/..._cache_.php").
Please correct your code; remove the createPhpScriptReader() call and remove
the PhpScriptReader argument from the createPhpScriptFileReader(String,
PhpScriptReader) call, e.g. use: createPhpScriptFileReader("/index.php").
Then request your PHP "/index.php" resource from the browser. I that works,
then including the resource into a local JSP or Java resource or executing
it as a JSR223 script will work as well.
Regards,
Jost Boekemeier
1. Jul 2009 5:06 nachm. schrieb am <
php...@li...>:
HI
When I try to execute the php script with ScriptEngine from java I am not
getting any response. Its hangs over there. Please let me know what is the
problem. Here is my code.
try{
Reader HELLO_SCRIPT_READER =
EngineFactory.createPhpScriptReader("<?php echo 'Hello java world!'; ?>");
ScriptEngine scriptEngine =
EngineFactory.getPhpScriptEngine(context.getServlet(),context.getServlet().getServletContext(),
request, response);
java.io.Reader readerHello =
EngineFactory.createPhpScriptFileReader(request.getServletPath()+"._cache_.php",
HELLO_SCRIPT_READER);
PrintWriter out = new PrintWriter(new BufferedWriter(new
FileWriter("C:/foo.out")));
scriptEngine.getContext().setWriter (out);
scriptEngine.eval(readerHello);
readerHello.close();
} catch (Exception e){
System.out.println(e);
}
Thanks
- Ravi -
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-07-01 15:05:21
|
HI
When I try to execute the php script with ScriptEngine from java I am not getting any response. Its hangs over there. Please let me know what is the problem. Here is my code.
try{
Reader HELLO_SCRIPT_READER = EngineFactory.createPhpScriptReader("<?php echo 'Hello java world!'; ?>");
ScriptEngine scriptEngine = EngineFactory.getPhpScriptEngine(context.getServlet(),context.getServlet().getServletContext(), request, response);
java.io.Reader readerHello = EngineFactory.createPhpScriptFileReader(request.getServletPath()+"._cache_.php", HELLO_SCRIPT_READER);
PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("C:/foo.out")));
scriptEngine.getContext().setWriter (out);
scriptEngine.eval(readerHello);
readerHello.close();
} catch (Exception e){
System.out.println(e);
}
Thanks
- Ravi -
|
|
From: <php...@li...> - 2009-06-30 18:07:50
|
I think you need to edit the php.ini to configure your php extensions. You can look up the location of the php.ini from phpinfo(). Please consult your PHP documentation for details. Support through the usual PHP support channels, please. Regards, Jost Boekemeier 30. Jun 2009 4:08 nachm. schrieb am < php...@li...>: HI I am trying to load the php_mysql.dll libraries to PJB and trying to connect. But every time when I try to connect I am getting the following exception. Can anybody help me. StandardContext[/JavaBridge]PhpCGIServlet: PHP Warning: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library Thanks - Ravi - ------------------------------------------------------------------------------ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-06-30 18:06:53
|
Hi,
PHP 5.3 now contains a module system with namespaces, symbol aliases etc.
Please see your PHP 5.3 documentation for details.
Example:
<?php java_autoload();
use java::lang::String as JString;
echo new JString("test");
?>
The separator has been changed from PHP 5.3 RC to 5.3 final. The example
uses the old :: syntax. You can also open complete environments, as in other
modern module systems, see your PHP docu for details.
Regards,
Jost Boekemeier
30. Jun 2009 4:28 nachm. schrieb am <
php...@li...>:
How can i import a class in php bridge.
How can I use this:
import java.util.Date;
and not
$system = new Java('java.lang.Date');
Like in java???
Best Regards,
--
Belchior Palma
---------------------------------------------------------------------
Tel: +55 18 9133-8043
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-06-30 14:27:57
|
How can i import a class in php bridge.
How can I use this:
import java.util.Date;
and not
$system = new Java('java.lang.Date');
Like in java???
Best Regards,
--
Belchior Palma
---------------------------------------------------------------------
Tel: +55 18 9133-8043
|
|
From: <php...@li...> - 2009-06-30 14:06:54
|
HI I am trying to load the php_mysql.dll libraries to PJB and trying to connect. But every time when I try to connect I am getting the following exception. Can anybody help me. StandardContext[/JavaBridge]PhpCGIServlet: PHP Warning: dl() [<a href='function.dl'>function.dl</a>]: Unable to load dynamic library Thanks - Ravi - |
|
From: <php...@li...> - 2009-06-22 06:01:15
|
I will be out of the office starting 06/20/2009 and will not return until 07/06/2009. I will respond to your message when I return. |
|
From: <php...@li...> - 2009-06-20 06:44:52
|
Hi, > bridge seems to be hanging... the first few calls will > work, then communication with the bridge becomes > interrupted and hangs the web server and > subsequent requests Since everybody uses the same channel w/o problems (servlet: uses inet: internally, see or faq), we need to find out what's so special with your setup and what "interrupted" and "hanging" really means. Possible causes: 1. You have migrated from 3.x to 5.x, which means that an old front end may try to communicate with the new back end. Please use the "Java.inc" shipped with the back end. You can raise the php.java.bridge.default_log_level to 4 or above to observe the communication (details in faq or from java -jar JavaBridge.jar --help) 2. Your php version cannot execute the php code from Java.inc correctly. (Unlikely if you use php php 5.2, 5.3 or php 6.x). In any case, you can debug php with strace or gdb: for i in `pidof httpd`; do strace -s 1024 -ff -p $i >$i.log 2>&1 ;done traces all "httpd" instances running php and writes the system calls to $i.log. Or, slightly easier, as it uses only one executable: strace -s 1024 -ff `which httpd` -X My guess is that you use a 3.x front end, which expects an old response from the back end. The XML protocol has been revised from ver. 3.x to 5.x to not use unnecessary round-trips anymore. Regards, Jost Boekemeier 20. Jun 2009 1:21 vorm. schrieb am < php...@li...>: >> So then the "standalone" use is no longer >recommended or supported? > > It is still supported, o... Where, in the FAQ? > Example for the standalone container: > > java -Dphp.java.bridge.default_log_level=5 -jar JavaBridge.jar > SERVLET:8080 This looks different from the previous docs, which were like: > $JAVA -server -Xmx1200m -jar $JAVA_BRIDGE_PATH INET_LOCAL:9676 3 What is the final "3" for? And INET_LOCAL vs SERVLET? Are those java parameters, or arguments interpreted by the JavaBridge.jar executable? In any case is this form acceptable? > $JAVA -server -Xmx1200m -jar $JAVA_BRIDGE_PATH INET_LOCAL:9676 3 If so, this is the form we're having trouble with. The bridge seems to be hanging... the first few calls will work, then communication with the bridge becomes interrupted and hangs the web server and subsequent requests. Any idea where to look first for errors? Nothing in the output from the Jar... Thanks, Alan ------------------------------------------------------------------------------ Are you an op... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-06-19 23:21:14
|
>> So then the "standalone" use is no longer >recommended or supported? > > It is still supported, of course. Please see our online docs for > details. Where, in the FAQ? > Example for the standalone container: > > java -Dphp.java.bridge.default_log_level=5 -jar JavaBridge.jar > SERVLET:8080 This looks different from the previous docs, which were like: > $JAVA -server -Xmx1200m -jar $JAVA_BRIDGE_PATH INET_LOCAL:9676 3 What is the final "3" for? And INET_LOCAL vs SERVLET? Are those java parameters, or arguments interpreted by the JavaBridge.jar executable? In any case is this form acceptable? > $JAVA -server -Xmx1200m -jar $JAVA_BRIDGE_PATH INET_LOCAL:9676 3 If so, this is the form we're having trouble with. The bridge seems to be hanging... the first few calls will work, then communication with the bridge becomes interrupted and hangs the web server and subsequent requests. Any idea where to look first for errors? Nothing in the output from the Jar... Thanks, Alan |
|
From: <php...@li...> - 2009-06-19 19:19:13
|
>So then the "standalone" use is no longer >recommended or supported? It is still supported, of course. Please see our online docs for details. > Ubuntu uses apt/dpkg as well. It installed fine.. May be. The question remains if it works, though. Please see the previous thread from our mailing list. Regards, Jost Boekemeier 19. Jun 2009 8:53 nachm. schrieb am < php...@li...>: > "Installation" is trivial, just download/install a servlet engine, > e.g. > http://tomcat.apache... So then the "standalone" use is no longer recommended or supported? java -jar JavaBridge.jar INET_LOCAL:9676 3 >> When setting up a new dev server (Ubuntu 8.04) we > decided to >> upgrade to > 5.4.4.2, and in... Ubuntu uses apt/dpkg as well. It installed fine... Alan ------------------------------------------------------------------------------ Are you an ope... |
|
From: <php...@li...> - 2009-06-19 18:52:56
|
> "Installation" is trivial, just download/install a servlet engine, > e.g. > http://tomcat.apache.org and copy JavaBridge.war to its autodeploy > folder. > Please see php-java-bridge.sf.net for details. So then the "standalone" use is no longer recommended or supported? java -jar JavaBridge.jar INET_LOCAL:9676 3 >> When setting up a new dev server (Ubuntu 8.04) we > decided to >> upgrade to > 5.4.4.2, and installed the .deb > > As far as I know .deb packages are for debian, not ubuntu. Ubuntu uses apt/dpkg as well. It installed fine... Alan |
|
From: <php...@li...> - 2009-06-19 18:48:19
|
Hi, "Installation" is trivial, just download/install a servlet engine, e.g. http://tomcat.apache.org and copy JavaBridge.war to its autodeploy folder. Please see php-java-bridge.sf.net for details. > When setting up a new dev server (Ubuntu 8.04) we > decided to upgrade to 5.4.4.2, and installed the .deb As far as I know .deb packages are for debian, not ubuntu. Regards, Jost Boekemeier 19. Jun 2009 8:23 nachm. schrieb am < php...@li...>: I've been using php-java-bridge for over 3 years. It has performed flawlessly, but I haven't done much to the codebase until recently. When setting up a new dev server (Ubuntu 8.04), we decided to upgrade to 5.4.4.2, and installed the .deb. Unfortunately, we are running into serious problems and frankly I am very confused about the "proper" way to run the bridge for our situation; I am hoping you can offer some advice. Our 3.x production setup is very simple; we have the java.so module in php, and we use a standalone java server on JVM 1.5.0_09: $JAVA -server -Xmx1200m -jar /path/to/JavaBridge.jar INET_LOCAL:9676 3 So, to set up on the Ubuntu box, we installed the deb package. This was pretty confusing since the docs say don't use java.so anymore but it's in the deb package. I will submit that I didn't read the .deb relnotes until just now that say "don't use the deb package". Kindof a weird thing, but OK. FWIW, from the .deb install, we did turn off the java.so and use the require 'Java.inc' method, but we had 2 problems with this: 1. It didn't work with Java 1.6; we had to use Java 1.5 (that may be due to the other jars we are running). Also, although it worked perfectly from php CLI, when run from mod_php it was very unreliable and kept crashing. You could see from the debug log that it would communicate some, but then it would just hang and become unresponsive, to the point that it somehow actually hosed up apache. So what *is* the right way to run the bridge then? Is all I need now is the "JavaBridge.jar" and just run it like I was before, but from php just include Java.inc rather than use the java.so functions? Which download should I grab to get the appropriate JavaBridge.jar? The latest binary package just has a .war file? Or am I crazy to be using the standalone jar? Please advise, I am thoroughly confused! Alan ------------------------------------------------------------------------------ Are you an open source citizen? Join us for the Open Source Bridge conference! Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250. Need another reason to go? 24-hour hacker lounge. Register today! http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-06-19 18:22:57
|
I've been using php-java-bridge for over 3 years. It has performed flawlessly, but I haven't done much to the codebase until recently. When setting up a new dev server (Ubuntu 8.04), we decided to upgrade to 5.4.4.2, and installed the .deb. Unfortunately, we are running into serious problems and frankly I am very confused about the "proper" way to run the bridge for our situation; I am hoping you can offer some advice. Our 3.x production setup is very simple; we have the java.so module in php, and we use a standalone java server on JVM 1.5.0_09: $JAVA -server -Xmx1200m -jar /path/to/JavaBridge.jar INET_LOCAL:9676 3 So, to set up on the Ubuntu box, we installed the deb package. This was pretty confusing since the docs say don't use java.so anymore but it's in the deb package. I will submit that I didn't read the .deb relnotes until just now that say "don't use the deb package". Kindof a weird thing, but OK. FWIW, from the .deb install, we did turn off the java.so and use the require 'Java.inc' method, but we had 2 problems with this: 1. It didn't work with Java 1.6; we had to use Java 1.5 (that may be due to the other jars we are running). Also, although it worked perfectly from php CLI, when run from mod_php it was very unreliable and kept crashing. You could see from the debug log that it would communicate some, but then it would just hang and become unresponsive, to the point that it somehow actually hosed up apache. So what *is* the right way to run the bridge then? Is all I need now is the "JavaBridge.jar" and just run it like I was before, but from php just include Java.inc rather than use the java.so functions? Which download should I grab to get the appropriate JavaBridge.jar? The latest binary package just has a .war file? Or am I crazy to be using the standalone jar? Please advise, I am thoroughly confused! Alan |
|
From: <php...@li...> - 2009-06-17 20:19:31
|
Yep, that did it. I installed it from tomcat.apache.org and everything worked immediately. Only my development machine is running debian (ubuntu) so I'll have to figure this out for gentoo and red hat as well, but I think that'll be easy enough, I really just needed a proof of concept. thanks On Tue, Jun 16, 2009 at 12:27 AM, <php...@li...> wrote: > Hi, > >> and installed Tomcat running as a different service > > Have you downloaded/installed tomcat from http://tomcat.apache.org or do > you use something else? If your tomcat cannot run standard java webapps, > then there is something wrong with tomcat or your OS. > >> Perhaps I'm doing this entirely wrong > > Not entirely, no. I think you use Debian which -- how should I say it? -- > packages/views sometimes conflict with the reality. :) If you install Debian > Tomcat, it runs from a switch user script w/o setting the environment > correctly. System.getProperty("user") displays "root" for example, even > though the real user is tomcat, etc. > > If you want to use the Debian OS, please either use Andrè's debian package > and follow the instructiones therein or else use a standard Tomcat and > follow the stanard install instructions. > > Regards, > Jost Boekemeier > > > 16. Jun 2009 1:26 vorm. schrieb am < > php...@li...>: > > Perhaps I'm doing this entirely wrong, so I'll explain exactly what I > can perceive. > > I have apache running with PHP (port 80), and installed Tomcat running > as a different service (port 8080). > > I add the JavaBridge.war file to the autodeployment folder, navigate > to localhost:8080/JavaBridge, and it gives me the error about > PhpCgiServlet. I don't have access to the computer running it at this > moment, otherwise I would copy and paste the exact error. > > If I include http://localhost:8080/JavaBridge/java/Java.inc from PHP, > that works, but as soon as I do anything (for example, running the > example PHP scripts) it tells me the Java http server had an error and > shows the 500 error Tomcat threw (same as when I go to > localhost:8080/JavaBridge directly) > > Thanks > > On Sat, Jun 13, 2009 at 5:07 PM, > > <php...@li...> wrote: > Hi, > >>I'm using > Apache/PHP, > > You won't g... > >> > ------------------------------------------------------------------------------ >> Crystal Reports -... > >> php...@li... > >> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ----------------------------... > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-06-16 07:28:02
|
Hi, > and installed Tomcat running as a different service Have you downloaded/installed tomcat from http://tomcat.apache.org or do you use something else? If your tomcat cannot run standard java webapps, then there is something wrong with tomcat or your OS. > Perhaps I'm doing this entirely wrong Not entirely, no. I think you use Debian which -- how should I say it? -- packages/views sometimes conflict with the reality. :) If you install Debian Tomcat, it runs from a switch user script w/o setting the environment correctly. System.getProperty("user") displays "root" for example, even though the real user is tomcat, etc. If you want to use the Debian OS, please either use Andrè's debian package and follow the instructiones therein or else use a standard Tomcat and follow the stanard install instructions. Regards, Jost Boekemeier 16. Jun 2009 1:26 vorm. schrieb am < php...@li...>: Perhaps I'm doing this entirely wrong, so I'll explain exactly what I can perceive. I have apache running with PHP (port 80), and installed Tomcat running as a different service (port 8080). I add the JavaBridge.war file to the autodeployment folder, navigate to localhost:8080/JavaBridge, and it gives me the error about PhpCgiServlet. I don't have access to the computer running it at this moment, otherwise I would copy and paste the exact error. If I include http://localhost:8080/JavaBridge/java/Java.inc from PHP, that works, but as soon as I do anything (for example, running the example PHP scripts) it tells me the Java http server had an error and shows the 500 error Tomcat threw (same as when I go to localhost:8080/JavaBridge directly) Thanks On Sat, Jun 13, 2009 at 5:07 PM, <php...@li...> wrote: > Hi, > >>I'm using Apache/PHP, > > You won't g... > ------------------------------------------------------------------------------ > Crystal Reports -... > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ----------------------------... php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-06-15 23:25:54
|
Perhaps I'm doing this entirely wrong, so I'll explain exactly what I can perceive. I have apache running with PHP (port 80), and installed Tomcat running as a different service (port 8080). I add the JavaBridge.war file to the autodeployment folder, navigate to localhost:8080/JavaBridge, and it gives me the error about PhpCgiServlet. I don't have access to the computer running it at this moment, otherwise I would copy and paste the exact error. If I include http://localhost:8080/JavaBridge/java/Java.inc from PHP, that works, but as soon as I do anything (for example, running the example PHP scripts) it tells me the Java http server had an error and shows the 500 error Tomcat threw (same as when I go to localhost:8080/JavaBridge directly) Thanks On Sat, Jun 13, 2009 at 5:07 PM, <php...@li...> wrote: > Hi, > >>I'm using Apache/PHP, > > You won't get this error in this case. > >> the example PHP code just displays the error >> from Tomcat > > I don't understand. Which error message do you get from the PhpJavaServlet? > > Regards, > Jost Boekemeier > > 13. Jun 2009 6:59 nachm. schrieb am < > php...@li...>: > > I'm using Apache/PHP, but I haven't even got that far yet; the example > PHP code just displays the error from Tomcat, so I think I'm stuck on > the deployment stage. > > Previously, the standalone/debug web server was being used but I got > the impression this was not a good permanent solution. > > On Sat, Jun 13, 2009 at 1:11 AM, < > php...@li...> wrote: > Hi, > > Ple... > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-06-13 17:07:46
|
Hi, >I'm using Apache/PHP, You won't get this error in this case. > the example PHP code just displays the error > from Tomcat I don't understand. Which error message do you get from the PhpJavaServlet? Regards, Jost Boekemeier 13. Jun 2009 6:59 nachm. schrieb am < php...@li...>: I'm using Apache/PHP, but I haven't even got that far yet; the example PHP code just displays the error from Tomcat, so I think I'm stuck on the deployment stage. Previously, the standalone/debug web server was being used but I got the impression this was not a good permanent solution. On Sat, Jun 13, 2009 at 1:11 AM, < php...@li...> wrote: > Hi, > > Ple... |
|
From: <php...@li...> - 2009-06-13 16:58:53
|
I'm using Apache/PHP, but I haven't even got that far yet; the example PHP code just displays the error from Tomcat, so I think I'm stuck on the deployment stage. Previously, the standalone/debug web server was being used but I got the impression this was not a good permanent solution. On Sat, Jun 13, 2009 at 1:11 AM, <php...@li...> wrote: > Hi, > > Please either use Microsoft IIS/PHP or Apache/PHP as the PHP front end or > please see our FAQ how to run php fastcgi within a security restricted > servlet/jee container. > > Regards, > Jost Boekemeier > > 12. Jun 2009 10:06 nachm. schrieb am < > php...@li...>: > > I've followed the posted instructions and I have Tomcat running. When > I deploy the JavaBridge.war servlet and go to > localhost:8080/JavaBridge I get "Servlet PhpCGIServlet is not > available". > > What am I doing wrong? > > Thanks > > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ------------------------------------------------------------------------------ > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensing option that enables unlimited > royalty-free distribution of the report engine for externally facing > server and web deployment. > http://p.sf.net/sfu/businessobjects > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > |
|
From: <php...@li...> - 2009-06-13 08:12:03
|
Hi, Please either use Microsoft IIS/PHP or Apache/PHP as the PHP front end or please see our FAQ how to run php fastcgi within a security restricted servlet/jee container. Regards, Jost Boekemeier 12. Jun 2009 10:06 nachm. schrieb am < php...@li...>: I've followed the posted instructions and I have Tomcat running. When I deploy the JavaBridge.war servlet and go to localhost:8080/JavaBridge I get "Servlet PhpCGIServlet is not available". What am I doing wrong? Thanks ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |