On Nov 27, 2006, at 4:26 AM, George Moschovitis wrote:

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

I've added it as a bug report.  It's possible there's some issue with  
the Quercus implementation of the javax.script API.

-- Scott
> ...
> 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,
>
> George.
>
> -- 
> http://blog.gmosx.com
> http://nitroproject.org
>
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest


_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to