#16912 [Opn->Fbk]: Compilation error
| From: | iliaa@php.net | Date: | Wed, 09 Oct 2002 16:30:32 +0000 |
| Subject: | #16912 [Opn->Fbk]: Compilation error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21942@lists.php.net to get a copy of this message | ||
ID: 16912
Updated by: iliaa@php.net
Reported By: Jakub.Gnat@webdynamix.de
-Status: Open
+Status: Feedback
Bug Type: Servlet related
Operating System: SuSe Linux 7.3
PHP Version: 4.2.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2002-07-26 11:43:55] john@nua-tech.com
BTW, I'm using RH 6.2 PHP 4.2.2 Tomcat 4.04 and Sun's JDK1.3.0
Damn, the same thing happens in J2SDK1.4.0-01.
I'm configuring --with-servlet=/usr/local/tomcat/common
--with-java=/usr/local/J2SDK1.4.0-01
It configures, but when I try to run a make I get:
make[3]: Entering directory
`/home/dougie/build/php-4.2.2/sapi/servlet'
/home/dougie/build/php-4.2.2/build/shtool mkdir -p net/php
javac net/php/reflect.java
javac -classpath
.:/usr/local/tomcat/common/lib/servlet.jar:/usr/java/j2sdk1.4.0_01/lib/
net/php/servlet.java
net/php/servlet.java:75: encode(java.lang.String) in
java.net.URLEncoder cannot be applied to
(java.lang.String,java.lang.String)
result += concat + name + "=" + URLEncoder.encode(value,
"UTF-8");
^
1 error
make[3]: *** [phpsrvlt.jar] Error 1
make[3]: Leaving directory `/home/dougie/build/php-4.2.2/sapi/servlet'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/dougie/build/php-4.2.2/sapi/servlet'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dougie/build/php-4.2.2/sapi'
make: *** [all-recursive] Error 1
------------------------------------------------------------------------
[2002-07-26 11:24:00] john@nua-tech.com
I am having the same problem with sun jdk1.3, I want to use php/cocoon
and xindice on the same box, but cannot due to the fact that Xindice
requires jdk1.3
------------------------------------------------------------------------
[2002-04-30 05:03:29] Jakub.Gnat@webdynamix.de
1. Thank's for a tip. I did this, but the main problem still exists I
cannot reach a stable version of PHP servlet(Tomcat craches). This time
I configured PHP only --with-java --with-servlet.
2. The problem of compilation exists when is used the JDK 1.3. with
JDK1.4 compilation is successful. I think it(which JDK) should be added
to the sapi/servlet/README to avoid a frustration.
Best regards
------------------------------------------------------------------------
[2002-04-29 19:33:50] sniper@php.net
First of all, drop the --with-apxs from your configure line.
You can not compile 2 sapis at same time.
Also, read the sapi/servlet/README file.
------------------------------------------------------------------------
[2002-04-29 14:27:46] Jakub.Gnat@webdynamix.de
I got PHP code source form www.php.net and I could not compile a file
servlet.java. (sapi/servlet) There is a line (75) where is
"result+=concat + name + "=" + URLEncoder.encode(value,"UTF-8")" I
checked a method encode and it has only one parameter as String so I
delete the second one and I compiled successfully. I used to compile
J2EESDK 1.3.1 from Sun, but I don't know if it will be work correctly.
'./configure' '--disable-debug' '--enable-tracks-vars'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-servlet'
'--with-java'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16912&edit=1