Re: Finalizing classes in common or shared directories

2008-03-17 Thread Tushar Madhukar
Thanx, Chris. Looks like this should solve my purpose. Will check it out and get back. Regards On Fri, Mar 14, 2008 at 8:17 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tushar, Tushar Madhukar wrote: | Is there a way by which Tomcat can

cluster problem (sessions lost)

2008-03-17 Thread Ronald Klop
Hello, I have this problem in which there is very little data to get to a solution. - Running a 5 node cluster of 5.5.23 on java 1.5.0_10. Debian 4.0 and kernel 2.6.22.18-SMP. - It runs behind a Linux LVS which balances the connections over the cluster. - Attached is my server.xml. - Sessions

Re: Tomcat on Leopard

2008-03-17 Thread Gareth Howells
The OP should use either vi (if they're brave or have experience in it) nano is available on OS X too - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: Many Java Processes

2008-03-17 Thread Stephen Nelson-Smith
On Thu, Mar 13, 2008 at 1:02 PM, Christopher Schultz [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen Nelson-Smith wrote: | I've noticed on one machine (4.1.31 / RHEL 3) as soon as I start Java | I see many Java processes: These are threads,

about java.lang.outofmemory error

2008-03-17 Thread hns
hi i have developed one web application which contains eclipse birt 2.2 it runs sucessfuly from 2 months but now while data inceresse it cause problem of showing one report and gives error java.lang.outofmemory error i have used tomcat 5.5.25 and jdk 1.5 i feel this is the problem of tomcat

RE: about java.lang.outofmemory error

2008-03-17 Thread Caldarale, Charles R
From: hns [mailto:[EMAIL PROTECTED] Subject: about java.lang.outofmemory error i feel this is the problem of tomcat 5.5 memory allocation Extremely unlikely. The most probable cause is either a memory leak in your webapp or you simply have too much data for whatever size heap you have

Re: about java.lang.outofmemory error

2008-03-17 Thread David Fisher
I don't know about BIRT (other than it is a project to generate Excel reports), but I do know that in Apache POI when you read and write an Excel spreadsheet everything is done in memory, and a large amount of memory needs to be available if your spreadsheet is large. I add the following

RES: about java.lang.outofmemory error

2008-03-17 Thread Milanez, Marcus
Hello, Just be aware that increasing memory isn't always the best option. In most cases you should decrease memory instead, giving GC a chance to run. If you increase memory, it may never run (realising unused resources) and your process may never be able to allocate the amount you specify...

RE: about java.lang.outofmemory error

2008-03-17 Thread Caldarale, Charles R
From: Milanez, Marcus [mailto:[EMAIL PROTECTED] Subject: RES: about java.lang.outofmemory error Just be aware that increasing memory isn't always the best option. In most cases you should decrease memory instead, giving GC a chance to run. If you increase memory, it may never run

Global Naming Resources

2008-03-17 Thread Stephen Nelson-Smith
Hello, What is this for: GlobalNamingResources Environment name=simpleValue override=true type=java.lang.Integer value=30/ Resource auth=Container description=User database that can be updated and saved name=UserDatabase scope=Shareable type=org.apache.catalina.UserDatabase/

RES: about java.lang.outofmemory error

2008-03-17 Thread Milanez, Marcus
Chuck, Sorry if I haven't been clear enough, but we did have several situations in which such a thing happened in production. We'd specified too much memory to tomcat, and as our server shared its physical with other applications such as IIS, GC never (ever) ran and Tomcat proccess could never

Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Hi Thanks for the tip. While I am very grateful for your advice, I am not sure I like either of the approaches. I was hoping just to call a Tomcat API function directly from my web application. Is'nt there a method called restart() or something? JMX seems like overkill since I do not need to

Re: RES: about java.lang.outofmemory error

2008-03-17 Thread Gabe Wong
Milanez, Marcus wrote: Chuck, Sorry if I haven't been clear enough, but we did have several situations in which such a thing happened in production. We'd specified too much memory to tomcat, and as our server shared its physical with other applications such as IIS, GC never (ever) ran and

RES: RES: about java.lang.outofmemory error

2008-03-17 Thread Milanez, Marcus
Gabe, Quite like that. In my case, we didn't exceed the amout of physical memory available, but as our server shared its resources with other applications, it happened lots of times... -Mensagem original- De: Gabe Wong [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 17 de

Re: Tomcat on Leopard

2008-03-17 Thread Steve Ochani
Date sent: Mon, 17 Mar 2008 12:46:03 + From: Gareth Howells [EMAIL PROTECTED] Subject:Re: Tomcat on Leopard To: Tomcat Users List users@tomcat.apache.org Send reply to: Tomcat Users List users@tomcat.apache.org The

RE: about java.lang.outofmemory error

2008-03-17 Thread Caldarale, Charles R
From: Milanez, Marcus [mailto:[EMAIL PROTECTED] Subject: RES: about java.lang.outofmemory error GC never (ever) ran and Tomcat proccess could never acquire the amout of memory we'd specified The fact that GC never ran is irrelevant. As someone else pointed out, you likely configured the

Re: What is the best way to stop the tomcat daemon?

2008-03-17 Thread jarrod
David Smith-2 wrote: You should have gotten a sample service shell script in you jsvc source. Mine has this in the stop portion: jsvc -stop -pidfile $PID_FILE org.apache.catalina.startup.Bootstrap $PID_FILE is a shell variable containing the path of a file with the process id of

Simple File Server

2008-03-17 Thread Kelly.Graus
Hello, I am trying to write a simple file server web app. Basically, an administrator can log in and upload files, and a user can log in and download files that the administrator has given him access to. I know how to do the file uploading and downloading, what I really need to know is where

How to set a maximun log size?

2008-03-17 Thread Tomás Tormo
Hello I'm a newbie Tomcat user and my catalina.out log file is getting too big. How could I set a maximun size in order to force Tomcat to build a new one when the maximun size is reached? I've been searching on the internet but nothing matches what i want to do. Thank you very much

Re: API call to reload Tomcat web application

2008-03-17 Thread Pid
jamieb wrote: Hi Thanks for the tip. While I am very grateful for your advice, I am not sure I like either of the approaches. I was hoping just to call a Tomcat API function directly from my web application. Tomcat provides an API, in the form of JMX. Is'nt there a method called restart()

RE: DelegatingCallableStatement.getInnermostDelegate() -- NoSuchMethodError

2008-03-17 Thread Jim Garrison
-Original Message- From: Phil Steitz [mailto:[EMAIL PROTECTED] Sent: Saturday, March 15, 2008 5:09 PM To: Tomcat Users List Subject: Re: DelegatingCallableStatement.getInnermostDelegate() -- NoSuchMethodError This looks like a signature from dbcp 1.1. Are you sure you used dbcp

RES: about java.lang.outofmemory error

2008-03-17 Thread Milanez, Marcus
Ok... I don't want this thread to be any longer, but the fact is that we haven't configured the heap for mor space them physical plus swap. Anyway, I got it solved when we decreased initial memory and maximum memory. -Mensagem original- De: Caldarale, Charles R [mailto:[EMAIL

RE: Global Naming Resources

2008-03-17 Thread Caldarale, Charles R
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Subject: Global Naming Resources You didn't bother to tell us what Tomcat version you're using, so it's impossible to tell you exactly where the dependencies are or what to do about them. Search for references to the names of the defined

Re: RES: about java.lang.outofmemory error

2008-03-17 Thread David Smith
If I understand the situation right, the sum total of all memory demands (both tomcat's and others) exceded the sum of all memory on the system, both real and virtual. Reducing the memory allocation to tomcat dropped the total demand to a level the system could provide. If that's the case,

Re: Simple File Server

2008-03-17 Thread Gabe Wong
Kelly.Graus wrote: Hello, I am trying to write a simple file server web app. Basically, an administrator can log in and upload files, and a user can log in and download files that the administrator has given him access to. I know how to do the file uploading and downloading, what I really

Session valueUnbound

2008-03-17 Thread Andrew Hole
We're trying to avoid the execution of valueUnbound(), when a Tomcat instance is stopped in a cluster environment. Can this be done by checking whether the thread that is executing valueUnbound() is a daemon or not? In the tests we have performed, the only thread running valueUnbound(),

UTF-8 encoding problems

2008-03-17 Thread Thompson,Roger
Environment: Tomcat 5.5.20, no apache frontend. Running XSLTFIlter and urlrewrite in front of the tomcat. WE are implementing a RESTful webservice (tspilot) on top of a SRU service on the connector going into tomcat I have: Connector port=1 allowTrace=true

Help with TomCat 6.0 SSI

2008-03-17 Thread Steve Major
Hello, I'm new to the list and fairly new to TomCat. I've used it to deploy simple apps, but now need to get some SSI involved. I've followed the How To located here: http://tomcat.apache.org/tomcat-6.0-doc/ssi-howto.html Two problems: 1) when modifying my web.xml conf as instructed,

Re: How to set a maximun log size?

2008-03-17 Thread Mark Thomas
Tomás Tormo wrote: Hello I'm a newbie Tomcat user and my catalina.out log file is getting too big. How could I set a maximun size in order to force Tomcat to build a new one when the maximun size is reached? I've been searching on the internet but nothing matches what i want to do.

Re: UTF-8 encoding problems

2008-03-17 Thread Mark Thomas
Thompson,Roger wrote: WHere else besides the connector definition in the server.xml, should I look to find this. The implementor of the SRW/U code is convinced that the problem is in tomcat some where as he does not get this same error. http://wiki.apache.org/tomcat/FAQ/CharacterEncoding#Q4

Re: Help with TomCat 6.0 SSI

2008-03-17 Thread Mark Thomas
Steve Major wrote: I don't have a servlets-ssi.renametojar file nor an existing servlets-ssi.jar. I downloaded various versions of 6.0.x and it doesn't appear to be a part of any of those archives. I can only find that file in archives of TomCat 5.5. You can ignore this. The classes you

Tomcat to Apache connection dies

2008-03-17 Thread John Moore
Problem: The communication via mod_jk between Apache and Tomcat appears to suddenly become exhausted and cease to be available. Versions: apache-tomcat-5.5.23.tar.gz httpd-2.0.59.tar.gz tomcat-connectors-1.2.21-src.tar.gz managerx-5.5-1.7.2 CentOS 4.6 (final) Symptom: Apache suddenly

Re: Tomcat to Apache connection dies

2008-03-17 Thread Rainer Jung
Hi John, John Moore schrieb: Problem: The communication via mod_jk between Apache and Tomcat appears to suddenly become exhausted and cease to be available. Please have a look at your mod_jk log file and look for '[error]' messages. Around the error messages there should also be additional

Re: Help with TomCat 6.0 SSI

2008-03-17 Thread Steve Major
Thanks very much, I believe I want an entry in my context.xml something like: Context path=/myapplication privileged=true docBase=/usr/local/tomcat/server/webapps/myapplication /Context Thanks again for getting me in the right direction. -Steve On Mar 17, 2008, at 2:59 PM, Mark

RE: Help with TomCat 6.0 SSI

2008-03-17 Thread Caldarale, Charles R
From: Steve Major [mailto:[EMAIL PROTECTED] Subject: Re: Help with TomCat 6.0 SSI Thanks very much, I believe I want an entry in my context.xml something like: Context path=/myapplication privileged=true docBase=/usr/local/tomcat/server/webapps/myapplication /Context No,

JDBC access logging

2008-03-17 Thread Gregory Gerard
Hello, I'm not certain if this message is more correctly posted to the TC dev list but I think this is more of an end user of TC kind of question... I'd like to use a database to consolidate my access logs (many servers). 1. Performance impact? I don't know if the Valve have any ability

Re: UTF-8 encoding problems

2008-03-17 Thread Mark Thomas
Thompson,Roger wrote: I saw that--All it really says is to set URIEncoding=UTF-8 the tips say to use POST-- cannot do in a RESTful service. Have you actually tried the test? Did it work? If you read the sample code it also points to a number of other things the service needs to do in terms

RE: UTF-8 encoding problems

2008-03-17 Thread Thompson,Roger
thanks, will try the TcpMon -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Monday, March 17, 2008 4:10 PM To: Tomcat Users List Subject: Re: UTF-8 encoding problems Thompson,Roger wrote: I saw that--All it really says is to set URIEncoding=UTF-8 the tips say to

Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Hi There I had a look at Tomcat's Manager application the reload(..) function reveals a hint: .. Context context = (Context) host.findChild(path); .. context.reload(); This should do the trick? Any idea on how to get the tomcat context object... from ActionServlet or ModuleConfig

Re: API call to reload Tomcat web application

2008-03-17 Thread jamieb
Sorry I didn't mean to say ActionServlet or ModuleConfig objects...these are struts based objects.. more generally, from within a Tomcat web application... how do you access the Context object? Thanks Jamie jamieb wrote: Hi There I had a look at Tomcat's Manager application the

Re: Tomcat to Apache connection dies

2008-03-17 Thread John Moore
Rainer Jung wrote: Please have a look at your mod_jk log file and look for '[error]' messages. Around the error messages there should also be additional info messages giving some mor einfo about the root cause. mod_jk.log is empty. OK, you could switch to mod_jk 1.2.26 so we don't have to

Re: Tomcat to Apache connection dies

2008-03-17 Thread Rainer Jung
Hi John, John Moore schrieb: Rainer Jung wrote: Please have a look at your mod_jk log file and look for '[error]' messages. Around the error messages there should also be additional info messages giving some mor einfo about the root cause. mod_jk.log is empty. VERY strange. Set

Making the most of 8G of RAM

2008-03-17 Thread Stephen Nelson-Smith
Hi, I have a new machine with 8G of RAM, running a 32 bit 2.6 kernel (CentOS 5). It is running an application inside 4.1.37 with Java 1.4.2. Given that we only have a 32 bit address space, is it fair to say that I can't use more than 2G of RAM for my Java virtual machine? I tried to prove this

Re: Making the most of 8G of RAM

2008-03-17 Thread David Delbecq
Stephen Nelson-Smith a écrit : Hi, I have a new machine with 8G of RAM, running a 32 bit 2.6 kernel (CentOS 5). It is running an application inside 4.1.37 with Java 1.4.2. Given that we only have a 32 bit address space, is it fair to say that I can't use more than 2G of RAM for my Java

RE: Making the most of 8G of RAM

2008-03-17 Thread Caldarale, Charles R
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Subject: Making the most of 8G of RAM Given that we only have a 32 bit address space, is it fair to say that I can't use more than 2G of RAM for my Java virtual machine? Most 32-bit Linux systems will give you 3GB of virtual space (not

Re: Making the most of 8G of RAM

2008-03-17 Thread Stephen Nelson-Smith
On Mon, Mar 17, 2008 at 10:53 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: but so far I've not seen memory usage go over 1G. There is (or at least was) a bug in the Sun 1.4.2 JVM that didn't do the arithmetic right when heap sizes were over 2GB due to treating some unsigned values

RE: Making the most of 8G of RAM

2008-03-17 Thread Caldarale, Charles R
From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] Subject: Re: Making the most of 8G of RAM I plan to test running with a newer JVM shortly. I have been told by the developers that the application needs to run under 1.4.2. We shall see. Unless the app uses the keyword enum or the

Re: Help with TomCat 6.0 SSI

2008-03-17 Thread Steve Major
Thanks, my webapp has neither a META-INF directory or a context.xml file anywhere in it's directory structure. I tried creating a META- INF/context.xml in my webapp's root directory, but that didn't work. I still get: Servlet of class org.apache.catalina.servlets.SSIServlet is privileged

Re: Making the most of 8G of RAM

2008-03-17 Thread brien colwell
If one of your webapps could use a faster database or filesystem, you might look into using a ramdisk. Any program that needs 8gb of RAM to run seems suspect. Large amounts of data should be abstracted through the filesystem and dealt with as files. On Mon, Mar 17, 2008 at 4:21 PM, Caldarale,

Re: Making the most of 8G of RAM

2008-03-17 Thread Stephen Nelson-Smith
On Mon, Mar 17, 2008 at 11:21 PM, Caldarale, Charles R [EMAIL PROTECTED] wrote: From: Stephen Nelson-Smith [mailto:[EMAIL PROTECTED] How about running eg 3 x xen vms? The machine seems rarely pushed for CPU, and with 3 vms I could load balance across them. Why bother with xen? If you

RE: Help with TomCat 6.0 SSI

2008-03-17 Thread Caldarale, Charles R
From: Steve Major [mailto:[EMAIL PROTECTED] Subject: Re: Help with TomCat 6.0 SSI Does this mean I need to revert to putting it in my server.xml? No, it means you've got something else wrong. Make sure your webapp's directory structure is correct by comparing it to the manager and

Re: Tomcat to Apache connection dies

2008-03-17 Thread John Moore
Rainer Jung wrote: Which connector do you use? The usual Coyote (Jav) connector, or the native APR connector (also called tcnative)? Hmm.. good question.. I follow the directions, compile and it (make install) puts the mod_jk.so in the ../apache/modules directory. I would guess it is the

Re: Tomcat to Apache connection dies

2008-03-17 Thread Martin Gainty
pls post the mod_jk.log M- - Original Message - From: John Moore [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, March 17, 2008 8:10 PM Subject: Re: Tomcat to Apache connection dies Rainer Jung wrote: Which connector do you use? The usual Coyote (Jav)

Re: Making the most of 8G of RAM

2008-03-17 Thread Filip Hanik - Dev Lists
there is a recorded webinar called Inside the Java Virtual Machine http://www.covalent.net/services/training/webinars.html it's one hour spent demystifying all you need to know about the JVM memory usage, once you've understood that, you'll have a very different perspective on -Xmx Filip

Re: DBCP: Threads sitting forever in getConnection()?

2008-03-17 Thread Cattapan
You should set the maxWait parameter. On Sun, Mar 16, 2008 at 5:29 PM, rohitmp [EMAIL PROTECTED] wrote: HI All, I too am facing the same issue. But in contrast i have my resource setup in context.xml only But still tomcat is waiting indefinitely to to get a connection. My context file

Re: Tomcat to Apache connection dies

2008-03-17 Thread John Moore
Martin Gainty wrote: pls post the mod_jk.log Thank you for taking an interest.. Unfortunately the log is empty.. Rainer suggested that I needed to set the log level or that something was wrong in that area as well. John..