LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-23-2006, 02:57 AM   #1
chillyroll
LQ Newbie
 
Registered: Oct 2006
Posts: 25

Rep: Reputation: 15
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.
 
Old 11-22-2006, 12:36 PM   #2
meetscott
Samhain Slackbuild Maintainer
 
Registered: Sep 2004
Location: Phoenix, AZ, USA
Distribution: Slackware
Posts: 411

Rep: Reputation: 43
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.
 
  


Reply

Tags
php, tomcat



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 5 with Tomcat 5.x is it possible ? dimsh Linux - Software 0 01-18-2006 05:07 AM
Slackware 10.2 + Mysql + Apache + PHP + Tomcat Black187 Slackware 5 11-16-2005 07:11 AM
Slackware 10.2 + Mysql + Apache + PHP + Tomcat Black187 Linux - General 1 11-16-2005 02:11 AM
apache + php + tomcat berrance Linux - Software 1 08-08-2005 07:33 AM
tomcat with apache +php gigya Linux - Software 2 01-30-2004 10:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration