|
From: <php...@li...> - 2007-12-11 19:11:53
|
Please help,
I'm starting to get crazy about this.
I have tried everything from begining, removed MySQL server and XAMPP, install xamp, set everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm always getting error
Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to load Java Library jvm.dll, error: The specified module could not be found. in C:\xampp\htdocs\myApp\test.php on line 4
when trying to start php page
<?php
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
However, if I start test.bat from PHP/Java bridge, I'm getting the following error concerning php-cgi:
Invoking php: [php-cgi, -n, -d, allow_url_include=On, F:\Materijali za doktorski
rad\instalacije\PHP\PHP-Java Bridge\php-java-bridge_4.3.1a_j2ee2\test.php]
java.lang.RuntimeException: Could not run PHP ([php-cgi, -n, -d, allow_url_inclu
de=On, F:\Materijali za doktorski rad\instalacije\PHP\PHP-Java Bridge\php-java-b
ridge_4.3.1a_j2ee2\test.php]), please check if php-cgi is in the path.
at TestInstallation.start(TestInstallation.java:319)
at TestInstallation.main(TestInstallation.java:243)
Caused by: java.io.IOException: Cannot run program "php-cgi": CreateProcess erro
r=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at TestInstallation.start(TestInstallation.java:317)
... 1 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
I suppose that I should set the path to the php-cgi, so I have done it at the system PATH "C://xamp/php" and in php.ini
extension=php_java.dll
[java]
java.hosts="127.0.0.1:8080"
java.servlet=User
java.library.path="C:\xampp\php\ext"
I have also checked allow_url_include=On in php.ini and it is set to On.
I do not have any more ideas what should be the reason.
Thank you for help
Zoran
Zoran Jeremic <jer...@ya...> wrote:
Hi,
>Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
I have installed PHP/Java Bridge. Its works fine with the provided examples (NumberGuess PHP), but not with my example that is deployed to apache:
<?php
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
It gives me the error:
Fatal error: java() [<a href='function.java'>function.java</a>]: Unable to load Java Library C:\Program Files\Java\jdk1.6.0_02\jre\bin\server, error: The specified module could not be found. in C:\xampp\htdocs\example.php on line 7
If I start phpInfo() these values are available:
java.class.path no value no value java.home C:\Program Files\Java\jdk1.6.0_02 C:\Program Files\Java\jdk1.6.0_02 java.library jvm.dll jvm.dll java.library.path C:\php\ext C:\php\ext
php...@li... wrote:
Hi,
> I have problem to connect PHP with java application using PHP/java bridge.
[...]
> If I use php_java.jar and php_java.dll
these files do not belong to the PHP/Java Bridge.
Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
If you want to use the above files please report the bug to the project or vendor providing
php_java.jar/php_java.dll.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
|
|
From: <php...@li...> - 2007-12-11 19:52:56
|
As far as I know....
If you're trying to use the pure PHP implementation (which is probably the easiest way), you should not need any modules loaded for the bridge in your php.ini file.
The pure php implementation doesn't touch php.ini at all. If you have a bridge module installed (say one that comes with XAMPP) it may actually interfere with the proper working of the bridge.
JavaBridge.jar is the ONLY file you should need for the bridge. I used it with Tomcat without any problems.
Hope this helps.
--Nathan Shaskin
Compliance Publishing
php...@li... wrote: Please help,
I'm starting to get crazy about this.
I have tried everything from begining, removed MySQL server and XAMPP, install xamp, set everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm always getting error
Fatal error: java() [function.java]: Unable to load Java Library jvm.dll, error: The specified module could not be found. in C:\xampp\htdocs\myApp\test.php on line 4
when trying to start php page
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
However, if I start test.bat from PHP/Java bridge, I'm getting the following error concerning php-cgi:
Invoking php: [php-cgi, -n, -d, allow_url_include=On, F:\Materijali za doktorski
rad\instalacije\PHP\PHP-Java Bridge\php-java-bridge_4.3.1a_j2ee2\test.php]
java.lang.RuntimeException: Could not run PHP ([php-cgi, -n, -d, allow_url_inclu
de=On, F:\Materijali za doktorski rad\instalacije\PHP\PHP-Java Bridge\php-java-b
ridge_4.3.1a_j2ee2\test.php]), please check if php-cgi is in the path.
at TestInstallation.start(TestInstallation.java:319)
at TestInstallation.main(TestInstallation.java:243)
Caused by: java.io.IOException: Cannot run program "php-cgi": CreateProcess erro
r=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at TestInstallation.start(TestInstallation.java:317)
... 1 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find th
e file specified
I suppose that I should set the path to the php-cgi, so I have done it at the system PATH "C://xamp/php" and in php.ini
extension=php_java.dll
[java]
java.hosts="127.0.0.1:8080"
java.servlet=User
java.library.path="C:\xampp\php\ext"
I have also checked allow_url_include=On in php.ini and it is set to On.
I do not have any more ideas what should be the reason.
Thank you for help
Zoran
Zoran Jeremic wrote:
Hi,
>Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
I have installed PHP/Java Bridge. Its works fine with the provided examples (NumberGuess PHP), but not with my example that is deployed to apache:
if(!extension_loaded("java"))
require_once("http://localhost:8080/JavaBridge/java/Java.inc");
$s = new Java("java.lang.String", "hello");
?>
It gives me the error:
Fatal error: java() [function.java]: Unable to load Java Library C:\Program Files\Java\jdk1.6.0_02\jre\bin\server, error: The specified module could not be found. in C:\xampp\htdocs\example.php on line 7
If I start phpInfo() these values are available:
java.class.path no value no value java.home C:\Program Files\Java\jdk1.6.0_02 C:\Program Files\Java\jdk1.6.0_02 java.library jvm.dll jvm.dll java.library.path C:\php\ext C:\php\ext
php...@li... wrote:
Hi,
> I have problem to connect PHP with java application using PHP/java bridge.
[...]
> If I use php_java.jar and php_java.dll
these files do not belong to the PHP/Java Bridge.
Please install the PHP/Java Bridge as described in the INSTALL.J2EE document.
If you want to use the above files please report the bug to the project or vendor providing
php_java.jar/php_java.dll.
Regards,
Jost Boekemeier
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's:
http://de.yahoo.com/set
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
---------------------------------
Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.
---------------------------------
Never miss a thing. Make Yahoo your homepage.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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.
|
|
From: <php...@li...> - 2007-12-12 09:41:28
|
Hi,
> everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm always getting error
there's something wrong with your php.ini file.
If you can't remove the broken php_java.dll, you could open the Java.inc with a text editor and
rename all "java" occurences to "javax"
After that "include_once" Java.inc and use "javax(...)" and "new javax(...)" instead.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-12-12 13:30:07
|
trying to get java-bridge work and this is the error i get *Fatal error*: Uncaught [[o:Exception]:"java.lang.Exception: CreateInstance failed: new com.opus.epg.sfa.java.PostLib. Cause: java.util.zip.ZipException: too many length or distance symbols Responsible VM: 1.6.0@ http://java.sun.com/" at: #-15 java.util.zip.InflaterInputStream.read( InflaterInputStream.java:147) #-14 java.io.FilterInputStream.read( FilterInputStream.java:116) #-13 java.io.FilterInputStream.read( FilterInputStream.java:90) #0 java.inc(257): java_ThrowExceptionProxyFactory->getProxy(7, 'com.opus.epg.sf...', false) #1 java.inc(473): java_Arg->getResult(false) #2 java.inc(476): java_Client->getWrappedResult(false) #3 java.inc(647): java_Client->getInternalResult() #4 java.inc(1994): java_Client->createObject('com.opus.epg.sf...', Array) #5 /var/www/gateway/Sfa/PostLibPHP.php(95): Java->Java('com.opus.epg.sf...') #6 /var/www/gateway/TestMoto.php(54): PostLibPHP->postMoto(Object(BillToAddress), Object(ShipToAddress), Object(Merchant), Object(MPIData), Object(CardInfo)) #7 {main}] thrown in * java.inc* on line *220 can someone tell me what i am doing wrong plse? * On Dec 12, 2007 3:10 PM, <php...@li...> wrote: > Hi, > > > > everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm > always getting error > > there's something wrong with your php.ini file. > > > If you can't remove the broken php_java.dll, you could open the Java.incwith a text editor and > rename all "java" occurences to "javax" > > After that "include_once" Java.inc and use "javax(...)" and "new > javax(...)" instead. > > > Regards, > Jost Boekemeier > > > > Heute schon einen Blick in die Zukunft von E-Mails wagen? > www.yahoo.de/mail > > ------------------------------------------------------------------------- > SF.Net email is sponsored by: > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > -- Pinstorm Technologies swati bidg, north avenue, santacruz(w), mumbai 400 054 india Cell: +919930492664 Email: ge...@pi..., eg...@gm..., eg...@li... Blog: www.georgegyau.net It is a natural mistake to be ruled by a mad man |
|
From: <php...@li...> - 2007-12-12 14:29:23
|
Hi,
> new com.opus.epg.sfa.java.PostLib. Cause: java.util.zip.ZipException:
> too many length or distance symbols Responsible VM: 1.6.0@
> can someone tell me what i am doing wrong plse?
probably nothing. It's just that the zip file you're editing is broken.
Regards,
Jost Boekemeier
Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s mit dem neuen Yahoo! Mail. www.yahoo.de/mail
|
|
From: <php...@li...> - 2007-12-12 22:01:03
|
HI, I have found the solution. The problem was that I thought that the PHP code should reside on Apache server, and PHP/Java bridge and Java code of the application should be deployed to the Tomcat and accessed using require_once(http://localhost:8080/JavaBridge/java/Java.inc).... When I have deployed my php part of application to the Tomcat it works fine. I'm interested if it is possible to make things work as I have tried it before, and how could I do it? Thanks to everyone for your generous help Zoran php...@li... wrote: Hi, > everything again as in the tutorials (INSTALLJ2EE, INSTALLJ2SE), and I'm always getting error there's something wrong with your php.ini file. If you can't remove the broken php_java.dll, you could open the Java.inc with a text editor and rename all "java" occurences to "javax" After that "include_once" Java.inc and use "javax(...)" and "new javax(...)" instead. Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ 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. |
|
From: <php...@li...> - 2007-12-13 09:52:11
|
Hi, > I have found the solution. The problem was that I thought that the PHP code should reside on > Apache server, and PHP/Java bridge and Java code of the application should be deployed to the > Tomcat and accessed using require_once(http://localhost:8080/JavaBridge/java/Java.inc).... the bridge supports both modes (php running as a sub component of the J2EE server and PHP running as a sub component of Apache/IIS, connecting to the J2EE back end when necessary). > I'm interested if it is possible to make things work as I have tried it before, and how could > I do it? Please see http://php-java-bridge.cvs.sourceforge.net/*checkout*/php-java-bridge/php-java-bridge/FAQ.html for details. ---- I get a blank page or some other error!?! Check the PHP error log, see your php.ini file for details. If the command: echo '<?php require_once("http://localhost:8080/JavaBridge/java/Java.inc"); echo java("java.lang.System")->getProperties();?>' | php -n -d allow_url_include=On works in the shell but not within apache, then there's something wrong with your php.ini file. ---- Regards, Jost Boekemeier __________________________________ Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern. www.yahoo.de/clever |