From: <php...@li...> - 2007-08-15 16:21:13
|
Hi, I'm trying to upgrade JavaBridge in existing web apps (though this fact may not be a criteria for the problems arising). I've downloaded the current 4.2, resp. 3.2, version, extracted JavaBridge.war and copied its contents into the web app. Aditionally, I copied JavaBridge.jar to the CLASSPATH (jre/lib/ext in this case, which is the only CLASSPATH). There is no JavaBridge.jar in Tomcat's /common/lib, and JavaBridge.jar in ext and in /WEB-INF/lib are equal. OK, with 4.2, I'm getting the follow error: 2007-08-15 17:55:03,257 [http-80-Processor23] ERROR php.java.bridge.JavaBridge - JavaBridge exception java.lang.NoSuchMethodError: php.java.bridge.http.ContextServer.getCredentials(Ljava/lang/String;Ljava/lang/String;)Lphp/java/bridge/http/ContextFactory$ICredentials; at php.java.servlet.PhpJavaServlet.handleSocketConnection(PhpJavaServlet.java:270) at php.java.servlet.PhpJavaServlet.doPut(PhpJavaServlet.java:333) at javax.servlet.http.HttpServlet.service(HttpServlet.java:730) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) ... Looking at the sources, the error occurs in PhpJavaServlet.java, in line 212. And right, ContextServer.java contains a different signature of getCredentials(). With 3.2, there is another error: (BTW, JavaBridge.war, when deployed, throws the same error on load.) java.lang.NoClassDefFoundError: php/java/bridge/Util$Thread java.lang.ClassLoader.defineClass1(Native Method) java.lang.ClassLoader.defineClass(ClassLoader.java:620) java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) java.net.URLClassLoader.defineClass(URLClassLoader.java:260) java.net.URLClassLoader.access$100(URLClassLoader.java:56) java.net.URLClassLoader$1.run(URLClassLoader.java:195) java.security.AccessController.doPrivileged(Native Method) java.net.URLClassLoader.findClass(URLClassLoader.java:188) java.lang.ClassLoader.loadClass(ClassLoader.java:306) java.lang.ClassLoader.loadClass(ClassLoader.java:251) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) php.java.servlet.fastcgi.FastCGIServlet.init(FastCGIServlet.java:248) php.java.servlet.PhpCGIServlet.init(PhpCGIServlet.java:103) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) ... Looking at the classes contained by JavaBridge.jar, there is no such class, indeed. - How should I proceed? Thanks Robert |
From: <php...@li...> - 2007-08-15 18:52:00
|
Hi, [use of CLASSPATH results in NoClassDefFoundError and friends...] > - How should I proceed? Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this as the default, please see the README for details. Regards, Jost Boekemeier __________________________________ Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever |
From: <php...@li...> - 2007-08-15 19:35:14
|
Hi Jost, thanks for your reply. I already made sure three times anything in the CLASSPATH is OK. Else I wouldn't have posted. Actually, please look at the sources you've deployed, and if they would compile. As for version 4.2.2, they will not - as there's that inconsistency between a distinct method call, and signature ( ContextServer.getCredentials()) , I've mentionend in my previous post. - The sources won't compile, and the binaries (don't know how they have been compiled) throw the appropriate error. Please take a deep breath and look into this. Thanks again, and best regards Robert php...@li... wrote: > Hi, > > [use of CLASSPATH results in NoClassDefFoundError and friends...] > >> - How should I proceed? >> > > Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this > as the default, please see the README for details. > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
From: <php...@li...> - 2007-08-16 10:14:40
|
Hi, > Actually, please look at the sources you've deployed, and if they would > compile. Which sources? The sources from the CVS head or the src.zip from the download? Regards, Jost Boekemeier Heute schon einen Blick in die Zukunft von E-Mails wagen? www.yahoo.de/mail |
From: <php...@li...> - 2007-08-16 19:23:15
|
Hi Jost, src.zip from the current 4.2 download. However, I've just had another look at the sources, and I can't find any inconsistency anymore. I apologize. Moreover, that update process of mine had succeeded in the meantime (there had been other old Java Bridge JARs in the CLASSPATH, which caused the problems, apart from JavaBridge.jar itself, which, before, I had replaced, exclusively). Like you've mentioned, the webs will run with local dependencies on the Java Bridge, only, and they do, indeed. Thank you sincerely for providing and supporting PHP/Java Bridge. Getting really good software and support - and for free - is not a matter of course. I'm most thankful for that. Robert php...@li... wrote: > Hi, > > >> Actually, please look at the sources you've deployed, and if they would >> compile. >> > > Which sources? The sources from the CVS head or the src.zip from the download? > > > 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: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |
From: <php...@li...> - 2007-08-16 09:29:49
|
Thanks and sorry. On another computer it works, thus, it works, in general. Robert php...@li... wrote: > Hi, > > [use of CLASSPATH results in NoClassDefFoundError and friends...] > >> - How should I proceed? >> > > Well, simply nuke the CLASSPATH and use a single repository. The PHP/Java Bridge offers this > as the default, please see the README for details. > > > Regards, > Jost Boekemeier > > > > __________________________________ > Yahoo! Clever: Sie haben Fragen? Yahoo! Nutzer antworten Ihnen. www.yahoo.de/clever > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > php-java-bridge-users mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users > > |