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
(4) |
3
(1) |
4
|
5
|
6
|
7
(9) |
8
(26) |
9
|
10
|
11
(3) |
12
|
13
|
14
(3) |
15
|
16
(1) |
17
(6) |
18
(2) |
19
(2) |
20
(8) |
21
(11) |
22
(3) |
23
(1) |
24
(8) |
25
(2) |
26
(1) |
27
(5) |
28
(6) |
29
(17) |
30
(16) |
|
|
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. ***************************************************************************** |