Servlet Running problem

From: Date: Thu, 11 May 2000 15:03:20 +0000
Subject: Servlet Running problem
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14810@lists.php.net to get a copy of this message
Hi, 1. The build of the servlet sapi is still bad. When doing an make install, a lib file instead of lib directory is created under the prefix. This should be fixed. 2. I've just finished build and did a quick test. It is still not behaving satisfactorily. I have this error: Fatal error: Failed opening required 'VERSION' (include_path='') in /opt/bonsai/www/ldap/default.php on line 171 I was able to fix this by modifying the file another file login.php from : require ("VERSION"); to : require ("/opt/bonsai/www/ldap/VERSION"); So the error message was wrong and does not give me proper error information to perform a proper debug. 3. Next, having the following entry in web.xml does not help, it seems. <servlet> <servlet-name>php</servlet-name> <servlet-class>net.php.servlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>php</servlet-name> <url-pattern>*.php</url-pattern> <url-pattern>*.php3</url-pattern> </servlet-mapping> As you can see, all url-patterns with *.php3 should map to net.php.servlet. But it is not doing so, I had to rename quite a few files in order to look at them as servlets. 4. As pointed out in error 2 above, the path for the servlets are wrong. The include_path setting should be the default directory that the php files are residing in. But it is not looking there at all. Rant mode done. But hey, thanx for the great work thrown in here. I hope to see the servlet mode up so that I can deploy some php stuff on a legacy system I've got here. Ciao ST Lim -- Lim Swee Tat Software Engineer NCS Corporate IS Dept DID: (65) 774 9177

« previous php.version4 (#14810) next »