[Resin-interest] Resin 3.1.9 - on Eclipse
Hi, I just installed the Resin plug-in into Galileo. I set up a resin 3.1.9 server and I regularly start it up from Eclipse. Everything looks fine, but I get the following exceptions in the Eclipse console when I start it up: *Context initialization failed** **[17:08:42.377] 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]** **[17:08:42.377] Caused by: java.io.FileNotFoundException: Could not open ServletContext resource [/WEB-INF/applicationContext.xml]** **[17:08:42.377] at org.springframework.web.context.support.ServletContextResource.getInputStream(ServletContextResource.java:99) ** **[17:08:42.377] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:351) ** **[17:08:42.377] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334) ** **[17:08:42.377] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:126) ** **[17:08:42.377] at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:142) ** **[17:08:42.377] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:123) ** **[17:08:42.377] at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:91) ** **[17:08:42.377] at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:94) ** **[17:08:42.377] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:294) ** **[17:08:42.377] at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156) ** **[17:08:42.377] at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246) ** **[17:08:42.377] at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184) ** **[17:08:42.377] at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49) ** **[17:08:42.377] at com.caucho.server.webapp.WebApp.start(WebApp.java:1866)* * **[17:08:42.377] at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:667) ** * * * Did anyone ever encounter this issue? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[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
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] java.lang.OutOfMemoryError: Java heap space
Hi, I know this is probably a rookie mistake... I got the *java.lang.OutOfMemoryError: Java heap space* I also understand that I need to pass parameters when I start Java to increase the heap size. The problem is that I am not sure where to do that: I have Windows Vista and Resin 3.0.28. Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] java.lang.OutOfMemoryError: Java heap space
Thank you for the quick response. I normally start my server by calling httpd.exe. When you say that I can pass the command line memory arguments, do you mean I have to start the server with the following command: httpd.exe -J-Xmx512m -J-Xms512m? Thanks. On Wed, Sep 30, 2009 at 12:44 PM, Scott Ferguson f...@caucho.com wrote: On Sep 30, 2009, at 9:14 AM, Rom Sok wrote: Hi, I know this is probably a rookie mistake... I got the *java.lang.OutOfMemoryError: Java heap space* I also understand that I need to pass parameters when I start Java to increase the heap size. The problem is that I am not sure where to do that: I have Windows Vista and Resin 3.0.28. For Resin 3.0.x, the JVM configuration parameters are on the command line (Resin 3.1.x and later use the resin.xml file.) The configuration you want is something like -J-Xmx512m. If you continue to run into memory issues (especially if you can reproduce the problem in your development lab), you might want to look at Resin 4.0.x or Resin 3.1.x and use the memory tab in the /resin-status to get a quick heap dump to give you an idea of what's taking up the memory. -- Scott 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 mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] character encoding
No, I mean in the request... on the java side. On Wed, Sep 23, 2009 at 6:07 PM, Rick Mann rm...@latencyzero.com wrote: In a JSP? %@ page pageEncoding=UTF-8 % On Sep 23, 2009, at 12:14:35, Rom Sok wrote: Hi, Is there a way to force URI CHARACTER encoding to UTF-8? 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 mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] character encoding
Sorry, let's try this again: I am running into a problem where certain UTF-8 characters go into the application and come out as nonsense. The JSP's are using UTF-8 encoding, and so does the database. Accoridng to my research one of the things I have to do on the application side to make sure character encoding is always consistent is set the character encoding in the server configuration for URL-decoding GET request parameters. The equivalent in Tomcat configuration is *Connector (...) URIEncoding=UTF-8 /* Is there an equivalent in Resin? Thanks. On Thu, Sep 24, 2009 at 10:01 AM, Michael Ludwig m...@as-guides.com wrote: Rom Sok schrieb: Is there a way to force URI CHARACTER encoding to UTF-8? No, I mean in the request... on the java side. That's poor and inefficient communication. Consider giving a complete description of what you want to achieve and how it relates to Resin. Reading this might help you in doing so: http://catb.org/~esr/faqs/smart-questions.htmlhttp://catb.org/%7Eesr/faqs/smart-questions.html -- 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
[Resin-interest] character encoding
Hi, Is there a way to force URI CHARACTER encoding to UTF-8? Thanks ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Noob question: Do I have to restart?
Hi, Sorry about the newbie question, do I have to restart Resin every time I drop a new version of some file into the deployment directory? like say web.xml? Is there a way to just reload the app without doing the whole Stop - Quit - httpd.exe all over again? Also, is that what is called hot deployment? Or is there another term for redeploying an app without starting the server? Thanks, ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Noob question: Do I have to restart?
Thanks On Tue, Sep 22, 2009 at 12:10 PM, Jeff Schnitzer j...@infohazard.orgwrote: Hot deployment works fine for me out of the box, but note that Resin doesn't immediately reload the webapp when web.xml or the war changes. You have to actually request a page, then the app will reload. If you change JSP files they are picked up immediately, no reload necessary. Jeff On Tue, Sep 22, 2009 at 7:23 AM, Rom Sok romsok.re...@gmail.com wrote: Hi, Sorry about the newbie question, do I have to restart Resin every time I drop a new version of some file into the deployment directory? like say web.xml? Is there a way to just reload the app without doing the whole Stop - Quit - httpd.exe all over again? Also, is that what is called hot deployment? Or is there another term for redeploying an app without starting the server? 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 mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
Actually the response from S! seems to have solved the problem. I was compiling with 1.6 - reduced it to 1.5 and it works just fine. Thank you all for your input. On Mon, Sep 21, 2009 at 10:01 AM, Michael Ludwig m...@as-guides.com wrote: Rom Sok schrieb: Here is the error from the console: * [19:17:38.683] com.caucho.config.LineConfigException: /C:/resin/conf/app-default.xml:49: `romsok_srv' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.* I think the servlet identified by romsok_srv will have to be made available to the servlet engine on startup for general use, on a par with: * com.caucho.servlets.DirectoryServlet * com.caucho.servlets.FileServlet * com.caucho.jsp.JspServlet * com.caucho.jsp.XtpServlet So try putting the classes in $RESIN_HOME/lib and not in WEB-INF/classes. Does that work? -- 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
[Resin-interest] Compiling Servlets in Eclipse Breaks the app
Hi, I ran into a problem. I created an Eclipse project and I use it as the deploy directory as well in Resin, but I am also using some code that was compiled a long time ago not by me. It works fine until I attempt to compile the servlet classes in Eclipse - then I get notices from Resin on the console, that it cannot find those servlet classes even though they are right there under the classes directory in WEB-INF. Could anyone please suggest why this might be happening? Thanks, Ramy. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Compiling Servlets in Eclipse Breaks the app
These are the only packages the class depends on: * import java.io.*; import java.sql.*; import javax.sql.*; import javax.naming.*; import javax.servlet.*; import javax.servlet.http.*; import java.util.*;* Here is the error from the console: * [19:17:38.683] com.caucho.config.LineConfigException: /C:/resin/conf/app-default.xml:49: `romsok_srv' is not a known servlet. Servlets belong in the classpath, often in WEB-INF/classes.* On Fri, Sep 18, 2009 at 5:24 PM, Scott Ferguson f...@caucho.com wrote: On Sep 18, 2009, at 1:36 PM, Rom Sok wrote: Hi, I ran into a problem. I created an Eclipse project and I use it as the deploy directory as well in Resin, but I am also using some code that was compiled a long time ago not by me. It works fine until I attempt to compile the servlet classes in Eclipse - then I get notices from Resin on the console, that it cannot find those servlet classes even though they are right there under the classes directory in WEB-INF. Could anyone please suggest why this might be happening? Do you know if those classes depend on a library that might be missing? The JDK can throw some misleading ClassNotFoundExceptions when the class exists, but one of its dependencies does not exist. (Hmm. It might be possible in the future for Resin to modify the error a bit, so you can distinguish between the two cases.) -- Scott Thanks, Ramy. ___ 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
[Resin-interest] Integrating Resin with NetBeans
Hi, I am trying to set up NetBeans to build a Web App, and it requires specifying the server I will be using. It is a shame that I can't set it up generically without tying it to a particular server, but anyway, I am using Resin, and cannot find it in the list of servers NetBeans gives. Could someone please tell me how I can add Resin to that list? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Cannot Start Resin on Vista
Hi, I am new to it so apologize for the newbie question. I have Windows Vista. I installed JRE JDK 6. I downloaded Resin. I am running *resin start* and getting the following error: *Resin/4.0.1 can't start -server '' for watchdog at 127.0.0.1:6600. WatchdogClient[]: watchdog start failed because of 'java.io.FileNotFoundException: error:'* Nothing useful in the logs. Could anyone please suggest why this may be happening? Thanks. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest