JSR223 / PHP 5 under Tomcat issue

From: Date: Tue, 17 Aug 2004 17:11:58 +0000
Subject: JSR223 / PHP 5 under Tomcat issue
Groups: php.general 
Request: Send a blank email to php-general+get-194061@lists.php.net to get a copy of this message
I'm on Windows 2000 trying to get the JSR 223: Scripting Pages in Java^TM Web Applications working of which PHP is the initial concrete implementation. Zend has been working with Sun to support PHP (and other scripting languages) better within Tomcat basically. Things get running fine thou the test.php page errors. <?php try {
       print "Creating Java.lang.Long <BR>\n";
       $obj = new java("java.lang.Long",4);
       $val = $obj->intValue();
       printf( "integer val = $val<BR>\n" );
} catch ( Exception $e) {
           print "Exception message = " . $e->getMessage () . "<BR>\n";
           print "Stack Trace = " . $e->stacktrace . "<BR>\n";
} ?> Creating Java.lang.Long *Fatal error*: java::java() [function.java <http://test-1:8080/jsr223samples/web/php/function.java>]: Unable to get jclass name for java.lang.Long in */jsr223samples/web/php/test.php* on line *40 *Another page that uses libraries that are part of the JSR223 examples JAR are working fine. Anyone have any thoughts? This might have been experienced in the previous experimental servlet support that was in PHP 4. Thanks, Steve

« previous php.general (#194061) next »