Regarding PHP and Tomcat.................
Hi guys,
I have been configuring PHP with Tomcat on Fedora Core 1 for last 2 days but I couldn't. Today I successfully configured it (...thanks to paulsm4...) but when I run any PHP script I get following error message(s). ---------------------------- 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: Servlet.init() for servlet php threw exception org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) 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.jav a: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:534) root cause java.lang.UnsatisfiedLinkError: /root/php-4.4.4/libs/libphp4.so: /root/php-4.4.4/libs/libphp4.so: undefined symbol: ts_resource_ex java.lang.ClassLoader$NativeLibrary.load(Native Method) java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586) java.lang.ClassLoader.loadLibrary(ClassLoader.java:1511) java.lang.Runtime.loadLibrary0(Runtime.java:788) java.lang.System.loadLibrary(System.java:834) net.php.reflect.loadLibrary(reflect.java:34) net.php.reflect.<clinit>(reflect.java:29) net.php.servlet.init(servlet.java:157) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118) 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.jav a: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:534) note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs. Apache Tomcat/5.0.28 ------------------------ Can anybody give me a solution? For your reference my Java, PHP and Tomcat paths are /usr/local/jakarta-tomcat-5.0.28 /usr/java/j2sdk1.4.2_12 /root/php-4.4.4 Thanks in advance. |
Hey man, I think it's throwing up on a missing or bad symbolic link in the file system.
java.lang.UnsatisfiedLinkError: /root/php-4.4.4/libs/libphp4.so: /root/php-4.4.4/libs/libphp4.so: undefined I would check to see if libphp4.so exists in that location, whether it is a symbolic link that is not pointing to anything valid, and whether the user that Tomcat is running under has permission to access the /root area. Normally, system libraries, and installations in general, are not stored in root's home directory. I would consider fixing this if your system really is set up this way. Install PHP in /usr/local like you did with Tomcat. That makes a lot more sense. |
All times are GMT -5. The time now is 09:42 AM. |