Re: [OT] Re: JavaScript/JSP Question
On Wed, Nov 24, 2004 at 07:11:31AM -0500, Ben Souther wrote: This question is not tomcat specific so I'm marking [OT]. I believe Javascript has the same startsWith/endsWith string functionality that Java has. You should be able to simulate that pretty easily. js also has full regular expression support through the RegExp class and the String.match function. Although that's might be a more difficult choice for exactly emulating the database LIKE function as all the other regexp features would need to be escaped. eric - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] SCWCD Exam 1.4
I'm part way through the Head First book. I really didn't like Head First Java though it got rave reviews when it came out. And I did like the first version of the Manning SCWCD book. That said I'm finding the Head First Servlets and JSP book enjoyable, though I've only read the first 150 pages or so. The authors are from www.javaranch.com and I'm sure you can get plenty of additional information there. Of course a lot of fans of the Head First books hang out there too. Whether you could actually use it for certification I'm not sure. I think that you probably could based on what I've read so far because it strives to get you to understand servlets, jsp and everything connected with them on a basic level. It does so with jokes, cartoons, fill in the blank pages, etc. I'm sure a lot of people will hate this manner of learning just as others can't stand the drier approach of the Manning book. My feeling is that if you are not someone who gets offended by jokey material that you can read this book and learn enough to pass the exam, esp. if you also read the specs as the book suggests. But take this with a grain of salt as I've not taken the 1.4 exam and I'm only 1/8 of the way through the book. If you like your books serious though, then steer very clear. Hope this helps, Ken -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 12:57 PM To: 'Tomcat Users List' Subject: RE: [OT] SCWCD Exam 1.4 I'd be completely remiss in not mentioning that Manning is putting out a second edition of it's SCWCD study guide. The second edition has been updated for the new exam. Manning's ISBN is 1932394389 (that's the one scheduled for January) HeadFirst is 0596005407 (the one out now) both of them cover the new exam. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 11:49 AM To: 'Tomcat Users List' Subject: RE: [OT] SCWCD Exam 1.4 -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 9:25 AM To: Tomcat Users List Subject: RE: [OT] SCWCD Exam 1.4 The one you found Head First Servlets and JSP appears to me not to be a dedicated exam guide. I think the only reason it Not sure what copy you're looking at. Mine has a black bar across the top that say ... Study Guide The subtitle of the book is Passing the Sun Certified Web Component Developer Exam and it mentions on the cover that it is Written by the co-developers of the real SCWCD exam for J2EE 1.4. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 5.5.4, JDK1.5.0 and JSP compile error
We recently tried to upgrade from Tomcat 5.0.25 and JDK 1.4.1 to Tomcat 5.5.4 and JDK 1.5.0 (aka 5.0) and have been successful except for our JSPs. Even a simple test HelloWorld JSP generates the following error: -- org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Type mismatch: cannot convert from Vector to List org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389) org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 56) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- Any ideas? I think I've done a pretty thorough search, but I'm sure it's something simple I'm overlooking. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
Just a wild stab here but did you accidentally copy over any of the old jars from TC4x.. like servlet.jar, jasper-runtime.jar, or jasper-compiler.jar? On Wed, 2004-11-24 at 18:15, Pat Osterday wrote: We recently tried to upgrade from Tomcat 5.0.25 and JDK 1.4.1 to Tomcat 5.5.4 and JDK 1.5.0 (aka 5.0) and have been successful except for our JSPs. Even a simple test HelloWorld JSP generates the following error: -- org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: Type mismatch: cannot convert from Vector to List org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:84) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:3 28) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389) org.apache.jasper.compiler.Compiler.compile(Compiler.java:288) org.apache.jasper.compiler.Compiler.compile(Compiler.java:267) org.apache.jasper.compiler.Compiler.compile(Compiler.java:255) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 56) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 96) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) -- Any ideas? I think I've done a pretty thorough search, but I'm sure it's something simple I'm overlooking. Thanks! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Lots of seemingly dead tomcat processes
Hi All. I've got a bit of an issue with a tomcat installation - I have an ever increasing number of processes, and the system users complain of intermittant slow performance. When a particular request is taking a long time (generally not responding at all - timing out after a couple of minutes) a page-refresh will generally generate a response in a normal time frame (on the order of 1-2 seconds). To me, this is symptomatic of a particular request hitting a dead tomcat process, while the refresh (being a different request) hits a different tomcat process, which responds in a more normal time. I'm a sys-admin type, not a developer, and my tomcat-foo is reasonably weak (but getting stronger, the more I do with it, of course). The system is running on a dual processor 2.8 GHz Xeon box, with 4 gig of ram. Base OS is Debian GNU/Linux I'm using the JRockit JVM, and Tomcat 5.0.27 The JVM and tomcat are in a chroot jail The tomcat server is making SOAP calls to another machine, and talking directly to an MS-SQL box - both the machine to which it makes the SOAP calls and the MS-SQL box show no indications of load. When tomcat is freshly restarted, I have 44 tomcat processes (ps ax | grep jrockit | wc -l). Over time (a number of days) this increases, until it hits around 245 processes, and it goes no higher than this. What I'm looking for is some sort of solution - either some tomcat setting I'm unfamiliar with that might be causing this, or some way outside of Tomcat I can put a band-aid style fix in place - restarting tomcat every X days, but that's uglier than I'd like - I'd far rather identify and fix the problem, than do scheduled restarts. Any assistance or suggestions that any kind soul can offer would be greatly appreciated. Thanks. Andrew -- They sicken of the calm; http://scroll.redemption.co.nz/ That know the storm. http://www.gadgets-weblog.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Test
Just testing to see if this gets to list - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat - problem starting service
Hello All, I just installed Tomcat 5.0.28. The service won't start. See the contents of the log file below. Why is it trying to access C:\Program Files\Oracle\jre\1.1.7? In the install I specified for it to use \D:\Sun\AppServer\jdk\jre. Where is it picking up this value C:\Program Files\Oracle\jre\1.1.7? Thanx, Janet [2004-11-24 14:53:46] [info] Service Tomcat5 name Apache Tomcat [2004-11-24 14:53:47] [info] Service Tomcat5 installed [2004-11-24 14:53:47] [info] Procrun finished. [2004-11-24 14:54:43] [info] Updating service... [2004-11-24 14:54:43] [info] Service Tomcat5 updated [2004-11-24 14:54:43] [info] Update service finished. [2004-11-24 14:54:43] [info] Procrun finished. [2004-11-24 14:54:47] [info] Updating service... [2004-11-24 14:54:47] [info] Service Tomcat5 updated [2004-11-24 14:54:48] [info] Update service finished. [2004-11-24 14:54:48] [info] Procrun finished. [2004-11-24 14:56:43] [info] Running Service... [2004-11-24 14:56:43] [info] Starting service... [2004-11-24 14:56:43] [173 javajni.c] [error] The specified module could not be found. [2004-11-24 14:56:43] [764 prunsrv.c] [error] Failed creating java C:\Program Files\Oracle\jre\1.1.7\bin\javai.dll [2004-11-24 14:56:43] [982 prunsrv.c] [error] ServiceStart returned 1 [2004-11-24 14:56:43] [info] Run service finished. [2004-11-24 14:56:43] [info] Procrun finished. [2004-11-24 14:58:36] [info] Running Service... [2004-11-24 14:58:36] [info] Starting service... [2004-11-24 14:58:36] [173 javajni.c] [error] The specified module could not be found. [2004-11-24 14:58:36] [764 prunsrv.c] [error] Failed creating java C:\Program Files\Oracle\jre\1.1.7\bin\javai.dll [2004-11-24 14:58:36] [982 prunsrv.c] [error] ServiceStart returned 1 [2004-11-24 14:58:36] [info] Run service finished. [2004-11-24 14:58:36] [info] Procrun finished. [2004-11-24 15:46:07] [info] Service Tomcat5 name Apache Tomcat [2004-11-24 15:46:07] [420 service.c] [error] The specified service already exists. [2004-11-24 15:46:07] [514 prunsrv.c] [error] Failed installing Tomcat5 service [2004-11-24 15:46:07] [info] Procrun finished. [2004-11-24 15:47:00] [info] Updating service... [2004-11-24 15:47:00] [info] Service Tomcat5 updated [2004-11-24 15:47:00] [info] Update service finished. [2004-11-24 15:47:00] [info] Procrun finished. [2004-11-24 15:47:01] [info] Updating service... [2004-11-24 15:47:01] [info] Service Tomcat5 updated [2004-11-24 15:47:01] [info] Update service finished. [2004-11-24 15:47:01] [info] Procrun finished. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat - problem starting service
Yep, the installer picked up the wrong JRE. If you installed the Start Menu items you can change that by clicking Start - Programs - Apache Tomcat - Config. then click the Java tab. If not, you'll either have to uninstall/reinstall or change the value in the registry using regedit. On Wed, 2004-11-24 at 19:31, Janet Ciavarelli wrote: Hello All, I just installed Tomcat 5.0.28. The service won't start. See the contents of the log file below. Why is it trying to access C:\Program Files\Oracle\jre\1.1.7? In the install I specified for it to use \D:\Sun\AppServer\jdk\jre. Where is it picking up this value C:\Program Files\Oracle\jre\1.1.7? Thanx, Janet [2004-11-24 14:53:46] [info] Service Tomcat5 name Apache Tomcat [2004-11-24 14:53:47] [info] Service Tomcat5 installed [2004-11-24 14:53:47] [info] Procrun finished. [2004-11-24 14:54:43] [info] Updating service... [2004-11-24 14:54:43] [info] Service Tomcat5 updated [2004-11-24 14:54:43] [info] Update service finished. [2004-11-24 14:54:43] [info] Procrun finished. [2004-11-24 14:54:47] [info] Updating service... [2004-11-24 14:54:47] [info] Service Tomcat5 updated [2004-11-24 14:54:48] [info] Update service finished. [2004-11-24 14:54:48] [info] Procrun finished. [2004-11-24 14:56:43] [info] Running Service... [2004-11-24 14:56:43] [info] Starting service... [2004-11-24 14:56:43] [173 javajni.c] [error] The specified module could not be found. [2004-11-24 14:56:43] [764 prunsrv.c] [error] Failed creating java C:\Program Files\Oracle\jre\1.1.7\bin\javai.dll [2004-11-24 14:56:43] [982 prunsrv.c] [error] ServiceStart returned 1 [2004-11-24 14:56:43] [info] Run service finished. [2004-11-24 14:56:43] [info] Procrun finished. [2004-11-24 14:58:36] [info] Running Service... [2004-11-24 14:58:36] [info] Starting service... [2004-11-24 14:58:36] [173 javajni.c] [error] The specified module could not be found. [2004-11-24 14:58:36] [764 prunsrv.c] [error] Failed creating java C:\Program Files\Oracle\jre\1.1.7\bin\javai.dll [2004-11-24 14:58:36] [982 prunsrv.c] [error] ServiceStart returned 1 [2004-11-24 14:58:36] [info] Run service finished. [2004-11-24 14:58:36] [info] Procrun finished. [2004-11-24 15:46:07] [info] Service Tomcat5 name Apache Tomcat [2004-11-24 15:46:07] [420 service.c] [error] The specified service already exists. [2004-11-24 15:46:07] [514 prunsrv.c] [error] Failed installing Tomcat5 service [2004-11-24 15:46:07] [info] Procrun finished. [2004-11-24 15:47:00] [info] Updating service... [2004-11-24 15:47:00] [info] Service Tomcat5 updated [2004-11-24 15:47:00] [info] Update service finished. [2004-11-24 15:47:00] [info] Procrun finished. [2004-11-24 15:47:01] [info] Updating service... [2004-11-24 15:47:01] [info] Service Tomcat5 updated [2004-11-24 15:47:01] [info] Update service finished. [2004-11-24 15:47:01] [info] Procrun finished. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
Nope. It's a clean install - and I just looked at the common/lib on both directories (5.0 and 5.5) and they are different. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 6:39 PM Subject: Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error Just a wild stab here but did you accidentally copy over any of the old jars from TC4x.. like servlet.jar, jasper-runtime.jar, or jasper-compiler.jar? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
On Wed, 2004-11-24 at 20:17, wasted wrote: Nope. It's a clean install - and I just looked at the common/lib on both directories (5.0 and 5.5) and they are different. And you don't have any of those libraries in your app? WEB-INF/lib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
We have commons-logging and xerces, but nothing from the 5.5 common/lib and definitely nothing related to jasper/jsp compilation that I'm aware of. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 8:37 PM Subject: Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error On Wed, 2004-11-24 at 20:17, wasted wrote: Nope. It's a clean install - and I just looked at the common/lib on both directories (5.0 and 5.5) and they are different. And you don't have any of those libraries in your app? WEB-INF/lib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
Have you tried compiling a helloworld.jsp with a fresh install (before deploying your app) to make certain that the problem is not with Tocmat? It sounds to me like it's finding the wrong jasper classes somewhere. On Wed, 2004-11-24 at 21:10, wasted wrote: We have commons-logging and xerces, but nothing from the 5.5 common/lib and definitely nothing related to jasper/jsp compilation that I'm aware of. - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 8:37 PM Subject: Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error On Wed, 2004-11-24 at 20:17, wasted wrote: Nope. It's a clean install - and I just looked at the common/lib on both directories (5.0 and 5.5) and they are different. And you don't have any of those libraries in your app? WEB-INF/lib - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.commons.digester.Digester error
hi... thanks for ur reply i m not finding any malformation in web.xml this is my web.xml file.. ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app !-- Introduction == -- !-- This document defines default values for *all* web cations -- !-- loaded into this instance of Tomcat. As each application -- !-- deployed, this file is processed, followed by -- !-- /WEB-INF/web.xml deployment descriptor from your -- !-- -- !-- -- !-- WARNING: Do not configure application-specific resources -- !-- They should go in the /WEB-INF/web.xml file in your plication. -- !-- == Built In Servlet Definitions -- !-- The default servlet for all web applications, that serves ic -- !-- resources. It processes all requests that are not mapped to her -- !-- servlets with servlet mappings (defined either here or in your n -- !-- web.xml file. This servlet supports the following tialization-- !-- parameters (default values are in square -- !-- -- !-- debug Debugging detail level for messages ed -- !-- by this servlet. -- !-- -- !-- input Input buffer size (in bytes) when ng -- !-- resources to be served. -- !-- -- !-- listingsShould directory listings be produced if there -- !-- is no welcome file in this directory? [true] -- !-- -- !-- output Output buffer size (in bytes) when ing -- !-- resources to be served. -- !-- -- !-- readonlyIs this context read only, so -- !-- commands like PUT and DELETE -- !-- rejected? -- servlet servlet-namedefault/servlet-name servlet-class org.apache.catalina.servlets.DefaultServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param init-param param-namelistings/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet !-- The invoker servlet, which executes anonymous servlet es -- !-- that have not been defined in a web.xml file. Traditionally, is -- !-- servlet is mapped to URL pattern /servlet/*, but you can map -- !-- to other patterns as well. The extra path info portion of such -- !-- request must be the fully qualified class name of a Java class hat -- !-- implements Servlet (or extends HttpServlet), or the servlet -- !-- of an existing servlet definition. This servlet supports -- !-- following initialization parameters (default values are in are-- !-- -- !-- -- !-- debug Debugging detail level for messages ed -- !-- by this servlet. -- servlet servlet-nameinvoker/servlet-name servlet-class org.apache.catalina.servlets.InvokerServlet /servlet-class init-param param-namedebug/param-name param-value0/param-value /init-param load-on-startup2/load-on-startup /servlet !-- The JSP page compiler and execution servlet, which is the echanism -- !-- used by Tomcat to support JSP pages. Traditionally, this vlet-- !-- is mapped to URL patterh *.jsp. This servlet supports -- !-- following initialization parameters (default values are in are-- !-- -- !-- -- !-- checkInterval If development is false and relaoding is true, -- !-- background compiles are enabled. checkInterval -- !-- is the time in seconds between checks to e -- !-- if a JSP page needs to be recompiled. 0]-- !-- -- !-- compilerWhich compiler Ant should use to compile P -- !-- pages. See the Ant documenation for -- !--
Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error
I don't think I tried that yet. I'll do that when I get back from the Thanksgiving holiday. Thanks for the suggestions! - Original Message - From: Ben Souther [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 24, 2004 9:42 PM Subject: Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error Have you tried compiling a helloworld.jsp with a fresh install (before deploying your app) to make certain that the problem is not with Tocmat? It sounds to me like it's finding the wrong jasper classes somewhere. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.commons.digester.Digester error
On Wed, 2004-11-24 at 22:04, akki wrote: hi... thanks for ur reply i m not finding any malformation in web.xml this is my web.xml file.. This is the default webapp from CATALINA_HOME/conf Check your app's web.xml file CATALINA_HOME/webapps/yourAppName/WEB-INF/web.xml - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: org.apache.commons.digester.Digester error
This is the default webapp from CATALINA_HOME/conf Check your app's web.xml file CATALINA_HOME/webapps/yourAppName/WEB-INF/web.xml default web.xml, I mean - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.lang.OutOfMemoryError: Java heap space
ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ?
Re: java.lang.OutOfMemoryError: Java heap space
It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError: Java heap space
How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Clustering in Tomcat
Hi, I am facing an issue with Tomcat Clustering. With the details provided on the website, I implemented it. The session (session-ID) is not lost when the machine serving it goes down however all session-data (attributes in session) is lost. What can be the issues? To start with, I had two Tomcat on the same machine with only their port numbers changes (4001 and 4002 for cluster). -- Happy Hacking, Gaurav Vaish http://gallery.mastergaurav.org --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.lang.OutOfMemoryError: Java heap space
You're not giving us much to work with. What version of Tomcat are you running? What JVM are you using? What OS are you running on? Does this happen at startup, after an hour, after a month? Have you configured the memory settings for tomcat? If so, what are they? Is there more to this stack trace than you're sharing with us? Here's a page in the Tomcat documentation that deals with memory: http://jakarta.apache.org/tomcat/faq/memory.html Hope it helps. -Ben On Wed, 2004-11-24 at 23:01, Lee Chin Khiong wrote: How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 06:01, Lee Chin Khiong wrote: How to solve this ? Add this line to your catalina.sh for unix: JAVA_OPTS=-Xms128m -Xmx256m Add this line to you catalina.bat for Windows: set JAVA_OPTS=-Xms128m -Xmx256m I normally add this line under the one that start JAVADIR. This will set your minimum heap size -Xms to 128 MB and your memory -Xmx to 256m. You will have to tweak this setting to get the best results, sometimes if you set it too high, Tomcat will not start up (check you catalina.out file). On our live server we have set this option to -Xms1024m and -Xmx2048m. The machine has 8GB of RAM so that is why we set it so high. :) Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Hindsight is an exact science. pgpI5uzi9N6EE.pgp Description: PGP signature
Re: Tomcat 5 and Mail...
On Tuesday 23 November 2004 16:55, Phillip Qin wrote: Okay, I have set the policies and I have built a basic mailer form, now when I try and send an e-mail I get this error: ERROR javax.mail.NoSuchProviderException: smtp at javax.mail.Session.getService(Session.java:611) at javax.mail.Session.getTransport(Session.java:541) at javax.mail.Session.getTransport(Session.java:484) at javax.mail.Session.getTransport(Session.java:464) at javax.mail.Session.getTransport(Session.java:519) at javax.mail.Transport.send0(Transport.java:155) at javax.mail.Transport.send(Transport.java:81) at org.apache.jsp.sendmail_jsp._jspService(sendmail_jsp.java:75) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683) at java.lang.Thread.run(Thread.java:534) /ERROR Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ If anything can go wrong, it will. pgpYfIBB1i00J.pgp Description: PGP signature
RE: java.lang.OutOfMemoryError: Java heap space
I'm using Tomcat 5, jdk1.5, running XP. This happen after a while and I didn't configure the memory, it's default. -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 12:09 PM To: Tomcat Users List Subject: RE: java.lang.OutOfMemoryError: Java heap space You're not giving us much to work with. What version of Tomcat are you running? What JVM are you using? What OS are you running on? Does this happen at startup, after an hour, after a month? Have you configured the memory settings for tomcat? If so, what are they? Is there more to this stack trace than you're sharing with us? Here's a page in the Tomcat documentation that deals with memory: http://jakarta.apache.org/tomcat/faq/memory.html Hope it helps. -Ben On Wed, 2004-11-24 at 23:01, Lee Chin Khiong wrote: How to solve this ? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, November 25, 2004 11:39 AM To: Tomcat Users List Subject: Re: java.lang.OutOfMemoryError: Java heap space It's an error message telling you that your JVM has run out of memory. On Wed, 2004-11-24 at 22:34, Lee Chin Khiong wrote: ERROR : java.lang.OutOfMemoryError: Java heap space. What is this ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.lang.OutOfMemoryError: Java heap space
On Thursday 25 November 2004 07:23, Lee Chin Khiong wrote: I'm using Tomcat 5, jdk1.5, running XP. By default Tomcat only allocates 64MB of memory to the compiler. You also make sure that you don't have a memory leak in your code. Power up the manager/html application and go to server status. Keep refreshing the page and watch if your memory usage just keeps climbing without releasing any memory. This happen after a while and I didn't configure the memory, it's default. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ The reason it's called Grape Nuts is that it contains dextrose, which is also sometimes called grape sugar, and also because Grape Nuts is catchier, in terms of marketing, than A Cross Between Gerbil Food and Gravel, which is what it tastes like. -- Dave Barry, Tips for Writer's pgprkkoXRjji7.pgp Description: PGP signature
[FIXED] Tomcat 5 and Mail...
Hi everybody, Sorry for being a pain but I have fixed this problem. I had the incorrection versions on the mail.jar and activation.jar files on my server. I downloaded the latest from SUN and all is well in the land again. :) Thanks again for all those that offered advice. Regards Q -- Quinton Delpeche Internal Systems Developer Softline VIP Telephone: +27 12 420 7000 Direct:+27 12 420 7007 Facsimile: +27 12 420 7344 http://www.vippayroll.co.za/ Lunatic Asylum, n.: The place where optimism most flourishes. pgpQqGoSjIKPF.pgp Description: PGP signature
Tomcat 5.5.4 fails to recompile JSPs
Hello, I just upgraded my test development box to Tomcat 5.5.4 and Sun's JDK 1.5.0. I just created a simple (the simplest?) web application to test things out. I always go the Ant route (with Tomcat's documentation sample build.xml) and everything went smoothly. Except reloading JSPs. In the past, if I changed a JSP file in the source directory and then issued an ant compile (or just ant) it would put the just changed file into the build directory, which would be picked and recompiled by Tomcat at once (provided, of course, that the app was deployed.) Now, I can't do that with this new setup. Obviously, I'm missing something very simple, but I have searched high and low but found no answer. Not even reloading the application pick the changes up. Undeploying and redeploying does the trick. What am I doing wrong? Best regards, Carlos. Tomcat 5.5.4/JDK 1.5.0/Windows XP development box. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
accessing files within webapps
Hi all, i have build a small form that sends e-mail messages containig an attachment. i have tested the application in 2 separate environments 1 in on a win200 environment 2.the other in a suse linux . i am able to send the message with the attached content on win200. The linux tests have failed . i think this is a prtimitions read problem i have chaned the permitions of TOMCAT_HOME,webapps amd the application where the attachewment resided to 644 still no success any sugestions are welcome Billy Kantartzis IT Specialist OTE SA Operational Systems Branch Organisational and Quallity Devision 99 Kifisias Ave 15124,Marousi, Athens ,Greece Phone +30-210-6117266 email:[EMAIL PROTECTED] -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.289 / Virus Database: 265.4.2 - Release Date: 24/11/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]