Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0001473 [Quercus] minor always 11-27-06 08:59 11-27-06 18:15
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 3.1.0 Product Version
  Product Build
Summary 0001473: quercus script engine issue
Description (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,
Steps To Reproduce
Additional Information
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
11-27-06 08:59 ferg New Issue
11-27-06 18:15 ferg Assigned To  => ferg
11-27-06 18:15 ferg Status new => closed
11-27-06 18:15 ferg Resolution open => fixed
11-27-06 18:15 ferg Fixed in Version  => 3.1.0


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