|
From: <php...@li...> - 2007-06-14 20:15:26
|
> Do you use the GlobalPhpJavaServlet or do you have > only one JavaBridge.war web application? We've only ever run one JavaBridge.war web application. > Since version > 3.0.8 the PHP/Java Bridge used a class > loader cache, which means that there was only one > class loader for all shared web applications. >=20 > But this is only an issue if the is a JavaBridge.jar > in the global classpath, which is not the recommended > setup. From the FAQ of version 4.1.1: We've only ever run the JavaBridge.war or run JavaBridge.jar from the command line. Version 4.1.1 doesn't exist -- you just released 4.1.0a yesterday, right? > Do you have the JavaBridge.jar in the global > classpath? Nope. So, we just downloaded the 4.1.0 release (thanks for replacing it) and I tried it in Tomcat and standalone. Either way, the first time I run my test script after starting the bridge it works fine. The second time, I get a "protocol error," and the third time my browser just hangs trying to make the request. I opened my Java Bridge log and saw that this had occurred the second time I ran my script: Jun 14 16:06:28 JavaBridge ERROR: An exception occured: java.lang.IllegalStateException: java_require() not allowed for the HTTP tunnel. Use a context runner instead. java.lang.IllegalStateException: java_require() not allowed for the HTTP tunnel. Use a context runner instead. at php.java.bridge.JavaBridgeClassLoader.checkCl(JavaBridgeClassLoader.java :46) at php.java.bridge.SimpleJavaBridgeClassLoader.getClassLoader(SimpleJavaBri dgeClassLoader.java:172) at php.java.bridge.Request.setBridge(Request.java:493) at php.java.bridge.http.ContextFactory.recycle(ContextFactory.java:212) at php.java.bridge.http.ContextFactory.recycle(ContextFactory.java:253) at php.java.bridge.Parser.parse(Parser.java:225) at php.java.bridge.Request.handleRequest(Request.java:334) at php.java.bridge.Request.handleRequests(Request.java:388) at php.java.bridge.http.ContextRunner.run(ContextRunner.java:165) at php.java.bridge.BaseThreadPool$Delegate.run(BaseThreadPool.java:58) (Happened on the line where I load my jars using java_require) First I've seen this error -- how do I "use a context runner"? Thanks, Jon |