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-04-08 08:27:52
|
Okay, now we are at something.
It seems that Java.inc could not be found. Isn't it possible to copy the
java\Java.inc to your web application and require() it from there?
Another possibility is to copy all the code from Java.inc directly into your
hello world script.
Something like
<?php our Java.inc code ...?>
<?php
Your hello world php code
?>
BTW: Java.inc is distributed under the MIT license, so you can do with the
code whatever you want. We will add such a notice to Java.inc in one of the
next releases.
Regards,
Jost Boekemeier
--
Apr 8, 2009 10:10 vorm. schrieb am <
php...@li...>:
test.php:
escription The server encountered an internal error () that prevented it
from fulfilling this request.exception javax.servlet.ServletException:
java.lang.RuntimeException: PHP Warning: require_once(java/Java.inc) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'java/Java.inc' (include_path='.;C:\php5\pear') in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:397)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause java.lang.RuntimeException: PHP Warning:
require_once(java/Java.inc) [<a
href='function.require-once'>function.require-once</a>]: failed to open
stream: No such file or directory in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
PHP Fatal error: require_once() [<a
href='function.require'>function.require</a>]: Failed opening required
'java/Java.inc' (include_path='.;C:\php5\pear') in
C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on
line 1
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:478)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:373)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:381)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:363)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache
Tomcat/6.0.18 logs.Apache Tomcat/6.0.18
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-08 08:26:42
|
Is the code false?
|
|
From: <php...@li...> - 2009-04-08 08:10:01
|
test.php:
escription The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: java.lang.RuntimeException: PHP Warning: require_once(java/Java.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on line 1
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'java/Java.inc' (include_path='.;C:\php5\pear') in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on line 1
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:397)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause java.lang.RuntimeException: PHP Warning: require_once(java/Java.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on line 1
PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'java/Java.inc' (include_path='.;C:\php5\pear') in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\test.php on line 1
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:478)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:373)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:381)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:363)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.Apache Tomcat/6.0.18
|
|
From: <php...@li...> - 2009-04-08 07:35:54
|
I use Windows XP and Tomcat.
HTTP Status 404 - /JavaBridgeTemplate544/test.phptype Status reportmessage /JavaBridgeTemplate544/test.phpdescription The requested resource (/JavaBridgeTemplate544/test.php) is not available.Apache Tomcat/6.0.18
|
|
From: <php...@li...> - 2009-04-08 07:24:48
|
Which operating system and which back end do you use? Which response do you get from http://127.0.0.1:8081/JavaBridgeTemplate544/test.php Which error messages do you see in the back end log? Regards, Jost Boekemeier -- Apr 8, 2009 9:03 vorm. schrieb am < php...@li...>: Hello, I am sorry for too many Questiens. I was going to start with all the steps which you described yesterday and .... I don't believe it, but "index.php" is not running now. It was ok yesterday...I am confused. What can be the cause of it??? Many thanks in advance! Regards Katharina ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-08 07:08:55
|
Every time I get such an error message:
The requested resource (/index.php) is not available.
|
|
From: <php...@li...> - 2009-04-08 07:03:20
|
Hello,
I am sorry for too many Questiens. I was going to start with all the steps which you described yesterday and .... I don't believe it, but "index.php" is not running now. It was ok yesterday...I am confused. What can be the cause of it???
Many thanks in advance!
Regards
Katharina
|
|
From: <php...@li...> - 2009-04-07 14:19:10
|
my bad. Java.inc can be stored in any directory, as long as it is accessible to the running php script. Regards, Jost Boekemeier -- Apr 7, 2009 4:10 nachm. schrieb am < php...@li...>: Maybe I did something wrong in eclipse: java.inc is in the folder WebContent!? ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users |
|
From: <php...@li...> - 2009-04-07 14:17:24
|
I guess this was a misunderstanding.
If you want to create your own we app, please start with the
JavaBridgeTemplate.war. It contains a test.php script which should work
immediately.
Next you can copy your libraries to WEB-INF/lib an use them from your
extended test.php script.
The third step is to move your test.php script to apache or to the console
and invoke it from there.
In any case, error messages go to the tomcat error log.
Which error message do you see in the log?
Regards,
Jost Boekemeier
--
Apr 7, 2009 4:03 nachm. schrieb am <
php...@li...>:
Well,
I did not find SERVLET 8081 (I need it) , and than I tryed to change my php
code in the following way:
<?php require("http://localhost:8081/HelloWorldWebApp/META-INF/java/Java.inc
");
echo java("java.lang.System")->getProperties();
?>
Is it false? Please help me. I want to get this application started.
Regards
Katharina
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-07 14:08:43
|
Maybe I did something wrong in eclipse: java.inc is in the folder WebContent!?
|
|
From: <php...@li...> - 2009-04-07 14:03:06
|
Well,
I did not find SERVLET 8081 (I need it) , and than I tryed to change my php code in the following way:
<?php require("http://localhost:8081/HelloWorldWebApp/META-INF/java/Java.inc");
echo java("java.lang.System")->getProperties();
?>
Is it false? Please help me. I want to get this application started.
Regards
Katharina
|
|
From: <php...@li...> - 2009-04-07 13:47:59
|
Thank you very much for your answer. Now I am trying to do what you have written, but I get such an errow message:
HTTP Status 500 - type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception javax.servlet.ServletException: java.lang.RuntimeException: PHP Warning: require(Java.inc) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\helloworld.php on line 1
PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'Java.inc' (include_path='.;C:\php5\pear') in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\helloworld.php on line 1
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:397)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause java.lang.RuntimeException: PHP Warning: require(Java.inc) [<a href='function.require'>function.require</a>]: failed to open stream: No such file or directory in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\helloworld.php on line 1
PHP Fatal error: require() [<a href='function.require'>function.require</a>]: Failed opening required 'Java.inc' (include_path='.;C:\php5\pear') in C:\Development\apache-tomcat-6.0.18\webapps\HelloWorldWebApp\helloworld.php on line 1
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.parseBody(FastCGIServlet.java:478)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.doExecute(FastCGIServlet.java:373)
php.java.servlet.fastcgi.FastCGIServlet$CGIRunner.execute(FastCGIServlet.java:381)
php.java.servlet.CGIServlet.handle(CGIServlet.java:399)
php.java.servlet.PhpCGIServlet.handle(PhpCGIServlet.java:363)
php.java.servlet.CGIServlet.doGet(CGIServlet.java:469)
javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.18 logs.
Apache Tomcat/6.0.18
The problem is that I can't find servlet 8080 or 8081 (what I need) on the list.
|
|
From: <php...@li...> - 2009-04-07 12:58:08
|
Hi,
Just double-click on JavaBridge.jar (or type java -jar JavaBridge.jar) and
select SERVLET:8080.
Then drag/drop Java.inc to your eclipse project and use the following php
code to test:
<?php require("Java.inc");
echo java("java.lang.System")->getProperties();
?>
Please do not modify your php.ini unless necessary.
In case the back end is running on another computer/port within your
intranet, fetch Java.inc from this computer/port using
require("http://.../Java.inc").
Only then you need to set the allow_url_include in your php.ini.
Regards,
Jost Boekemeier
--
Apr 7, 2009 2:47 nachm. schrieb am <
php...@li...>:
Hi,
do I need to change anything in
php.ini:
;; -*- mode: Scheme; tab-width:4
-*-
;; A simple
php.ini
;; extension_dir is this "cgi"
directory
extension_dir=.
;; include php libraries from these
directories
include_path=.:/usr/share/pear
Thank you in
advance!
Regards,
Katharina
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-07 12:46:41
|
Hi,
do I need to change anything in
php.ini:
;; -*- mode: Scheme; tab-width:4
-*-
;; A simple
php.ini
;; extension_dir is this "cgi"
directory
extension_dir=.
;; include php libraries from these
directories
include_path=.:/usr/share/pear
Thank you in
advance!
Regards,
Katharina
|
|
From: <php...@li...> - 2009-04-07 12:42:17
|
Hi,
I am new to pjb. I can't get my application started. I don't know exactly what my problem is.
my Java-code (eclipse):
public class HalloWelt {
String hw = "Hallo Welt";
public String getHalloWelt() {
return hw;
}
}
my php code:<?php
require_once("META-INF/java/Java.inc");
java_require("./HalloWelt.jar");
$myObj = new Java('Hallo Welt');
// display Hello World
echo (String) $myObj->getHalloWelt();
?>
I have "helloworld.php",META-INF (Java) and WEB-INF (cgi, lib,web.xml and HalloWelt.jar) in the folder "HelloWorldWebApp" .
I try to get this application started http://localhost:8081/HelloWorldWebApp/helloworld.php
but it does not work.
Have I done anything wrong? Please give me some advice!
Many thanks in advance!
Regards
Katharina
|
|
From: <php...@li...> - 2009-04-03 09:34:00
|
Hi, I should say something about the NoClassDefFoundError "javax.script.ScriptEngine". This bug is caused by a serious bug in Sun's Java platform. I'd say that this bug causes 60% of all support requests. It is impossible to detect, and even a simple file system copy operation may trigger this bug. To solve this problem, please remove all files which export the feature and then install all required dependencies of the feature which has requested the failing feature (I should say "component", but Java doesnt support components). BTW: There was a proposal for a SML-type module system based on generics. But since Java doesn't support generics on byte code level (Java's generics are good for suns marketing dept. but useless otherwise), this would be a major change. Regards, Jost Boekemeier -- Apr 2, 2009 5:13 nachm. schrieb am "Jost Bekemeier" < jos...@go...>: Hi, please take a look at the exception again. It is a NoSuchProcedureException, not a NoSuchMethodException. This means that a Java procedure with that name doesnt exist. The other failure is caused by a missing context listener class from some other web app. Regards, Jost Boekemeier Apr 2, 2009 4:43 nachm. schrieb am < php...@li...>: Hi Jost, Thank you for the swift reply. Both apache and tomcat servers are definitely up and running, I'm actually running it on my local machine. I have checked my tomcat server.xml config file and it seems as tho I'm not using AJP at all. That section is commented out. I did try to telnet to the webserver and it was accepting empty PUT commands for the resource /HelloWorldWebApp/ , but not for the .phpjavabridge resource. For this I code the status code 403. That's when I remembered I didn't put the servlet definitions in my web.xml. So I changed my web.xml to look like; <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>HelloWorldWebApp</display-name> <!-- PHP Servlet: back-end for Apache or IIS --> <servlet> <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> <!-- Allow non-local PHP clients. Default is Off. --> <!-- Leave this off if your server is connected to the internet. --> <!-- <init-param> <param-name>promiscuous</param-name> <param-value>On</param-value> </init-param> --> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>PhpJavaServlet</servlet-name> <url-pattern>*.phpjavabridge</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> However in my catalina.out log file I get the following error on startup; ERROR - Exception sending context initialized event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException Even with this however I can get JVM system info from my php scripts; $SystemClazz = Java("java.lang.System"); echo $SystemClazz->getProperties(); But calling my own defined classes I get the following error; Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:HelloWorld]]->getMessage. Cause: php.java.bridge.NoSuchProcedureException: static getMessage() The method and class are definitely there, contained in the WEB-INF/classes directory of my webapp. One last thing. Looking at the javabridge template I also added the following to my web.xml; <!-- support for J2EE cluster --> <distributable/> <!-- Override the define ("JAVA_HOSTS", "127.0.0.1:8080"); --> <!-- setting from your PHP script, Config.inc or Java.inc or --> <!-- JavaProxy.php, so that PHP connects back to the current VM. --> <context-param> <param-name>override_hosts</param-name> <param-value>On</param-value> </context-param> <!-- Attach the JSR223 script factory to the servlet context --> <listener> <listener-class>php.java.servlet.ContextLoaderListener</listener-class> </listener> However when I do this, the application simply fails to load and I cannot even retrieve system info. I get the following error message; [2009-04-02 15:05:59,978] ERROR - Error listenerStart [2009-04-02 15:05:59,978] ERROR - Context [/JavaBridge] startup failed due to previous errors [2009-04-02 15:05:59,979] ERROR - Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException ... Incidentally when I attempt to simply place the JavaBridgeTemplate.war into my webapps directory I have the same issue. Any ideas? I am running tomcat 5.5.25. Thank You On 2/4/09 13:03, "php...@li..." <php...@li...> wrote: > Hi, > > the php-servlet.jar is missing in t... > ***** This Email has been scanned for Viruses and SPAM by Blackspider > Mailcontrol. ***** > Click > https://www.mailcontrol.com/sr/7WmkR8Jsg7XTndxI!oX7UpRUG+IHZ5e6oz7AiS!Lx!8sRuw > rsLuNdtdxow7SW0jL2j!a2kADeZ62eN6FcXjHgg== to report this email as spam. -- Jaz Chana Integration Specialist Lean Practitioner Direct Dial: 0151 290 5917 Email: jaz.chana@cdm... ------------------------------------------------------------------------------ _____________________... |
|
From: <php...@li...> - 2009-04-02 15:13:10
|
Hi, please take a look at the exception again. It is a NoSuchProcedureException, not a NoSuchMethodException. This means that a Java procedure with that name doesnt exist. The other failure is caused by a missing context listener class from some other web app. Regards, Jost Boekemeier Apr 2, 2009 4:43 nachm. schrieb am < php...@li...>: Hi Jost, Thank you for the swift reply. Both apache and tomcat servers are definitely up and running, I'm actually running it on my local machine. I have checked my tomcat server.xml config file and it seems as tho I'm not using AJP at all. That section is commented out. I did try to telnet to the webserver and it was accepting empty PUT commands for the resource /HelloWorldWebApp/ , but not for the .phpjavabridge resource. For this I code the status code 403. That's when I remembered I didn't put the servlet definitions in my web.xml. So I changed my web.xml to look like; <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>HelloWorldWebApp</display-name> <!-- PHP Servlet: back-end for Apache or IIS --> <servlet> <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> <!-- Allow non-local PHP clients. Default is Off. --> <!-- Leave this off if your server is connected to the internet. --> <!-- <init-param> <param-name>promiscuous</param-name> <param-value>On</param-value> </init-param> --> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>PhpJavaServlet</servlet-name> <url-pattern>*.phpjavabridge</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> However in my catalina.out log file I get the following error on startup; ERROR - Exception sending context initialized event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException Even with this however I can get JVM system info from my php scripts; $SystemClazz = Java("java.lang.System"); echo $SystemClazz->getProperties(); But calling my own defined classes I get the following error; Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:HelloWorld]]->getMessage. Cause: php.java.bridge.NoSuchProcedureException: static getMessage() The method and class are definitely there, contained in the WEB-INF/classes directory of my webapp. One last thing. Looking at the javabridge template I also added the following to my web.xml; <!-- support for J2EE cluster --> <distributable/> <!-- Override the define ("JAVA_HOSTS", "127.0.0.1:8080"); --> <!-- setting from your PHP script, Config.inc or Java.inc or --> <!-- JavaProxy.php, so that PHP connects back to the current VM. --> <context-param> <param-name>override_hosts</param-name> <param-value>On</param-value> </context-param> <!-- Attach the JSR223 script factory to the servlet context --> <listener> <listener-class>php.java.servlet.ContextLoaderListener</listener-class> </listener> However when I do this, the application simply fails to load and I cannot even retrieve system info. I get the following error message; [2009-04-02 15:05:59,978] ERROR - Error listenerStart [2009-04-02 15:05:59,978] ERROR - Context [/JavaBridge] startup failed due to previous errors [2009-04-02 15:05:59,979] ERROR - Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException ... Incidentally when I attempt to simply place the JavaBridgeTemplate.war into my webapps directory I have the same issue. Any ideas? I am running tomcat 5.5.25. Thank You On 2/4/09 13:03, "php...@li..." <php...@li...> wrote: > Hi, > > the php-servlet.jar is missing in t... > ***** This Email has been scanned for Viruses and SPAM by Blackspider > Mailcontrol. ***** > Click > https://www.mailcontrol.com/sr/7WmkR8Jsg7XTndxI!oX7UpRUG+IHZ5e6oz7AiS!Lx!8sRuw > rsLuNdtdxow7SW0jL2j!a2kADeZ62eN6FcXjHgg== to report this email as spam. -- Jaz Chana Integration Specialist Lean Practitioner Direct Dial: 0151 290 5917 Email: jaz.chana@cdm... ------------------------------------------------------------------------------ _____________________... |
|
From: <php...@li...> - 2009-04-02 14:41:19
|
Hi Jost, Thank you for the swift reply. Both apache and tomcat servers are definitely up and running, I'm actually running it on my local machine. I have checked my tomcat server.xml config file and it seems as tho I'm not using AJP at all. That section is commented out. I did try to telnet to the webserver and it was accepting empty PUT commands for the resource /HelloWorldWebApp/ , but not for the .phpjavabridge resource. For this I code the status code 403. That's when I remembered I didn't put the servlet definitions in my web.xml. So I changed my web.xml to look like; <?xml version="1.0" encoding="UTF-8"?> <web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <display-name>HelloWorldWebApp</display-name> <!-- PHP Servlet: back-end for Apache or IIS --> <servlet> <servlet-name>PhpJavaServlet</servlet-name> <servlet-class>php.java.servlet.PhpJavaServlet</servlet-class> <!-- Allow non-local PHP clients. Default is Off. --> <!-- Leave this off if your server is connected to the internet. --> <!-- <init-param> <param-name>promiscuous</param-name> <param-value>On</param-value> </init-param> --> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>PhpJavaServlet</servlet-name> <url-pattern>*.phpjavabridge</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.jsp</welcome-file> <welcome-file>default.html</welcome-file> <welcome-file>default.htm</welcome-file> <welcome-file>default.jsp</welcome-file> </welcome-file-list> </web-app> However in my catalina.out log file I get the following error on startup; ERROR - Exception sending context initialized event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException Even with this however I can get JVM system info from my php scripts; $SystemClazz = Java("java.lang.System"); echo $SystemClazz->getProperties(); But calling my own defined classes I get the following error; Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[c:HelloWorld]]->getMessage. Cause: php.java.bridge.NoSuchProcedureException: static getMessage() The method and class are definitely there, contained in the WEB-INF/classes directory of my webapp. One last thing. Looking at the javabridge template I also added the following to my web.xml; <!-- support for J2EE cluster --> <distributable/> <!-- Override the define ("JAVA_HOSTS", "127.0.0.1:8080"); --> <!-- setting from your PHP script, Config.inc or Java.inc or --> <!-- JavaProxy.php, so that PHP connects back to the current VM. --> <context-param> <param-name>override_hosts</param-name> <param-value>On</param-value> </context-param> <!-- Attach the JSR223 script factory to the servlet context --> <listener> <listener-class>php.java.servlet.ContextLoaderListener</listener-class> </listener> However when I do this, the application simply fails to load and I cannot even retrieve system info. I get the following error message; [2009-04-02 15:05:59,978] ERROR - Error listenerStart [2009-04-02 15:05:59,978] ERROR - Context [/JavaBridge] startup failed due to previous errors [2009-04-02 15:05:59,979] ERROR - Exception sending context destroyed event to listener instance of class php.java.servlet.ContextLoaderListener java.lang.NoClassDefFoundError: javax/script/ScriptException ... Incidentally when I attempt to simply place the JavaBridgeTemplate.war into my webapps directory I have the same issue. Any ideas? I am running tomcat 5.5.25. Thank You On 2/4/09 13:03, "php...@li..." <php...@li...> wrote: > Hi, > > the php-servlet.jar is missing in the lib directory, please see the > JavaBridgeTemplate.war from the binary download as an example. > > However, the error message may mean that request.getServerPort() is lying, > this usually happens if mod_jk or AJP is installed but not yet configured, > see our last FAQ entry. > > The back end log is written to the standard tomcat log. > > Assuming that you know the http protocol, you can check the back end by > telnet'ing to 8080 and sending an empty PUT request: > > telnet localhost 8080 > PUT /HelloWorldWebApp/.phpjavabridge HTTP/1.0 > 2xenter > > Should return: http 200 Ok > > If not, your web app is not running. The reason should be in the tomcat log. > > Regards, > Jost Boekemeier > > Apr 2, 2009 1:29 nachm. schrieb am < > php...@li...>: > > Hi Guys, > > Just started using the bridge, wonderful product. I have successfully > managed to connect to my java app standalone, however I am experiencing > problems in getting a web app example up and running. All I'm trying to do > is call a java method from my php script, so I'm not interesting in running > php in a vm. If I understand correct, all I need to do is make the Java.inc > file available to the calling php script, place JavaProxy.php and > JavaBridge.jar in my classpath and the class files of whatever java app I'm > calling. > > > This is what the directory structure for the web app looks like; > > HelloWorldWebApp > | > |-WEB-INF > |-classes > |-lib > |-JavaBridge.jar > |-HelloWorld.jar > |-web.xml > |-META-INF > |-java > |-Java.inc > |-JavaProxy.php > > Now I can access my Java.inc file in my browser with the following url; > > http://localhost:8080/HelloWorldWebApp/java/Java.inc > > And my php looks like; > > <?php require_once("http://localhost:8080/HelloWorldWebApp/java/Java.inc"); > > $myClass = new java("test.HelloWorldTest"); > echo $myClass->getMessage(); > ?> > > Now everything seems fine to me, but I run the php script I get the > following error; > > "protocol error: > HTTP Status 403 - > > type Status report > > message > > description Access to the specified resource () has been forbidden. > Apache Tomcat/5.5.25 > . Check the back end log for details. " > > Now firstly why could this be happening and secondly how do I check the back > end log? > > I have set recursive permissions on that directory to allow access to all > the files and folders, but I still get the error. > > Any ideas? > -- > > Jaz Chana > Integration Specialist > Lean Practitioner > > Direct Dial: 0151 290 5917 > Email: jaz...@cd... > > Web: www.cdms.co.uk <http://www.cdms.co.uk/> > > > > ***************************************************************************** > > This email and its attachments are confidential to the intended recipient. > If this has come to you in error, please notify the sender immediately and > delete this email from your system. You must take no action based on this > email, nor must you copy or disclose it or any part of its contents to any > person or organisation. Please note that email communications may be > monitored. The registered office of CDMS Limited is First Floor, Skyways > House, Speke Road, Speke, Liverpool, L70 1AB, registered in England number > 00406869. > > ***************************************************************************** > > ------------------------------------------------------------------------------ > _______________________________________________ > 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 > > > ***** This Email has been scanned for Viruses and SPAM by Blackspider > Mailcontrol. ***** > Click > https://www.mailcontrol.com/sr/7WmkR8Jsg7XTndxI!oX7UpRUG+IHZ5e6oz7AiS!Lx!8sRuw > rsLuNdtdxow7SW0jL2j!a2kADeZ62eN6FcXjHgg== to report this email as spam. -- Jaz Chana Integration Specialist Lean Practitioner Direct Dial: 0151 290 5917 Email: jaz...@cd... Web: www.cdms.co.uk <http://www.cdms.co.uk/> |
|
From: <php...@li...> - 2009-04-02 12:03:52
|
Hi,
the php-servlet.jar is missing in the lib directory, please see the
JavaBridgeTemplate.war from the binary download as an example.
However, the error message may mean that request.getServerPort() is lying,
this usually happens if mod_jk or AJP is installed but not yet configured,
see our last FAQ entry.
The back end log is written to the standard tomcat log.
Assuming that you know the http protocol, you can check the back end by
telnet'ing to 8080 and sending an empty PUT request:
telnet localhost 8080
PUT /HelloWorldWebApp/.phpjavabridge HTTP/1.0
2xenter
Should return: http 200 Ok
If not, your web app is not running. The reason should be in the tomcat log.
Regards,
Jost Boekemeier
Apr 2, 2009 1:29 nachm. schrieb am <
php...@li...>:
Hi Guys,
Just started using the bridge, wonderful product. I have successfully
managed to connect to my java app standalone, however I am experiencing
problems in getting a web app example up and running. All I'm trying to do
is call a java method from my php script, so I'm not interesting in running
php in a vm. If I understand correct, all I need to do is make the Java.inc
file available to the calling php script, place JavaProxy.php and
JavaBridge.jar in my classpath and the class files of whatever java app I'm
calling.
This is what the directory structure for the web app looks like;
HelloWorldWebApp
|
|-WEB-INF
|-classes
|-lib
|-JavaBridge.jar
|-HelloWorld.jar
|-web.xml
|-META-INF
|-java
|-Java.inc
|-JavaProxy.php
Now I can access my Java.inc file in my browser with the following url;
http://localhost:8080/HelloWorldWebApp/java/Java.inc
And my php looks like;
<?php require_once("http://localhost:8080/HelloWorldWebApp/java/Java.inc");
$myClass = new java("test.HelloWorldTest");
echo $myClass->getMessage();
?>
Now everything seems fine to me, but I run the php script I get the
following error;
"protocol error:
HTTP Status 403 -
type Status report
message
description Access to the specified resource () has been forbidden.
Apache Tomcat/5.5.25
. Check the back end log for details. "
Now firstly why could this be happening and secondly how do I check the back
end log?
I have set recursive permissions on that directory to allow access to all
the files and folders, but I still get the error.
Any ideas?
--
Jaz Chana
Integration Specialist
Lean Practitioner
Direct Dial: 0151 290 5917
Email: jaz...@cd...
Web: www.cdms.co.uk <http://www.cdms.co.uk/>
*****************************************************************************
This email and its attachments are confidential to the intended recipient.
If this has come to you in error, please notify the sender immediately and
delete this email from your system. You must take no action based on this
email, nor must you copy or disclose it or any part of its contents to any
person or organisation. Please note that email communications may be
monitored. The registered office of CDMS Limited is First Floor, Skyways
House, Speke Road, Speke, Liverpool, L70 1AB, registered in England number
00406869.
*****************************************************************************
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|
|
From: <php...@li...> - 2009-04-02 11:28:18
|
Hi Guys,
Just started using the bridge, wonderful product. I have successfully
managed to connect to my java app standalone, however I am experiencing
problems in getting a web app example up and running. All I'm trying to do
is call a java method from my php script, so I'm not interesting in running
php in a vm. If I understand correct, all I need to do is make the Java.inc
file available to the calling php script, place JavaProxy.php and
JavaBridge.jar in my classpath and the class files of whatever java app I'm
calling.
This is what the directory structure for the web app looks like;
HelloWorldWebApp
|
|-WEB-INF
|-classes
|-lib
|-JavaBridge.jar
|-HelloWorld.jar
|-web.xml
|-META-INF
|-java
|-Java.inc
|-JavaProxy.php
Now I can access my Java.inc file in my browser with the following url;
http://localhost:8080/HelloWorldWebApp/java/Java.inc
And my php looks like;
<?php require_once("http://localhost:8080/HelloWorldWebApp/java/Java.inc");
$myClass = new java("test.HelloWorldTest");
echo $myClass->getMessage();
?>
Now everything seems fine to me, but I run the php script I get the
following error;
"protocol error:
HTTP Status 403 -
type Status report
message
description Access to the specified resource () has been forbidden.
Apache Tomcat/5.5.25
. Check the back end log for details. "
Now firstly why could this be happening and secondly how do I check the back
end log?
I have set recursive permissions on that directory to allow access to all
the files and folders, but I still get the error.
Any ideas?
--
Jaz Chana
Integration Specialist
Lean Practitioner
Direct Dial: 0151 290 5917
Email: jaz...@cd...
Web: www.cdms.co.uk <http://www.cdms.co.uk/>
*****************************************************************************
This email and its attachments are confidential to the intended recipient. If this has come to you in error, please notify the sender immediately and delete this email from your system. You must take no action based on this email, nor must you copy or disclose it or any part of its contents to any person or organisation. Please note that email communications may be monitored. The registered office of CDMS Limited is First Floor, Skyways House, Speke Road, Speke, Liverpool, L70 1AB, registered in England number 00406869.
*****************************************************************************
|
|
From: <php...@li...> - 2009-03-28 08:48:18
|
Hi, the 32/64 bit cpu/jvm issue you observed was one of the reasons for the switch. The bridge runs with any servlet engine out there, it even works with the simple http server build into JavaBride.jar: java -jar JavaBridge.jar. But for features like hot deployment, persistent connections, module managemant, etc. you'll need tomcat or some other j2ee ontainer anyway. On RedHat/Fedora or compatibles just do a yum -y install tomcat php rpmbuild -tb php-java-bridge*.tar.gz rpm -i php-java-bridge*.rpm Regards, Jost Boekemeier Mrz 28, 2009 9:22 vorm. schrieb am < php...@li...>: Ok. So is it possible to use the 4.x version of the bridge to make this thing work? But when I compiled v4.3.2, I still get the same error. ---- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.... /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64... And again, running the command -- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64... -- does not give any error. So now, nobody has any suggestion to solve this, I'll have to try running Tomcat or some other servlet runner. Have anyone used winstone http://winstone.sourceforge.net/ to run the bridge? I'm just trying to stay lightweight. Any other recommendations are welcome of course. btw, I did try, at one time, running the war file with winstone, but ended up getting an internal server error whenever the server is accessed at port 8080. So if there is no other option, I'll go with tomcat. Thank you for the support, Jost. I appreciate it. ------ We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechani... On Fri, Mar 27, 2009 at 2:54 PM, Thangaraj (www.bootcd.us) < tha...@gm...> wrote: > Hi Jost... www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in ---------------------... php-java-bridge-users mailing list php...@li... https://lists.sourcef... |
|
From: <php...@li...> - 2009-03-28 08:21:54
|
Ok. So is it possible to use the 4.x version of the bridge to make this thing work? But when I compiled v4.3.2, I still get the same error. ---- PHP Warning: php_mod_java(105) system error: Could not execute backend: JAVA_HOME=/usr/java/j2sdk1.4.2_19 LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/lib64/php/modules: /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log : Permission denied in Unknown on line 0 ---- And again, running the command -- /usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules -Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar -Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log -- does not give any error. So now, nobody has any suggestion to solve this, I'll have to try running Tomcat or some other servlet runner. Have anyone used winstone http://winstone.sourceforge.net/ to run the bridge? I'm just trying to stay lightweight. Any other recommendations are welcome of course. btw, I did try, at one time, running the war file with winstone, but ended up getting an internal server error whenever the server is accessed at port 8080. So if there is no other option, I'll go with tomcat. Thank you for the support, Jost. I appreciate it. ------ We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechanism. We have deprecated (4.x) and then removed (v5.x) all native code so that the bridge runs on any cpu, php or java version. You need a PHP "Java" class, yes. Either this one http://php-java-bridge.sourceforge.net/pjb/java/Java.inc or the simple PHP code from our FAQ. Regards, Jost Boekemeier On Fri, Mar 27, 2009 at 2:54 PM, Thangaraj (www.bootcd.us) < tha...@gm...> wrote: > Hi Jost, > > I see this in my java.ini (which was autoinstalled): > ------- > ;; If you want to start the default JVM automatically when the HTTP > ;; server starts, disable java.hosts, java.servlet and > ;; java.socketname, set java.java_home=<VM_HOME> and > ;; java.java=<VM_EXE>, for example: > ------- > And I've been successfully using this 'method' on a different server using > v4.x of the php java bridge. That server does not run any servlet engine > excepting that which is autostarted by the java bridge. Does anyone else use > this 'method' for lightweight java access? > > Another thing is, in the example that you had given, > > http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php > it includes this line: > require_once("java/Java.inc"); > Do I just extract and place this Java.inc in the required directory > manually? Is that the way to do it? > > Warm Regards, > Thangaraj > > > ------------- > Hi, > > The bridge cannot "autostart". Basically you write or include() PHP code to > connect to a Java back end and then use the provided VM bridge protocol to > invoke java and/or php code. > > If you want to manage a java back end from PHP, use PHP exec() and > java("java.lang.System")->exit(), please see this example for details: > > http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php > > Please remove all php "java.so" and "php_java.dll" you can find and then > follow the install instructions on > http://php-java-bridge.sourceforge.net/pjb/installation.php > > Regards, > Jost Boekemeier > -- www.ishafoundation.org www.projectgreenhands.org www.bootcd.us www.ecobuddy.in |
|
From: <php...@li...> - 2009-03-27 09:59:42
|
We used to use a binary protocol in 1.x. It has since been replaced by a faster XML protocol mechanism. We have deprecated (4.x) and then removed (v5.x) all native code so that the bridge runs on any cpu, php or java version. You need a PHP "Java" class, yes. Either this one http://php-java-bridge.sourceforge.net/pjb/java/Java.inc or the simple PHP code from our FAQ. Regards, Jost Boekemeier Mrz 27, 2009 10:28 vorm. schrieb am < php...@li...>: Hi Jost, I see this in my java.ini (which was autoinstalled): ------- ;; If you want to start the default JVM automatically when the HTTP ;; server starts, disable java.hosts, java.servlet and ;; java.socketname, set java.java_home=<VM_HOME> and ;; java.java=<VM_EXE>, for example: ------- And I've been successfully using this 'method' on a different server using v4.x of the php java bridge. That server does not run any servlet engine excepting that which is autostarted by the java bridge. Does anyone else use this 'method' for lightweight java access? Another thing is, in the example that you had given, http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php it includes this line: require_once("java/Java.inc"); Do I just extract and place this Java.inc in the required directory manually? Is that the way to do it? Warm Regards, Thangaraj ------------- Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java b... ------------------------------------------------------------------------------ _____________________... |
|
From: <php...@li...> - 2009-03-27 09:25:09
|
Hi Jost, I see this in my java.ini (which was autoinstalled): ------- ;; If you want to start the default JVM automatically when the HTTP ;; server starts, disable java.hosts, java.servlet and ;; java.socketname, set java.java_home=<VM_HOME> and ;; java.java=<VM_EXE>, for example: ------- And I've been successfully using this 'method' on a different server using v4.x of the php java bridge. That server does not run any servlet engine excepting that which is autostarted by the java bridge. Does anyone else use this 'method' for lightweight java access? Another thing is, in the example that you had given, http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php it includes this line: require_once("java/Java.inc"); Do I just extract and place this Java.inc in the required directory manually? Is that the way to do it? Warm Regards, Thangaraj ------------- Hi, The bridge cannot "autostart". Basically you write or include() PHP code to connect to a Java back end and then use the provided VM bridge protocol to invoke java and/or php code. If you want to manage a java back end from PHP, use PHP exec() and java("java.lang.System")->exit(), please see this example for details: http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php Please remove all php "java.so" and "php_java.dll" you can find and then follow the install instructions on http://php-java-bridge.sourceforge.net/pjb/installation.php Regards, Jost Boekemeier |
|
From: <php...@li...> - 2009-03-27 09:01:32
|
Hi,
The bridge cannot "autostart". Basically you write or include() PHP code to
connect to a Java back end and then use the provided VM bridge protocol to
invoke java and/or php code.
If you want to manage a java back end from PHP, use PHP exec() and
java("java.lang.System")->exit(), please see this example for details:
http://php-java-bridge.sourceforge.net/pjb/examples/source.php?source=startJava.php
Please remove all php "java.so" and "php_java.dll" you can find and then
follow the install instructions on
http://php-java-bridge.sourceforge.net/pjb/installation.php
Regards,
Jost Boekemeier
Mrz 27, 2009 7:48 vorm. schrieb am <
php...@li...>:
Hi all,
We've been having trouble getting the java bridge to autostart. In the
apache logs, I get
---
PHP Warning: php_mod_java(105) system error: Could not execute backend:
JAVA_HOME=/usr/java/j2sdk1.4.2_19
LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64
/usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java
-Djava.library.path=/usr/lib64/php/modules
-Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar
-Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules
php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log :
Permission denied in Unknown on line 0
----
However, if I run,
---
/usr/lib64/php/modules/RunJavaBridge /usr/java/j2sdk1.4.2_19/bin/java
-Djava.library.path=/usr/lib64/php/modules
-Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar
-Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules
php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log
---
directly in the command line, I am able to start the bridge without any
errors. We don't need to have the extra overhead of running tomcat for what
we need here, so can someone help me fix this issue?
This is CentOS 5.1, I'll give the relevant phpinfo output here: PHP Version
5.2.6, apache 2.2.3
java java support Enabled java bridge 5.2.2.4
java.java_home/usr/java/j2sdk1.4.2_19java.java/usr/java/j2sdk1.4.2_19/bin/javajava.log_file/var/log/php-java-bridge.logjava.log_level4java.security_policyOffjava
commandJAVA_HOME=/usr/java/j2sdk1.4.2_19
LD_LIBRARY_PATH=/usr/lib64/php/modules:/usr/java/jdk1.6.0_12/jre/lib/amd64
/usr/java/j2sdk1.4.2_19/bin/java -Djava.library.path=/usr/lib64/php/modules
-Djava.class.path=/usr/lib64/php/modules/JavaBridge.jar
-Djava.awt.headless=true -Dphp.java.bridge.base=/usr/lib64/php/modules
php.java.bridge.Standalone INET_LOCAL:0 4 /var/log/php-java-bridge.log java
server localhost java status not running
If needed, I can share the phpinfo page url.
btw, what should the LD_LIBRARY_PATH be? and how can I make that be
remembered across reboots for the bridge.
my java.ini contents:
---
extension = java.so
[java]
java.java_home = /usr/java/j2sdk1.4.2_19
java.java = /usr/java/j2sdk1.4.2_19/bin/java
java.log_level = 4
java.log_file = /var/log/php-java-bridge.log
---
Thangaraj
Isha Foundation
--
www.ishafoundation.org
www.projectgreenhands.org
www.bootcd.us
www.ecobuddy.in
------------------------------------------------------------------------------
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|