Mantis - Quercus
Viewing Issue Advanced Details
1473 minor always 11-27-06 08:59 11-27-06 18:15
ferg  
ferg  
normal  
closed  
fixed  
none    
none 3.1.0  
0001473: quercus script engine issue
(rep by George Moschovitis)

I am trying to use resin with jdk1.6.0. I have the following code in
my servlet init method:

...
import javax.script.*;
...

  public void init() throws ServletException {
    // create a ScriptEngineManager
    ScriptEngineManager m = new ScriptEngineManager();
    // get an instance of JavaScript script engine
    engine = m.getEngineByName("js");

    // expose the current script engine as a global variable
    engine.put("engine", engine);
  }

...

And I get the following error:
[14:22:03.364] myservlet: init
[14:22:03.373] java.lang.AbstractMethodError
[14:22:03.373] at
javax.script.ScriptEngineManager.getEngineByName(ScriptEngineManager.java:216)
[14:22:03.373] at myservlet.AdapterServlet.init(AdapterServlet.java:26)
[14:22:03.373] at javax.servlet.GenericServlet.init(GenericServlet.java:69)
[14:22:03.373] at
com.caucho.server.dispatch.ServletConfigImpl.createServletImpl(ServletConfigImpl.java:646)
[14:22:03.373] at
com.caucho.server.dispatch.ServletConfigImpl.createServlet(ServletConfigImpl.java:587)
[14:22:03.373] at
com.caucho.server.dispatch.ServletFilterChain.doFilter(ServletFilterChain.java:97)
[14:22:03.373] at
com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:173)
[14:22:03.373] at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
[14:22:03.373] at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:274)
[14:22:03.373] at
com.caucho.server.port.TcpConnection.run(TcpConnection.java:511)
[14:22:03.373] at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
[14:22:03.373] at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
[14:22:03.373] at java.lang.Thread.run(Thread.java:619)


Some times the error says something about a QuercusScriptingEngine. Any idea?


thanks in advance for your help,

There are no notes attached to this issue.