« septembre 2007 | Main | juin 2007 »
mercredi, août 29, 2007
migration from GNU Classpath to openjdk
First, I would like to thanks GNU Classpath hackers for the great job they have done since many years.
Since jdk is open sourced, we (mostly levente but I try to help) are moving from GNU Classpath to openjdk.
We have a nightly task that create japi
reports to compare JNode's "jdk" with official jdk APIs.
This
evening, we have reached 98.2% of compatibility
with jdk 1.7-b13 and 99% of compatibility
with jdk 1.5. cool, isn't it ?
dimanche, août 12, 2007
tomcat and php
Here are the steps to run php in tomcat :
- Download tomcat and unzip the archive where you want (=> TOMCAT_DIR)
- Create the following directories : TOMCAT_DIR/webapps/testPHP
- If necessary, create directory TOMCAT_DIR/common/lib (it seems, at least with tomcat 6, that the directory is no more created)
-
Edit the file TOMCAT_DIR/conf/catalina.properties and modify
the line for property shared.loader :
shared.loader=${catalina.home}/common/classes,${catalina.home}/common/lib/*.jar - Edit the file TOMCAT_DIR/conf/web.xml and add the lines mentionned below (see 'lines to add to web.xml of your tomcat installation')
- To download quercus ( a php 5 engine written in pure java), you must in fact download resin because quercus can't be downloaded separately
- Unzip the archive to RESIN_DIR
- Copy the 2 files RESIN_DIR/lib/resin-util.jar and RESIN_DIR/lib/quercus.jar to the directory TOMCAT_DIR/common/lib (see step 3)
-
Now, in the directory TOMCAT_DIR/webapps/testPHP, create a file
named test.php with the following content :
<?php phpinfo(); ?> - start tomcat (TOMCAT_DIR/bin/startup.sh) if you have not already done
- Enter the following url in your web browser : http://localhost:8080/testPHP/test.php
- You should get a screen like the following (values may vary) :
------------ expected result screen ---------------------------------Quercus
PHP Version => 5.2.0 System => Linux 2.6.20-16-generic amd64 Build Date => 20070628T2777 Configure Command => n/a Server API => CGI Virtual Directory Support => disabled Configuration File (php.ini) Path => WEB-INF/php.ini PHP API => 20031224 PHP Extension => 20041030 Debug Build => no Thread Safety => enabled Registered PHP Streams => php, file, http, httpsPHP Variables
............
----------------------------------------------------------------
------------ lines to add to web.xml of your tomcat installation ---------
<servlet>
<servlet-name>quercus</servlet-name>
<servlet-class>com.caucho.quercus.servlet.QuercusServlet</servlet-class>
<init>
<php-ini> <default_mimetype>text/html</default_mimetype> </php-ini>
</init>
</servlet>
<servlet-mapping>
<servlet-name>quercus</servlet-name>
<url-pattern>*.php</url-pattern>
</servlet-mapping>
----------------------------------------------------------------And Voila, you have a running php engine in your tomcat webserver :-)