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...> - 2008-02-26 14:42:28
|
Hi,
I have a lucene.jar in my lib directory of the javabridge so this one will
loaded automatically. If i do something like this in my code:
$aJarFiles[] = _JAVA_PATH.'lucene'._DIR_SEP.'lucene-core-2.2.0.jar';
java_require(implode(";",$aJarFiles));
It' doesn't overrule this so i end up with some old Classes/Methods default
loaded. Any solution for this without deletig the lucene.jar in the lib
directory? Thanx in advance.
--
Gilbert Groenendijk
|
|
From: <php...@li...> - 2008-02-26 10:11:02
|
Dear Mr. Boekemeier, I understand your point of argumentation, no problems... AND I made it, it's working :o) I only had an old entry in the systemvariables... *grr* :o) My absolutely last question [yes, really... :o)] is, I can start the bridge in two different ways, The first one is, to use the JavaBridge.jar file and doubleclick it, and start it. The second one is to use the "java -jar JavaBridge.jar SERVLET:8080" But is there a way to autostart it, when a script using that bridge is running? I'm sorry, but again without tomcat... That would be absolutely great... By the way, are you the only one who is answering all those questions??? Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 13:33:11
|
Hi,
> (And without using the in php integrated javamodule, which actually
> doesn't work :o) )
the PHP/Java Bridge, as the successor of that module, separates the Java and PHP sides; which is
precisely the reason why the PHP/Java Bridge does work, and the original PHP module doesn't.
> I can't imagine that the only way is to use that tomcat application...
We could give you instructions how to start a simple JVM. However, as soon as you need to access
standard libraries, you'll need a standard servlet engine, anyway.
So we've decided to not waste your (and our) time by not providing any non-standard bindings.
Regards,
Jost Boekemeier
E-Mails jetzt auf Ihrem Handy.
www.yahoo.de/go
|
|
From: <php...@li...> - 2008-02-25 12:58:33
|
Dear Mr. Boekemeier, is there no simple solution for combining the apache(without tomcat), the javabridge and in phpfiles embedded javacode??? (And without using the in php integrated javamodule, which actually doesn't work :o) ) I can't imagine that the only way is to use that tomcat application... My java knowledge is very poor, but I'm able to use google :o) and I think I'm not that stupid, so if you can give some hints, how to get this bridge working, I could be able to get the rest on my own (perhaps!!!) Previous installation used a copy command (Copy java-x86-windows.dll from the JavaBridge.war to C:\PHP\ext), but version 3.2.1 was used, and there the"java-x86-windows.dll" file exists. In all of the versions which could be downloaded at sourceforge, this file is no longer existing... I want to use birt, that's why I'm trying to use that bridge... Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 12:25:41
|
Hi,
> 1.) Install tomcat.
>
> --> I'd like to use it without tomcat,
there are certainly other ways to run a Java VM. -- In fact you can even write your own server, if
you don't like one of the existing containers.
But if you have no experience with Java, I suggest to install Tomcat or any other J2EE server to
run Java.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2008-02-25 12:15:29
|
Hi there, Thanks again fort he quick answering... 1.) Install tomcat. --> I'd like to use it without tomcat, I think you said, this would be possible, right? And that's my problem, cause I don't use tomcat, I have no autodeploy folder... ;o) Am I the only person, wanting to use it without tomcat??? I'm confused... ;o) Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 11:45:56
|
Hi,
> I'm total new in this sector and don't know anything about java... :o(
a Java servlet engine or J2EE application server define an operating environment which allows
one to run Java (web-) applications. The JavaBridge.war is such an application.
> JavaBridge directory created from the J2EE server? Which one, is it in
> the compressed downloadable folder
The php-java-bridge download archive contains a JavaBridge.war, which is a standard Java (web-)
application.
In order to access Java libraries from within Apache or PHP CLI (standalone), you need to run
Java somewhere. The easiest way to do this is to install a J2EE server or servlet engine and to
copy JavaBridge.war into its autodeploy folder.
>
> My local system:
> Win XP
> Apache 2.0.59 (C:\Program Files\Apache Group\Apache2)
> PHP 5.1.6 (C:\php)
> An WWW-Folder for the files (C:\WWW)
> So what do I have to do next???
1.) Install tomcat.
2.) Deploy JavaBridge.war
3.) Copy the created JavaBridge folder to C:\WWW
Regards,
Jost Boekemeier
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das neue Yahoo! Mail - www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-25 09:55:44
|
Dear Mr. Boekemeier, Ok, that sounds fine :o) I'think the problem is not the bridge itself, it's me who's the one... *smile* I'm total new in this sector and don't know anything about java... :o( I don't know whar you mean by "All you need to do is to copy the JavaBridge directory created from the J2EE server or servlet engine to the Apache htdocs directory " JavaBridge directory created from the J2EE server? Which one, is it in the compressed downloadable folder, or do I have to install it on my own??? My local system: Win XP Apache 2.0.59 (C:\Program Files\Apache Group\Apache2) PHP 5.1.6 (C:\php) An WWW-Folder for the files (C:\WWW) And I downloaded all the bridges which are available on sourceforge.net (Version 4.1.8 --> 5.1.2) So what do I have to do next??? THANKS A LOT FOR YOUR PATIENCE!!!! If the bridge is working I write a documentation in English (and German) for those who have the same problems, I guess, that won't be to much people, but if just one is searching and helped, it was worthwhile... :o) Sorry for my "stupid" questions, but the one who's not asking, is the one who can't win... *smile* Greetings, Matthias |
|
From: <php...@li...> - 2008-02-25 09:23:16
|
Hi,
> My Problem is, I don't want to use tomcat,
Well, you can use any servlet engine or J2EE server to run Java.
> I thought I'm able to use the Javabridge just with apache
Yes. All you need to do is to copy the JavaBridge directory created from the J2EE server
or servlet engine to the Apache htdocs directory.
> problem, but as already said, I have to use it without... :o)
I don't see any way to run Java libraries without actually running Java... That said, the Linux
binaries have been compiled to native code, they don't use any Java.
But IF you want to use Java, you don't have a choice; you need to start the Java VM.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-25 09:17:43
|
Hi, if you follow the documentation, you won't get this error. Again, this problem happens because you have started some application on port 8081. If you still have problems with the PHP/Java Bridge or with the documentation, please open a problem report, please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233. Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
|
From: <php...@li...> - 2008-02-25 08:24:46
|
Good Morning, Thanks for your answer, Mr. Boekemeier. Yes, I' read that one, too... :o) My Problem is, I don't want to use tomcat, I thought I'm able to use the Javabridge just with apache, too... Right? No, installing the bridge in combination with tomcat should be no problem, but as already said, I have to use it without... :o) Is there any possiblitity? Greeting from Germany, Matthias |
|
From: <php...@li...> - 2008-02-25 02:37:03
|
According to the last mail. The exception was by an application listening on port 8081. That application is JavaBridge.rar. The INSTALL.J2SE document describes how to call a php function from java but I need to call java function from PHP which is described in INSTALL.STANDALONE. I need that to be working.
This is the desciption in the document (INSTALL.STANDALONE). The bolted text is what i want to achieve. Hope I was clear this time.
* Extract the JavaBridge.jar library from JavaBridge.war, for example
with the command:
java -classpath JavaBridge.war TestInstallation
* Add the following 3 lines to the main class of your non-J2EE
application:
public static final String JAVABRIDGE_PORT="8087";
static final php.java.bridge.JavaBridgeRunner runner =
php.java.bridge.JavaBridgeRunner.getRequiredInstance(JAVABRIDGE_PORT);
* Add JavaBridge.jar to the main library of you non-J2EE
application. This can be done by adding the following line to your
application's META-INF/MANIFEST.MF:
Class-Path: JavaBridge.jar
It is also possible to simply merge all files into your non-J2EE
application..
* Start your non-J2EE application.
Call your Java methods from PHP
-------------------------------
* Use the following code to call methods:
<?php require_once("http://localhost:8087/JavaBridge/java/Java.inc"); $myClass = new java("com.my.non.j2ee.application.MyClass"); $myClass->myMethod(...);
> > Date: Sat, 23 Feb 2008 12:58:13 +0100
> > To: php...@li...
> > From: php...@li...
> > Subject: Re: [Php-java-bridge-users] Parsing error php/java brodje in java.inc
> > > > Hi,
> >
> > > java/php bridge 5.1.0. This is the error i get now
> > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Hello.
> >
> > the above message means that the application listening on port 8081, whatever it may be, cannot
> > find the class Hello.
> >
> > Note that PHP almost certainly does not connect to your Java app, unless you manage to run PHP
> > within the ~100ms timeframe your Java application is listening on port 8081, if at all.
> >
> > Furthermore, if you want to run PHP apps from Java, you should probably take a look at the JSR223
> > interface instead, please see the INSTALL.J2SE document for details.
> >
> >
> > Regards,
> > Jost Boekemeier
> >
> >
> >
> > Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > php-java-bridge-users mailing list
> > php...@li...
> > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
>
> _________________________________________________________________
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
_________________________________________________________________
|
|
From: <php...@li...> - 2008-02-24 11:10:04
|
Hi,
> INSTALL.STANDALONE which produces the errors.
I don't think so.
> Any solution
Please see my last mail, which describes the mistake you've made.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-24 05:54:58
|
I am just trying to call a java function with in PHP (not PHP with in Java). I don't want any j2ee container or tomcat so I am using the stand alone one with the instructions in INSTALL.STANDALONE which produces the errors. Any solution > Date: Sat, 23 Feb 2008 12:58:13 +0100 > To: php...@li... > From: php...@li... > Subject: Re: [Php-java-bridge-users] Parsing error php/java brodje in java.inc > > Hi, > > > java/php bridge 5.1.0. This is the error i get now > > Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Hello. > > the above message means that the application listening on port 8081, whatever it may be, cannot > find the class Hello. > > Note that PHP almost certainly does not connect to your Java app, unless you manage to run PHP > within the ~100ms timeframe your Java application is listening on port 8081, if at all. > > Furthermore, if you want to run PHP apps from Java, you should probably take a look at the JSR223 > interface instead, please see the INSTALL.J2SE document for details. > > > Regards, > Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ |
|
From: <php...@li...> - 2008-02-23 11:58:13
|
Hi,
> java/php bridge 5.1.0. This is the error i get now
> Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Hello.
the above message means that the application listening on port 8081, whatever it may be, cannot
find the class Hello.
Note that PHP almost certainly does not connect to your Java app, unless you manage to run PHP
within the ~100ms timeframe your Java application is listening on port 8081, if at all.
Furthermore, if you want to run PHP apps from Java, you should probably take a look at the JSR223
interface instead, please see the INSTALL.J2SE document for details.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-22 15:07:26
|
You were right. Eclipse was using older version of php. I swithed to new version 5.2.5 with java/php bridge 5.1.0. This is the error i get now Content-type: text/html Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new Hello. Cause: java.lang.ClassNotFoundException: Hello VM: 1.6.0_03@http://java.sun.com/" at: #-17 java.net.URLClassLoader$1.run(URLClassLoader.java:200) #-16 java.security.AccessController.doPrivileged(Native Method) #-15 java.net.URLClassLoader.findClass(URLClassLoader.java:188) #0 http://localhost:8082/JavaBridge/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, false) #1 http://localhost:8082/JavaBridge/java/Java.inc(411): java_Arg->getResult(false) #2 http://localhost:8082/JavaBridge/java/Java.inc(414): java_Client->getWrappedResult(false) #3 http://localhost:8082/JavaBridge/java/Java.inc(596): java_Client->getInternalResult() #4 http://localhost:8082/JavaBridge/java/Java.inc(1952): java_Client->createObject('Hello', Array) #5 /home/kiran/Eclipseworkspace/Experiment/src/testjava.php(5): Java->Java('Hello') #6 {main}] thrown in http://localhost:8082/JavaBridge/java/Java.inc on line 222 ---------------------------------------- > Date: Fri, 22 Feb 2008 14:12:18 +0100 > To: php...@li... > From: php...@li... > Subject: Re: [Php-java-bridge-users] Parsing error php/java brodje in java.inc > > Hi, > >> Parsing Error: http://localhost:8081/JavaBridge/java/Java.inc line 54 - syntax error, unexpected >> T_NEW > > Line 54 is: > > throw new java_IllegalStateException("java_autoload called more than once"); > > any modern PHP implementation should be able to parse the above code. > > > Which PHP implementation and which PHP version do you use? > > > Regards, > Jost Boekemeier > > > > Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: > http://de.yahoo.com/set > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users _________________________________________________________________ |
|
From: <php...@li...> - 2008-02-22 13:12:18
|
Hi,
> Parsing Error: http://localhost:8081/JavaBridge/java/Java.inc line 54 - syntax error, unexpected
> T_NEW
Line 54 is:
throw new java_IllegalStateException("java_autoload called more than once");
any modern PHP implementation should be able to parse the above code.
Which PHP implementation and which PHP version do you use?
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2008-02-21 23:08:38
|
I am running java 1.6 by the way
----------------------------------------
> To: php...@li...
> Date: Thu, 21 Feb 2008 16:53:18 -0400
> From: php...@li...
> Subject: [Php-java-bridge-users] Parsing error php/java brodje in java.inc
>
>
> I followed the instructions in INSTALL.STANDALONE documentation. When i Compile my file this is the error i get in eclipse
>
> Parsing Error: http://localhost:8081/JavaBridge/java/Java.inc line 54 - syntax error, unexpected T_NEW
>
>
> My java class
>
> import java.util.*;
> import java.text.*;
> import java.math.*;
>
> public class Hello {
> public static final String JAVABRIDGE_PORT="8081";
> static final php.java.bridge.JavaBridgeRunner runner =
> php.java.bridge.JavaBridgeRunner.getRequiredInstance(JAVABRIDGE_PORT);
>
> public Hello(){
> SayHello();
> }
> public static void main(String[] args) {
> Hello hell = new Hello();
>
> //do nothing - this will keep us from getting a compile error
> }
> public void SayHello() {
> Date today = new Date();
>
> System.out.println( "Hello Geek here is the java date and time: " + today);
> }
>
>
> }
>
>
> My php file
>
> SayHello();
> ?>
> _________________________________________________________________
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> php-java-bridge-users mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
_________________________________________________________________
|
|
From: <php...@li...> - 2008-02-21 20:53:20
|
I followed the instructions in INSTALL.STANDALONE documentation. When i Compile my file this is the error i get in eclipse
Parsing Error: http://localhost:8081/JavaBridge/java/Java.inc line 54 - syntax error, unexpected T_NEW
My java class
import java.util.*;
import java.text.*;
import java.math.*;
public class Hello {
public static final String JAVABRIDGE_PORT="8081";
static final php.java.bridge.JavaBridgeRunner runner =
php.java.bridge.JavaBridgeRunner.getRequiredInstance(JAVABRIDGE_PORT);
public Hello(){
SayHello();
}
public static void main(String[] args) {
Hello hell = new Hello();
//do nothing - this will keep us from getting a compile error
}
public void SayHello() {
Date today = new Date();
System.out.println( "Hello Geek here is the java date and time: " + today);
}
}
My php file
SayHello();
?>
_________________________________________________________________
|
|
From: <php...@li...> - 2008-02-21 15:20:44
|
Hi, > I'm trying to install the java-bridge 5.1.0, but it won't work, what exactly doesn't work. > I've searched google for abaout two days, Have you looked at the PHP/Java Bridge documentation? From the INSTALL.J2EE document: 1. Install Tomcat 2. Copy JavaBridge.war [1] to tomcat/webapps, wait until webapps/JavaBridge appears 3. Copy the JavaBridge directory to apache. 4. Browse to http://yourHost.com/JavaBridge and run the supplied examples. [1] or rename JavaBridge.war to myPhpWebApplication.war, if appropriate. > there are many manuals but non of them worked, really frustrating... :o) The only manual I know of is the INSTALL.J2EE document contained in the download archive, which contains the above information. If that is confusing or misleading, please file a bug report. Please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233 Regards, Jost Boekemeier Lesen Sie Ihre E-Mails jetzt einfach von unterwegs. www.yahoo.de/go |
|
From: <php...@li...> - 2008-02-20 18:50:59
|
Hi,
> the documentation in various parts of internet is confusing.
what exactly is confusing?
> Can any one have simple steps to install
Ubuntu: dpkg -i php-java-bridge*.deb
RedHat: rpm -i php-java-bridge*.rpm
Please see the README.LINUX for details.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
|
|
From: <php...@li...> - 2008-02-20 10:39:26
|
Hi,
> java_require("Test.jar");
please do not use java_require(). Please use the standard procedures that your application
server or servlet engine offers.
Please read the documentation of your servlet engine or J2EE application server for details.
-- I'm sorry, but we cannot give you any advice how do deploy your libraries because each VM
and each AS has its own mechanism; on .NET you simply copy the dll files to the GAC, on Tomcat
you can copy some libraries, (but not log4j.jar for example!, see the tomcat RELEASE_NOTES), to
WEB-INF/lib. On WebLogic you can deploy jdbc drivers and other libraries by using a web interface.
If you have further questions concerning Java class loading, please contact your J2EE AS vendor or
please contact the tomcat mailing list.
> (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file
> Test.jar, reason: The system cannot find the file specified Responsible VM:
The above message means that getcwd()/Test.jar nor java.home/lib/Test.jar nor
/usr/share/java/Test.jar exists or is accessible.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2008-02-20 06:19:59
|
Hi Jost, I have done exactly this: >Basically users should be able to install the bridge with 3 simple steps: > >1. Rename JavaBridge.war to myApp.war and add all needed Java and PHP libraries to the > myApp.war > >2. Copy myApp.war to the J2EE autodeploy folder, wait until the directory myApp appears > >3. Copy the directory myApp over to the Apache or IIS document root > >4. Browse to http://yourHost.com/myApp and run the PHP/Java applications. my test.php is like this: <?php echo $_SERVER['SERVER_PORT']."\n"; require_once("http://192.168.15.62:8080/myApp/java/Java.inc"); java_require("Test.jar"); $system = java("java.lang.System"); echo " OS: ".$system->getProperty("os.name")."\n"; $test = java("Test"); echo "plz work \n"; ?> I am trying to run the test.php on apache and the log is this: [Wed Feb 20 01:07:06 2008] [error] [client 192.168.15.62] PHP Fatal error: Uncaught [[o:Exception]:"java.lang.Exception: Invoke failed: [[o:JavaBridge]]->updateJarLibraryPath((o:String)[o:String], (o:String)[o:String], (o:String)[o:String], (o:String)[o:String]). Cause: java.io.IOException: Could not open jar file Test.jar, reason: The system cannot find the file specified Responsible VM: 1.5.0_09@http://java.sun.com/" at:\n#-30 php.java.bridge.DynamicJavaBridgeClassLoader.checkJarFile(DynamicJavaBridgeClassLoader.java:108)\n#-29 php.java.bridge.JarLibraryPath.createUrls(JarLibraryPath.java:193)\n#-28 php.java.bridge.JarLibraryPath.checkURLs(JarLibraryPath.java:118)\n#0 http://192.168.15.62:8080/myApp/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, true)\n#1 http://192.168.15.62:8080/myApp/java/Java.inc(409): java_Arg->getResult(true)\n#2 http://192.168.15.62:8080/myApp/java/Java.inc(415): java_Client->getWrappedResult(true)\n#3 http://192.168.15.62:8080/myApp/java/Java.inc(619): java_Client->getResult()\n#4 http://192.168.15.62:8080/myApp/java/Java.inc(1609): java_Cl in http://192.168.15.62:8080/myApp/java/Java.inc on line 222 before the deployment of the JavaBridge would at least produce the default set of test / example pages but now trying to get at the 192.168.15.62:8080/myApp just hangs - with this at the end of the log Feb 19, 2008 11:19:08 PM org.apache.catalina.core.ApplicationContext log INFO: f892a4@70be88 --> <S v="#0 http://192.168.15.62:8080/myApp/java/Java.inc(259): java_ThrowExceptionProxyFactory->getProxy(1, NULL, true) #1 http://192.168.15.62:8080/myApp/java/Java.inc(409): java_Arg->getResult(true) #2 http://192.168.15.62:8080/myApp/java/Java.inc(415): java_Client->getWrappedResult(true) #3 http://192.168.15.62:8080/myApp/java/Java.inc(619): java_Client->getResult() #4 http://192.168.15.62:8080/myApp/java/Java.inc(1609): java_Client->invokeMethod(0, 'updateJarLibrar...', Array) #5 C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\myApp\test.php(7): java_require('Test.jar') #6 {main}" /> Feb 19, 2008 11:19:08 PM org.apache.catalina.core.ApplicationContext log INFO: f892a4@70be88 --> </Y> Feb 19, 2008 11:19:08 PM org.apache.catalina.core.ApplicationContext log INFO: f892a4@70be88 <-- <S v="W1tvOkV4Y2VwdGlvbl06ImphdmEubGFuZy5FeGNlcHRpb246IEludm9rZSBmYWlsZWQ6IFtbbzpK YXZhQnJpZGdlXV0tPnVwZGF0ZUphckxpYnJhcnlQYXRoKChvOlN0cmluZylbbzpTdHJpbmddLCAo bzpTdHJpbmcpW286U3RyaW5nXSwgKG86U3RyaW5nKVtvOlN0cmluZ10sIChvOlN0cmluZylbbzpT dHJpbmddKS4gQ2F1c2U... i have tried exact as you said - and a whole lot more, i love php AND java and i really need this to work! plz more help :( ~tim |
|
From: <php...@li...> - 2008-02-19 16:34:25
|
Hello, I am sure people here might have heard about php-java bridge. I want to use this to call a java function (Standalone) from php page. I just need to install the standalone version of this but the documentation in various parts of internet is confusing. Can any one have simple steps to install just the standalone version (no tomcat or any j2ee container) of php-java bridge on Ubuntu and Centos machines?. I have apache2.2 with php 5.2.3 running. Thanks you in advance. _________________________________________________________________ |
|
From: <php...@li...> - 2008-02-19 12:01:46
|
Sorry for my previous post. I've resolved this in the meantime. The problem was that php.ini defined current directory as extension directory, and there was no php_mysql.dll extension in that folder :) Regards, Zoran php...@li... wrote: Hi, I've deployed PHP/Java bridge as a Tomcat module. My PHP application which uses it to connect with Java application is deployed to the same server. It works fine now, but the issue I can't resolve now is how to provide MySQL support for my PHP application. It works from Apache but I had problems to connect it with php/java bridge on Tomcat, so I have decided to deploy it on Tomcat. I have tried to add "extension=php_mysql.dll" to the php.ini available on the "..\Tomcat 5.5\webapps\MyAPP\WEB-INF\cgi\php.ini" which is used by my PHP application, but it always crashes. Is it possible to connect PHP, Tomcat and MySQL, and if yes, how can I do it? Thanks Zoran --------------------------------- Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ php-java-bridge-users mailing list php...@li... https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users --------------------------------- Never miss a thing. Make Yahoo your homepage. |