|
From: <php...@li...> - 2008-02-03 12:45:32
|
Hi,
I have a very basic question regarding my installation and usage of
JavaBridge. Here is my setup:
Apache -----------------------------------
Tomcat
[Runs PHP
[Serving as back-end,
Scripts]
using mod_jk connectors]
I want to use PHP/Java Bridge to call Java Classes for some backend
operations. Following is my setup configuration:
OS: Windows XP
Apache: 2.2.6
PHP: 5.2.4
Tomcat: 5.0.24
I have done following under installation of JavaBridge:
1. Copied JavaBridge.war in webapps folder of tomcat.
2. Restarted Tomcat server.
3. I can access http://localhost/JavaBridge
4. Copied test.php into Apache/htdocs folder.
5. Access to http://localhost/test.php is giving following error:
*Warning*: fsockopen() expects parameter 2 to be long, string given in *
http://localhost/JavaBridge/java/Java.inc* on line *916*
*Fatal error*: Uncaught exception 'java_RuntimeException' with message
'Could not connect to the J2EE server localhost:. Please start it, for
example with the command: "java -jar JavaBridge.jar SERVLET:8080 3
JavaBridge.log" or, if the back end has been compiled to native code, with
"modules/java SERVLET:8080 3 JavaBridge.log". Error message: () ' in
http://localhost/JavaBridge/java/Java.inc:917 Stack trace: #0
http://localhost/JavaBridge/java/Java.inc(927): java_HttpHandler->open() #1
http://localhost/JavaBridge/java/Java.inc(1131):
java_HttpHandler->java_HttpHandler(Object(java_Protocol), '', 'localhost',
'') #2 http://localhost/JavaBridge/java/Java.inc(1170):
java_Protocol->createHttpHandler() #3
http://localhost/JavaBridge/java/Java.inc(1175):
java_Protocol->createHandler() #4
http://localhost/JavaBridge/java/Java.inc(364):
java_Protocol->java_Protocol(Object(java_Client)) #5
http://localhost/JavaBridge/java/Java.inc(1529): java_Client->java_Client()
#6 http://localhost/JavaBridge/java/Java.inc(1901): __javaproxy_Clien in *
http://localhost/JavaBridge/java/Java.inc* on line *917
*Pls suggest how to resolve this error. Do I need to run
JavaBridge.jarmanually? How can I make it get started automatically by
tomcat server?
Pls help!
Bharti
On Feb 2, 2008 8:46 PM, <php...@li...> wrote:
> Hi,
>
> > However, the only way I can instantiate a class of com.dang is by
> adding:
> >
> > java_autoload("D:\appz\java\dang.jar");
> >
> > after require_once("java/Java.inc");
>
> right. One must load a class before it can be used.
>
>
> > I need to confirm a call to com.dang through Tomcat:8080 without
> requiring local apache php
> > load.
>
> I am sorry, but I don't understand the above sentence.
>
> Do you want to use the static loader? All you need to do is to copy
> dang.jar to the tomcat
> WEB-INF/lib directory and re-start tomcat.
>
>
> Regards,
> Jost Boekemeier
>
>
>
> Lesen Sie Ihre E-Mails auf dem Handy.
> www.yahoo.de/go
>
> -------------------------------------------------------------------------
> 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
>
|