From: <php...@li...> - 2006-09-20 08:40:43
|
Hi, if I try to reach the JavaBridge Directory I get this error: HTTP Status 404 - Servlet PhpCGIServlet is not available ________________________________________________________________________ type Status report message Servlet PhpCGIServlet is not available description The requested resource (Servlet PhpCGIServlet is not available) is not available. ________________________________________________________________________ Apache Tomcat/5.0 I Belive that's not good? Also the access to the Javabridge throu tomcat does not work: With=20 extension=3Djava.so [java] war-file first) java.hosts =3D "127.0.0.1:8080" java.servlet =3D On ;; Off, On or User java.log_level =3D 2 java.log_file =3D "/var/log/apache2/java-bridge.log" ;java.java_home =3D "/usr/lib/j2sdk1.5-sun" ;java.java =3D "/usr/lib/j2sdk1.5-sun/bin/java" ;java.log_level =3D 2 ;java.log_file =3D "/var/log/apache2/java-bridge.log" I get an error: ...blubb... Fatal error: php_mod_java(88): Protocol violation at pos 182 while trying to connect to 127.0.0.1:8080(/JavaBridge/JavaBridge.phpjavabridge). Please check that the back-end (JavaBride.war) is deployed or please switch off the java.servlet option. Received bytes: HTTP/1.1 500 Internal Server Error??Content-Type: text/html;charset=3Dutf-8??Content-Length: 3310??Date: Wed, 20 Sep 2006 07:42:07 GMT??Server: Apache-Coyote/1.1??Connection: close????<html><head><title>Apache Tomcat/5.0 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;f= ont-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;backgro= und-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;= color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tah= oma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Ta= homa,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family= :Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px; in /v= ar/www/sessionSharing.php on line 5 With use of java.java, etc. it works. But tomcat is faster, isn't it? That is the reason why i want to use it. --=20 Mit freundlichen Gr=C3=BC=C3=9Fen / Best regards Matthias Quade =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Contact me =3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Matthias Quade eMail: ma...@ma... Brauweg 47 web: http://blog.matthias-qua.de 37073 G=C3=B6ttingen phone: +49 551 3817880 Germany mobile: +49 171 6423616 Public Key: 0x4DA75E65 icq: 76375111 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D |
From: <php...@li...> - 2006-09-20 12:08:38
|
Hi, interestingly I've got similar problems while upgrading to bridge 3.1.8. The tomcat error log contained NoClassDefFound messages suggesting that some essential classes were missing. It turned out that tomcat kept old classes in its work and tmp directory and it was using these classes instead of the new versions from the JavaBridge.war. Cleaning these directories helped, but I now get java.lang.SecurityException messages when accessing the java session store from apache...The sessionSharing.php example works, but my classes don't. the only difference I see is that my classes call java_get_session more than once. Is there a bug in 3.1.8? Peter --------------------------------- All-new Yahoo! Mail - Fire up a more powerful email and get things done faster. |
From: <php...@li...> - 2006-09-20 13:26:42
|
Am Mittwoch, den 20.09.2006, 05:08 -0700 schrieb php...@li...: > Hi, > =20 > interestingly I've got similar problems while upgrading to bridge > 3.1.8. The tomcat error log contained NoClassDefFound messages > suggesting that some essential classes were missing. > =20 > It turned out that tomcat kept old classes in its work and tmp > directory and it was using these classes instead of the new versions > from the JavaBridge.war. > =20 > Cleaning these directories helped, but I now get > java.lang.SecurityException messages when accessing the java session > store from apache...The sessionSharing.php example works, but my > classes don't. the only difference I see is that my classes call > java_get_session more than once. Is there a bug in 3.1.8? > =20 > =20 Look your errors like theese: ------------- Fatal error: Uncaught [o(Exception):"java.lang.Exception: Invoke failed: [o(PingActionsClient)]->authenticate((String)o(String), (String)o(String)). Cause: org.chip.ping.PingException: java.io.IOException: Server returned HTTP response code: 500 for URL: http://192.168.2.51:8080/indivo-server-servlet-demo/PingServlet Responsible VM: 1.5.0_08@http://java.sun.com/" at: #-13 org.chip.ping.client.PingTalkClient.sendRequest(PingTalkClient.java:480) #-12 org.chip.ping.client.PingTalkClient.authenticate(PingTalkClient.java:352) #= -11 org.chip.ping.client.PingTalkClient.authenticate(PingTalkClient.java:27= 9) #0 [internal function]: Java->__call('authenticate', Array) #1 /var/www/= indivo-ui/config/setup.php(34): Java->authenticate('administrator@i...', 'a= dmin') #2 {main}] thrown in /var/www/indivo-ui/config/setup.php on line 34 --------------- What version did you use before? MQ > Peter > =20 >=20 > ______________________________________________________________________ > All-new Yahoo! Mail - Fire up a more powerful email and get things > done faster. > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share y= our > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ php-java-bridge-users mai= ling list php...@li... https://lists.sourcef= orge.net/lists/listinfo/php-java-bridge-users |
From: <php...@li...> - 2006-09-22 15:32:35
|
Hi, now I am confused. Do you get this message when trying to connect from php to the PhpJavaServlet or to the PhpCGIServlet or do you get this message after the successful connection? --- php...@li... schrieb: > Am Mittwoch, den 20.09.2006, 05:08 -0700 schrieb > php...@li...: > > Hi, > > > > interestingly I've got similar problems while > upgrading to bridge > > 3.1.8. The tomcat error log contained > NoClassDefFound messages > > suggesting that some essential classes were > missing. > > > > It turned out that tomcat kept old classes in its > work and tmp > > directory and it was using these classes instead > of the new versions > > from the JavaBridge.war. > > > > Cleaning these directories helped, but I now get > > java.lang.SecurityException messages when > accessing the java session > > store from apache...The sessionSharing.php example > works, but my > > classes don't. the only difference I see is that > my classes call > > java_get_session more than once. Is there a bug in > 3.1.8? > > > > > Look your errors like theese: > ------------- > Fatal error: Uncaught > [o(Exception):"java.lang.Exception: Invoke failed: > [o(PingActionsClient)]->authenticate((String)o(String), > (String)o(String)). Cause: > org.chip.ping.PingException: > java.io.IOException: Server returned HTTP response > code: 500 for URL: > http://192.168.2.51:8080/indivo-server-servlet-demo/PingServlet > Responsible VM: 1.5.0_08@http://java.sun.com/" at: > #-13 > org.chip.ping.client.PingTalkClient.sendRequest(PingTalkClient.java:480) > #-12 > org.chip.ping.client.PingTalkClient.authenticate(PingTalkClient.java:352) > #-11 > org.chip.ping.client.PingTalkClient.authenticate(PingTalkClient.java:279) > #0 [internal function]: Java->__call('authenticate', > Array) #1 /var/www/indivo-ui/config/setup.php(34): > Java->authenticate('administrator@i...', 'admin') #2 > {main}] thrown in > /var/www/indivo-ui/config/setup.php on line 34 > --------------- > > What version did you use before? > > MQ > > > Peter > > > > > > > ______________________________________________________________________ > > All-new Yahoo! Mail - Fire up a more powerful > email and get things > > done faster. > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of > IT > > Join SourceForge.net's Techsay panel and you'll > get the chance to share your > > opinions on IT & business topics through brief > surveys -- and earn cash > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV> _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-09-22 15:29:50
|
Hi Peter, first of all thank you very much for this problem report. Indeed, override redirect (which stops the secure channel and opens a new socket connection to 8080 to obtain the session handle when java_session() is not the first java statement in a script) doesn't work anymore in 3.1.8. The reason is that it now needs a security token which has been destroyed after the first Java() statement. The pure PHP implementation of the PHP/Java Bridge code doesn't implement override redirect, so this feature isn't portable anyway. Please use java_session() as the first Java() statement in a script, for example: <? ... $session = java_session(); $ob = new Java(...); ?> Since the handle is cached, the following will also work: <? java_session(); $ob=new Java(...); $session = java_session(); ?> However, I will make a patch available which fixes this problem. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |
From: <php...@li...> - 2006-09-22 15:19:44
|
Hi Matthias, [please excuse the delay] > Hi, > if I try to reach the JavaBridge Directory I get > this error: > HTTP Status 404 - Servlet PhpCGIServlet is not > available Can you please open a problem report (please use http://sourceforge.net/tracker/?func=add&group_id=117793&atid=679233) and attach the relevant tomcat log there? > With use of java.java, etc. it works. > But tomcat is faster, isn't it? That is the reason > why i want to use it. It's faster and more secure. And it should work with any J2EE server or servlet engine, that's why I am very surprised that it doesn't work with one tomcat version. I think the tomcat log should reveil the reason. Regards, Jost Boekemeier ___________________________________________________________ Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de |