[Resin-interest] resin with jdk1.6.0
Dear devs, 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, George. -- http://blog.gmosx.com http://nitroproject.org ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin with jdk1.6.0
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
Re: [Resin-interest] resin with jdk1.6.0
On 11/27/06, Scott Ferguson [EMAIL PROTECTED] wrote: 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. any workaround until this gets fixed? For example, is there a way to dissable Quercus altogether? It is useless for me. thanks, -g. -- 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 -- 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] JAX-WS handlers
Hi, I'm using Resin 3.1 snapshot, and I wanted to know if there's a way of using handlers with the JAX-WS web services. If so, where can I find the documentation for that? Thanks in advance. Pablo ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] JAX-WS handlers
Ok, thanks a lot. 2006/11/27, Scott Ferguson [EMAIL PROTECTED]: On Nov 27, 2006, at 12:20 PM, Pablo Saavedra wrote: Hi, I'm using Resin 3.1 snapshot, and I wanted to know if there's a way of using handlers with the JAX-WS web services. If so, where can I find the documentation for that? Not yet. The jax-ws implementation is currently in development and we've focused first on the basic stub/skeleton api, putting off the others until that's complete. The jax-sw is not planned to be complete until 3.1.1. -- Scott Thanks in advance. Pablo ___ 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Tag attributes which can't be converted from strings
Wow... that fixed my problem! But why (how does that work)? Voodoo monkeys? I'm familiar with how XML namespaces work, but not how Resin seems to apply the settings differently. I'm mainly curious whether this is suitable as a long-term solution, or just a short-term patch. I'd hate to have all my tag-file-related code break on a future release of Resin if I can prevent it now. Thanks again. If there's a specific section of an M for me to RTF, let me know and I'll be all over it! :) On 11/27/06, Scott Ferguson [EMAIL PROTECTED] wrote: On Nov 27, 2006, at 9:13 AM, Plat wrote: Hopefully this is a JSP-newbie question. Pleasepleaseplease let it be a newbie question! :-) Somewhat. It's a very annoying feature of the JSP 2.1 spec (and it's required by the TCK, so we can't avoid it.) If you have an old-style web.xml (basically you don't have a namespace declaration), then JSP won't understand the ${...} syntax. You can avoid this by changing your web.xml to start like: web-app xmlns=http://caucho.com/ns/resin; (You can also use xmlns=http://java.sun.com/xml/ns/j2ee;). -- Scott I've recently upgraded from Resin 3.0.14 to 3.0.22. My JSP pages pass attribute values to JSP Tag Files using EL expressions. Here's some example code based on my real code: helloLib:HelloTag user=${myUser} / %-- myUser is an instance of the MyUser class --% Although this worked fine in 3.0.14, after upgrading Resin I see the error: expected `%= ... %' at `${myUser}' for tag attribute setter `setUser(MyUser)'. Tag attributes which can't be converted from strings must use a runtime attribute expression. The error (thrown from JspNode.java in the Resin source) makes sense from the standpoint that MyUser cannot be converted from a string. For my purposes it would be very difficult to support full conversion to/from strings, so MyUser does not support this. Now, if I change my tag call to use runtime expressions for such attributes, everything works how I want it to. helloLib:HelloTag user=%= myUser % / %-- This works great in 3.0.22 --% So now I'm wondering: 1) Is the latter syntax (use of runtime expressions) generally supported by JSP engines? That is, if I pass such a value using a runtime expression, am I generally protected from having to change this again? I was reading through JSR 152 and it seems like I should be OK, but I'm no pro yet. 2) Why is it that Tag attributes which can't be converted from strings must use a runtime attribute expression? Is this a limitation of Resin, or is this in the JSP specification somewhere? (Or some implicit requirement of PropertyEditors?) I'm fine with changing my code to use runtime expressions instead, but I'd really like to understand _why_ I need to do so. Thanks for your insight! ___ 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 ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] resin speed
Hi Keith, Are you running Resin with apache ? cos I hooked up with apache and did some fine tuning in it... and now it seems serve up pages bit fast. Anyway I use open source version and i think there might be more features on professional one. Thanks, Akila On Mon, 2006-11-27 at 09:10 -0800, Keith Fetterman wrote: Akila, We have been using Resin for the past five years to serve up the Go2marine boat parts store ( http://www.go2marine.com ), and we have always found it to have a very fast page response time. We are currently running Resin Professional 3.0.19 in production. We are using Sun's 1.5.0_09 JDK. The OS is Red Hat Enterprise 3 ES. The database is Oracle 9i, which runs on a separate server. When we refactored the software to use Struts and Tiles last spring, I was concerned that it might impact performance because of all of the internal HTTP requests for the tiles. No worries. I was delighted with how fast the site ran. The times that we have run into problems with page response time is when the server becomes heavily loaded in production. These problems were corrected by tuning memory, increasing threads, or increasing the maximum sessions. Keith Akila Amarathunga wrote: Hi All, I'm quiet new to Resin... At the moment I'm testing with Resin one of our application but I find it takes some time to deliver pages. i use resin 3.0.21 as standalone with jdk 1.5 and mysql on RH linux. I really appreciate if any one could tell me on what Resin deliver speed depend on... Thanks, Akila ___ 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