ID:               16402
 Comment by:       kidala at gmail dot com
 Reported By:      csbook at adproject dot net
 Status:           No Feedback
 Bug Type:         Servlet related
 Operating System: RedHat Linux
 PHP Version:      4.1.2
 New Comment:

I had got the same troubles with php and tomcat (UnsatisfiedLinkError
etc.).

Instructions presented on:

http://barry.cnblogs.com/default.html?page=2 or
http://blog.taragana.com/index.php/archive/running-php-5x-on-windows-using-tomcat-4x-or-5x/

are good but!!!

Problem UnsatisfiedLinkError appears because all needed dll's and
php.ini aren't on path!

To solve this problem I copied:
1. php_java.dll
2. php5servlet.dll
3. php5ts.dll
4. php.ini

to C:\Windows\System32

and all running OK!!

Have fun:)
Luck


Previous Comments:
------------------------------------------------------------------------

[2006-09-02 01:06:24] keptos at gmail dot com

I have this problem:::::::::::::::


javax.servlet.ServletException: La ejecución del Servlet lanzó una
excepción

causa raíz

java.lang.UnsatisfiedLinkError: send
        net.php.servlet.send(Native Method)
        net.php.servlet.service(servlet.java:190)
        net.php.servlet.service(servlet.java:214)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

nota La traza completa de la causa de este error se encuentra en los
archivos de diario de Apache Tomcat/5.5.12.



do you have any  idea?

thanks in advance

------------------------------------------------------------------------

[2006-04-28 14:34:51] nidget at nidget dot org

Using PHP 5.1.2 and Tomcat 5.5.17, I have a similar problem with
php5servlet.dll
I have solved the issues with the name of the lib in the properties
files. java.library.path is set to c:\php;c:\php\ext
Now it can find php5servlet.dll, but not one of the dependent
libraries:
java.lang.UnsatisfiedLinkError: C:\php\php5servlet.dll: Can't find
dependent libraries
        java.lang.ClassLoader$NativeLibrary.load(Native Method)
        java.lang.ClassLoader.loadLibrary0(Unknown Source)
        java.lang.ClassLoader.loadLibrary(Unknown Source)
        java.lang.Runtime.loadLibrary0(Unknown Source)
        java.lang.System.loadLibrary(Unknown Source)
        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:105)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
        
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
        
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
        
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
        
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Unknown Source)

I have no idea what the missing library can be.
I have tried with "Dependency Checker" and it has showed efsadu.dll was
missing. I've downloaded it from the internet and copied to c:\php, but
I still have the problem.

------------------------------------------------------------------------

[2004-11-24 17:34:06] jgbolger at yahoo dot ie

im running tomcat-4.1.31 with php-5.0.2-Win32 and jdk-1.5.0 on a
windows 2000 system.
placed phpsrvlt.jar in: jakarta-tomcat-4.1.31\common\lib

I was trying to run php as a servlet but was getting an
UnsatisfiedLinkError when running a simple php file.

I finally got over this error by opening the phpsrvlt.jar file and
editing the 2 properties files. The problem is it is looking for the
php5servlet.dll file but this properties file was not changed from php4
where the equivalent to php5servlet.dll is phpsrvlt.
So basically, its looking for a dll that is not there, an old version
of the dll. You just need to change the line 
library=phpsrvlt
to
library=php5servlet

and it will find the library. Hope this is of help to somebody

------------------------------------------------------------------------

[2004-09-12 20:54:37] ijamj at cin dot ufpe dot br

I´ve figured out the solution for Windows 2000.

Just put the folder that contains "php_java.jar" in the enviroment
variable "java.library.path".

java -Djava.library.path=c:\php\extensions;c:\tomcat5\common\lib

After this, copy the php_java.dll to c:\windows\system32

Works like charm!

------------------------------------------------------------------------

[2004-08-12 08:06:44] okapi at yahoo dot com

I copied the DLLs to C:\windows\system32 and got it to load a phpinfo()
page, but then it crashed. I'll file a separate bug on that if I can't
find one already.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/16402

-- 
Edit this bug report at http://bugs.php.net/?id=16402&edit=1

Reply via email to