Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001914 [Quercus] major always 07-30-07 13:01 07-01-07 11:48
Reporter fredo View Status public  
Assigned To nam
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.3 Product Version 3.1.3
  Product Build
Summary 0001914: Quercus not running properly under jrunscript (jdk6) and ScriptEngineManager
Description as reported in [Quercus 0001826]:

the document
http://java.sun.com/javase/6/docs/technotes/guides/scripting/programmer_guide/index.html [^]
describes how to run any jsr-223 compliant scripting engine
from java and "jrunscript" is the command-line tool equivalent.

Quercus is missing certain methods that the ScriptEngine
interface defines, namely the context-less methods:

 Object eval(Reader reader)
 Object eval(Reader reader, Bindings n)
 Object eval(String script)
 Object eval(String script, Bindings n)

in QuercusScriptEngine.java (latest svn)

--------------------------------------------------
C:\resin-pro-3.1.2\lib>\java\jdk6u2\bin\jrunscript -cp quercus.jar;resin-util.jar -l php
30.07.2007 21:58:33 com.caucho.quercus.Quercus parseServicesModule
INFO: Failed loading com.caucho.quercus.lib.ApacheModule
java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
30.07.2007 21:58:33 com.caucho.quercus.Quercus parseServicesModule
INFO: Failed loading com.caucho.quercus.lib.MailModule
java.lang.NoClassDefFoundError: javax/mail/Address
30.07.2007 21:58:33 com.caucho.quercus.Quercus parseServicesModule
INFO: Failed loading com.caucho.quercus.lib.QuercusModule
java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
30.07.2007 21:58:33 com.caucho.quercus.Quercus parseServicesModule
INFO: Failed loading com.caucho.quercus.lib.i18n.UnicodeModule
java.lang.NoClassDefFoundError: javax/mail/MessagingException
quercus> <? phpinfo(); ?>
1
quercus>
--------------------------------------------------

since i dont see any output with jars of latest resin package
the bug still exists.
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0002167)
nam
07-01-07 11:48

jrunscript wasn't flushing the stdout buffer. So output will not be seen until the buffer is full.

To make sure output is seen in a timely manner, QuercusScriptEngine will now flush the buffer at the end of eval().
 

- Issue History
Date Modified Username Field Change
07-30-07 13:01 fredo New Issue
07-01-07 11:48 nam Status new => assigned
07-01-07 11:48 nam Assigned To  => nam
07-01-07 11:48 nam Status assigned => closed
07-01-07 11:48 nam Note Added: 0002167
07-01-07 11:48 nam Resolution open => fixed
07-01-07 11:48 nam Fixed in Version  => 3.1.3


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed.
26 unique queries executed.
Powered by Mantis Bugtracker