|
From: <php...@li...> - 2009-01-09 09:08:44
|
Hi,
Other JAR's execute OK, why is this an OS issue?
The TestInstallation gets the JavaBridge running fine.
Does this test need to be passed in order for the Bridge to work correctly, or is it OK just deploying the WAR in Tomcat?
regards
Re: [Php-java-bridge-users] System hangs when starting own JavaBridge.jar
From: <php-java-bridge-users@li...> - 2009-01-08 18:23
Hi,
"java -jar JavaBridge.jar SERVLET_LOCAL:8082 3 JavaBridge.log" the system hangs and the operation won't complete.
if the above command hangs your operating system, please contact your OS vendor.
Regards,
Jost Boekemeier
----- Original Message -----
From: Jonathan Pilling
To: php...@li...
Sent: Thursday, January 08, 2009 2:55 PM
Subject: Re: System hangs when starting own JavaBridge.jar
Hi,
Thanks for the reply.
Sorry, the SERVLET_LOCAL:8084 was a typo, it should have read SERVLET_LOCAL:8082.
So its not that the port isn't free. I've tried the same procedure on many ports, starting with 8084. I tried 8084, 8085, 8086, 8087, 8088, 8089, 8090 and I still get the same behaviour.
Please advise.
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hi,
> Jan 08 10:17:13 VMBridge INFO : socket : SERVLET_LOCAL:8084
> port INET_LOCAL:8082
Looks like the next free socket is 8084, not 8082. killall -9 java or use a port above 8084.
Regards,
Jost Boekemeier
----- Original Message -----
From: Jonathan Pilling
To: php...@li...
Sent: Thursday, January 08, 2009 10:26 AM
Subject: System hangs when starting own JavaBridge.jar
Hi there,
I followed these instructions from INSTALL.J2EE:
Development
* Extract the JavaBridge.jar from the JavaBridge.war zip file from the PHP/Java Bridge binary ("php-java-bridge*_j2ee.zip") download. For example with the command:
java -classpath JavaBridge.war TestInstallation
Double-click on JavaBridge.jar or type:
java -jar JavaBridge.jar
and click "OK" to start a servlet engine back end for all computers on the local network. Type:
java -jar JavaBridge.jar --help
to see the list of available options.
After running the command "java -classpath JavaBridge.war TestInstallation" I receive:
Starting a simple servlet engine: [/home/java/jre/bin/java, -jar, /home/tomcat/webapps/ext/JavaBridge.jar, SERVLET_LOCAL:8081]
Jan 08 10:08:45 VMBridge INFO : VM : 1.6.0@http://www.ibm.com/
Jan 08 10:08:45 VMBridge INFO : VMBridge version : 5.4.2
Jan 08 10:08:45 VMBridge INFO : logFile :
Jan 08 10:08:45 VMBridge INFO : default logLevel : 3
Jan 08 10:08:45 VMBridge INFO : socket : SERVLET_LOCAL:8081
Jan 08 10:08:45 VMBridge INFO : java.ext.dirs : /home/java/jre/lib/ext
Jan 08 10:08:45 VMBridge INFO : php.java.bridge.base: /root
Jan 08 10:08:45 VMBridge INFO : thread pool size : 20
Jan 08 10:08:45 VMBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8081
Invoking php: [php-cgi, -n, -d, allow_url_include=On, /home/tomcat/webapps/test.php]
Now check the /home/tomcat/webapps/RESULT.html.
Read the INSTALL.J2EE and/or INSTALL.J2SE documents.
The RESULT.html file came out fine. Are there any particluar values I should be looking for apart from all the Java ones at the end of the RESULT.html page?
Next, I did this command "ps aux | grep JavaBridge" and saw that the bridge is running on 8081:
root 2520 0.2 7.2 312964 36792 pts/0 Sl 10:03 0:01 /home/java/jre/bin/java -jar /home/tomcat/webapps/ext/JavaBridge.jar SERVLET_LOCAL:8081
However, if I try to start my own JavaBridge.jar on 8082 using "java -jar JavaBridge.jar SERVLET_LOCAL:8082 3 JavaBridge.log" the system hangs and the operation won't complete. I receive the log which states:
Jan 08 10:17:13 VMBridge INFO : VM : 1.6.0@http://www.ibm.com/
Jan 08 10:17:13 VMBridge INFO : VMBridge version : 5.4.2
Jan 08 10:17:13 VMBridge INFO : logFile : JavaBridge.log
Jan 08 10:17:13 VMBridge INFO : default logLevel : 5
Jan 08 10:17:13 VMBridge INFO : socket : SERVLET_LOCAL:8084
Jan 08 10:17:13 VMBridge INFO : java.ext.dirs : /home/java/jre/lib/ext
Jan 08 10:17:13 VMBridge INFO : php.java.bridge.base: /root
Jan 08 10:17:13 VMBridge INFO : thread pool size : 20
Jan 08 10:17:14 VMBridge INFO : JavaBridgeRunner started on port INET_LOCAL:8082
Even though this says the JavaBridgeRunner started, if I do "ps aux | grep JavaBridge" I see no JavaBridge running on Port 8082, which means it has not started properly.
Please can you advise how to correct this?
Thanks.
This message has been scanned for viruses by MailControl - www.mailcontrol.com
|