ID:               16402
 Comment by:       jgbolger at yahoo dot ie
 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:

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


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

[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.

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

[2004-08-12 08:02:22] okapi at yahoo dot com

I'm experiencing this with 4.3.9RC1 on Windows. I've not been able to
find a solution to this.

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

[2003-11-25 12:10:16] jordi dot gou at upf dot edu

I've had the same problem. 
I installed php4.3.4 in a linux. I want to obtain php as a servlet
because I want to use it in Tomcat server. So I configured it:
./configure --with-mysql=<path-mysql> --with-java=<path-java>
--with-servlet

Then I execute make and copy libphp4.so in /usr/local/java/jre/lib
because I read in a forum to resolve the php4 not installed error.

I also copied phpsrvlt.jar to /usr/local/tomcat/common/lib and I
modified web.xml to use this servlet

Now, when I try to access to php page, the error is 

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

could anyone help me?

Thanks at all

Jordi

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

[2003-07-04 02:04:26] [EMAIL PROTECTED]

No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.



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

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