[Resin-interest] NoSuchMethodError
Hi, I am trying to deploy my application on Resin 3.1.9 and when I access my app at localhost:8080/ I get the following error on the Resin console: [10:20:58.631] java.lang.NoSuchMethodError: com.caucho.jsp.JavaPage.addDepend(Ljava/util/ArrayList;L com/caucho/make/PersistentDependency;)V [10:20:58.631] at _jsp._home__jsp.init(_home__jsp.java:181) [10:20:58.631] at com.caucho.jsp.JspManager.preload(JspManager.java:320) [10:20:58.631] at com.caucho.jsp.JspManager.compile(JspManager.java:218) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:171) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:150) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:248) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:178) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:161) [10:20:58.631] at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295) [10:20:58.631] at com.caucho.jsp.QServlet.getPage(QServlet.java:210) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145) [10:20:58.631] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187) [10:20:58.631] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265) [10:20:58.631] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273) [10:20:58.631] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682) [10:20:58.631] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743) [10:20:58.631] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662) [10:20:58.631] at java.lang.Thread.run(Thread.java:619) Could you please let me know what it means and how to remove it? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Integrating Resin with NetBeans
Also, I managed to create an instance of Resin 3.1 in Eclipse, But when I try to start it I get the following error: * Error: no 'server' JVM at 'C:\Program Files(x86)\Java\jre6\bin\server\jvm.dll'.* On Wed, Sep 30, 2009 at 3:30 PM, Rom Sok romsok.re...@gmail.com wrote: Thanks, I installed the Resin Eclipse plug-in. I am now running into a small problem - the plug-in supports resin 3.1 and up. I've been using 3.0.28 so far, so I decided to up my Resin version. I copied app-default.xml and resin.conf from the 3.0.28 to the 3.1.9. I started the server from Eclipse. but when i hit localhost:8080 where my application was deployed to under Resin 3.0.28 - which I used to start manually, I get the following error: 500 Servlet Exception web-app root-directory can not be the same as the host root-directory /c:MyWebApp/MyApp Why would that be happening? On Thu, Sep 17, 2009 at 12:08 PM, Michael Ludwig m...@as-guides.comwrote: Wu Wesley schrieb: Eclipse should support resin too. Or rather the other way round. And some bugs have been fixed recently. http://bugs.caucho.com/view.php?id=3502 http://bugs.caucho.com/view.php?id=3503 http://bugs.caucho.com/view.php?id=3589 -- Michael Ludwig ___ 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] Integrating Resin with NetBeans
Thanks Emil - I was able to correct the server VM error by going in Eclipse to configure JRE and pointing it to the JDK 6 I have. I am now running into a different problem. When I start Resin in Eclipse everything works - the application too, but I am getting the following error on the Eclipse console, and I am not certain why. *Context initialization failed [13:44:34.765] org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from ServletContext resource [/WEB-INF/applicationContext.xml]; nested exception is java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml] [13:44:34.765] Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]* On Thu, Oct 1, 2009 at 12:53 PM, Emil Ong e...@caucho.com wrote: Hi Rom, The Eclipse plugin does not support Resin 3.0. The webapp root-directory/host root-directory I believe was due to a change in configuration from 3.0 to 3.1. You won't be able to use a 3.1 config file in 3.0. Also you need to use a JDK with Resin. It looks like you're trying to use a JRE and looks like it doesn't include the server JVM. Resin 3.1 now requires the server JVM. If you're doing development, you're going to need the JDK anyway, so I'm guessing you probably already have it and just need to use that one instead. Take care, Emil On Thu, Oct 01, 2009 at 11:06:04AM -0400, Rom Sok wrote: Also, I managed to create an instance of Resin 3.1 in Eclipse, But when I try to start it I get the following error: Error: no 'server' JVM at 'C:\Program Files(x86)\Java\jre6\bin\server\jvm.dll'. On Wed, Sep 30, 2009 at 3:30 PM, Rom Sok romsok.re...@gmail.com wrote: Thanks, I installed the Resin Eclipse plug-in. I am now running into a small problem - the plug-in supports resin 3.1 and up. I've been using 3.0.28 so far, so I decided to up my Resin version. I copied app-default.xml and resin.conf from the 3.0.28 to the 3.1.9. I started the server from Eclipse. but when i hit localhost:8080 where my application was deployed to under Resin 3.0.28 - which I used to start manually, I get the following error: 500 Servlet Exception web-app root-directory can not be the same as the host root-directory /c:MyWebApp/MyApp Why would that be happening? On Thu, Sep 17, 2009 at 12:08 PM, Michael Ludwig m...@as-guides.com wrote: Wu Wesley schrieb: Eclipse should support resin too. Or rather the other way round. And some bugs have been fixed recently. http://bugs.caucho.com/view.php?id=3502 http://bugs.caucho.com/view.php?id=3503 http://bugs.caucho.com/view.php?id=3589 -- Michael Ludwig ___ 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 Emil Ong Chief Evangelist Caucho Technology, Inc. Tel. (858) 456-0300 mailto:e...@caucho.com http://blog.caucho.com/ Caucho: Reliable Open Source -- Resin: application server -- Quercus: PHP in Java -- Java CanDI: contexts and dependency injection ___ 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] File and Directory owners in virtual hosted environment
We are providing virtual hosting using a host.xml file for each virtual account to set the host name and root directory. Is there a way to also pass in the user and group that should be used as the owners of any files or directories that are created via code for each virtual account. Currently if a file or directory is created via code in any virtual account the file or directory ownership is set to the main user that resin is running under. I'm not sure if I am making my self clear but any pointers would be appreciated. -Peter Amiri ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] NoSuchMethodError
Given your previous posts I assume you've just upgraded from 3.0 and in that case, you need to make sure the WEB-INF/work directory is cleared so JSPs can be compiled by the new Resin version. /Mattias - Original Message - Subject: [Resin-interest] NoSuchMethodError Date: Thu, 1 Oct 2009 10:25:33 -0400 From: Rom Sok Hi, I am trying to deploy my application on Resin 3.1.9 and when I access my app at localhost:8080/ I get the following error on the Resin console: [10:20:58.631] java.lang.NoSuchMethodError: com.caucho.jsp.JavaPage.addDepend(Ljava/util/ArrayList;L com/caucho/make/PersistentDependency;)V [10:20:58.631] at _jsp._home__jsp.init(_home__jsp.java:181) [10:20:58.631] at com.caucho.jsp.JspManager.preload(JspManager.java:320) [10:20:58.631] at com.caucho.jsp.JspManager.compile(JspManager.java:218) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:171) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:150) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:248) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:178) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:161) [10:20:58.631] at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295) [10:20:58.631] at com.caucho.jsp.QServlet.getPage(QServlet.java:210) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145) [10:20:58.631] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187) [10:20:58.631] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265) [10:20:58.631] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273) [10:20:58.631] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682) [10:20:58.631] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743) [10:20:58.631] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662) [10:20:58.631] at java.lang.Thread.run(Thread.java:619) Could you please let me know what it means and how to remove it? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] NoSuchMethodError
Thanks, I guess it happened by itself after I set up the resin plugin in Eclipse - I am not getting this error anymore. On Thu, Oct 1, 2009 at 4:18 PM, Mattias Jiderhamn mj-li...@expertsystems.se wrote: Given your previous posts I assume you've just upgraded from 3.0 and in that case, you need to make sure the WEB-INF/work directory is cleared so JSPs can be compiled by the new Resin version. /Mattias - Original Message - Subject: [Resin-interest] NoSuchMethodError Date: Thu, 1 Oct 2009 10:25:33 -0400 From: Rom Sok Hi, I am trying to deploy my application on Resin 3.1.9 and when I access my app at localhost:8080/ I get the following error on the Resin console: [10:20:58.631] java.lang.NoSuchMethodError: com.caucho.jsp.JavaPage.addDepend(Ljava/util/ArrayList;L com/caucho/make/PersistentDependency;)V [10:20:58.631] at _jsp._home__jsp.init(_home__jsp.java:181) [10:20:58.631] at com.caucho.jsp.JspManager.preload(JspManager.java:320) [10:20:58.631] at com.caucho.jsp.JspManager.compile(JspManager.java:218) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:171) [10:20:58.631] at com.caucho.jsp.JspManager.createPage(JspManager.java:150) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:248) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:178) [10:20:58.631] at com.caucho.jsp.PageManager.getPage(PageManager.java:161) [10:20:58.631] at com.caucho.jsp.QServlet.getSubPage(QServlet.java:295) [10:20:58.631] at com.caucho.jsp.QServlet.getPage(QServlet.java:210) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.compilePage(PageFilterChain.java:238) [10:20:58.631] at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:145) [10:20:58.631] at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:187) [10:20:58.631] at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:265) [10:20:58.631] at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:273) [10:20:58.631] at com.caucho.server.port.TcpConnection.run(TcpConnection.java:682) [10:20:58.631] at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:743) [10:20:58.631] at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:662) [10:20:58.631] at java.lang.Thread.run(Thread.java:619) Could you please let me know what it means and how to remove it? Thanks. ___ 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] Resin LineConfigException and InstantiationException at Startup
We are running Resin Pro 3.0.23 on RHEL 5.3 and are seeing occasional errors after a restart that are causing 500 exceptions to be thrown when JSPs are loaded. This has now happened two times in the past several weeks and we can't seem to figure out what is causing this. Here are the lines we are seeing in the stdout logs (unfortunately we haven't gotten a full stack trace): [16:15:31.939] com.caucho.log.EnvironmentLogger.log com.caucho.config.LineConfigException: /var/resin/appA/resin-pro-3.0.23/conf/resin.conf:577: java.lang.InstantiationException: com.caucho.vfs.Path ... [16:15:33.343] com.caucho.log.EnvironmentLogger.log com.caucho.config.LineConfigException: /var/resin/appA/resin-pro-3.0.23/conf/resin.conf:664: java.lang.InstantiationException: com.caucho.vfs.Path Line 577 in resin.conf is the tree-loader specified in this class-loader block in web-app-default: class-loader tree-loader path=${server.rootDirectory}/ext-webapp/ /class-loader And line 664 is the compiling-loader tag in this host-default block: class-loader compiling-loader path='webapps/WEB-INF/classes'/ library-loader path='webapps/WEB-INF/lib'/ /class-loader The virtual hosts (and their webapps) are on an external NFS mount, but we have never had an issue with the mount being unavailable. Has anyone else seen this or know what might cause this to happen? It seems that once this happens, there is no fix other than to restart Resin again. Any thoughts? Thanks, Shane Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] bean tag and JMX
The doc for 4.0.x says that the resource tag is deprecated in favor of bean. If I try to setup JMX bean with bean then it doesn't work. It is registered as a CanDI object, but it is not registered in the MBean server. However, if I replace bean with resource then everything is correct, the JMX bean is shown by JConsole and the resin log also shows that it was registered. bean name=trafficSummary mbean-name=mireka:type=TrafficSummary type=mireka.filter.builtin.TrafficSummary / ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin 3.1.8 --- JspParseException
Hi. I use resin-3.0.x at linux box and use encoding ja_JP.UTF-8. I solve this problem. edit $RESIN_HOME/bin/http.sh LANG=ja_JP.UTF-8 LC_ALL=$LANG export LANG LC_ALL set $JAVA_HOME and $RESIN_HOME args=-J-server -Xmx256M -Dfile.encoding=UTF-8 .. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest