> java.lang.NoClassDefFoundError php.java.bridge.http. ContextServer.<init>(
ContextServer.java:91
Nice java error message, isn't it. Thank you Sun... The only hint is the
word "security manager" hidden in one of the stack frames:
You can solve this problem by moving JavaBridge.jar,
php-servlet.jar,php_script.jar (yes, move, not copy!) to the tomcat lib dir,
please see our FAQ entry: "I want to use Tomcat's security manager, how do I
install the bridge?" for details.
Regards,
Jost Boekemeier
On Sep 28, 2009 8:28 PM, <php...@li...>
wrote:
Hi,
i am trying to move my code (which uses the bridge) from my sandbox setup at
home to my hosting provider. As expected there are issue:
The code that i am trying to execute right is simply the test code:
//TEST
$DocRoot = $_SERVER['DOCUMENT_ROOT'];
require_once ("http://www.xpdtek.com:8080/sandbox/java/Java.inc");
echo java("java.lang.System")->getProperties();
The require_once call passes without problems. When i try to do the
getProtperties() call, however, i get the http status 500 error (see below).
At this point i am not sure if there is anything i can do, or if i have to
switch hosting.
Has anyone had any experience with this?
thanks
matt
protocol error:
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it
from
fulfilling this request.
exception
javax.servlet.ServletException
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:284)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:110)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:417)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)
root cause
java.lang.NoClassDefFoundError
php.java.bridge.http.ContextServer.<init>(ContextServer.java:91)
php.java.servlet.PhpJavaServlet.getContextServer(PhpJavaServlet.java:246)
php.java.servlet.PhpJavaServlet.init(PhpJavaServlet.java:87)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:157)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:110)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:535)
org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:417)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
java.lang.Thread.run(Thread.java:595)
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
php-java-bridge-users mailing list
php...@li...
https://lists.sourceforge.net/lists/listinfo/php-java-bridge-users
|