Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: My $0.02: do not run tomcat as root. Why? For security purposes. One should run processes/services with lowest privileges possible. Is there any reason you have to run it as root? If so, implement a lightweight daemon that will

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread André Warnier
Thomas Freitag wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Jakub, On 05/06/2011 02:38 AM, Jakub Królikowski wrote: VM arguments: -Djava.util.logging.config.file=/usr/lib/tomcat/conf/logging.properties -Xmx3000m -Xms1500m -Xmn700m -XX:PermSize=768m -XX:MaxPermSize=1000m

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 6 May 2011 02:38:39 +0200, Jakub Królikowski wrote: Well, my app is under intensive development now and I need to reload context quite often. I know it's a big numbers, but without that after few reloads I'm getting a memory exception. Tomcat starts up quickly enough (IMO) on modern

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: Naive question : and is this a normal thing to happen, or does it indicate a problem ? Unfortunately it's a normal thing when redeploying hibernate webapps. -- Mikolaj Rydzewski m...@ceti.pl

Why deleting of context.xml is NOT optional ? (after deploying the app)

2011-05-06 Thread joe.k
Hi there, all we know that once the application is autodeployed, Tomcat automatically deletes the context xml files related with this webapp. it was written a lot of about this issue already and actually Tomcat developers say that it's by design, so it is NOT a bug. I would strongly disagree

Re: storing images

2011-05-06 Thread Mark Thomas
On 06/05/2011 01:19, alexis wrote: What i did (im testing and profiling it) is. As the images are around 10/12 and each image has around 30 to 35k. Im storing the images as servletcontext attribute. So calling to the servlet with ?code=1 builds and stores image1 on servlet context. And

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mark Thomas
On 06/05/2011 08:41, Mikolaj Rydzewski wrote: On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: My $0.02: do not run tomcat as root. Why? For security purposes. One should run processes/services with lowest privileges possible. +1 Is there any reason you have to run it as

Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

2011-05-06 Thread Mark Thomas
On 06/05/2011 09:08, jo...@centrum.cz wrote: Hi there, all we know that once the application is autodeployed, Tomcat automatically deletes the context xml files related with this webapp. Huh? We don't all know that. You are going to have to explain yourself more clearly. No files are

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Dmitri Pissarenko
Hello! Tomcat is capable of generating several log files depending upon the configuration. Are you using the default logging configuration? Yes. I just downloaded Tomcat and dropped my WAR file into the webapps directory. Check any of the files in logs/* to see if any of them have error

Re: [slightly OT] Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread André Warnier
Mikolaj Rydzewski wrote: On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: Naive question : and is this a normal thing to happen, or does it indicate a problem ? Unfortunately it's a normal thing when redeploying hibernate webapps. My question is more at the intellectual curiosity

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 9:47 AM, Mikolaj Rydzewski m...@ceti.pl wrote: On Fri, 06 May 2011 09:42:12 +0200, André Warnier wrote: Naive question : and is this a normal thing to happen, or does it indicate a problem ? Unfortunately it's a normal thing when redeploying hibernate webapps. --

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 10:10 AM, Mark Thomas ma...@apache.org wrote: On 06/05/2011 08:41, Mikolaj Rydzewski wrote: On Fri, 6 May 2011 02:35:17 +0200, Jakub Królikowski wrote: My $0.02: do not run tomcat as root. Why? For security purposes. One should run processes/services with lowest

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Jakub Królikowski
On Fri, May 6, 2011 at 9:45 AM, Mikolaj Rydzewski m...@ceti.pl wrote: On Fri, 6 May 2011 02:38:39 +0200, Jakub Królikowski wrote: Well, my app is under intensive development now and I need to reload context quite often. I know it's a big numbers, but without that after few reloads I'm

Re: [slightly OT] Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mikolaj Rydzewski
On Fri, 06 May 2011 11:50:54 +0200, André Warnier wrote: My question is more at the intellectual curiosity level than for practical reasons,since I am not using Hibernate. But to insist, is this then a Hibernate bug, or is it normal that restarting an application would lead to (what I see as)

Re: Slow SSL connections after Tomcat 5 to 7 migration

2011-05-06 Thread Michał Kapituła
W dniu 2011-05-05 18:50, Christopher Schultz pisze: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michał, On 5/5/2011 10:21 AM, Michał Kapituła wrote: I thought that seperate SSL Handshake could be made for each of the requests, but I can't see such behaviour in the dumps. Only one or zero

Re: storing images

2011-05-06 Thread alexis
It's ok, theres no need to keep or persist images on reloads/restart/reboots. Since images are graphs generates with jfreechart on measurements done live by the same webapp. So, upon reboot if the getattribute from servletcontext requesting an image returns null, i return a message from the

Re: storing images

2011-05-06 Thread alexis
Another consideration is that the webapp, has limited users quantity, tops 25 (upon request of the customer) i made a test last night with a load generator and i sent 300 users with 5 requests per second during 30 minutes and it worked without any problem. Enviado desde blackberry

Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

2011-05-06 Thread joe.k
Hi Mark, hmm, definitely you are right that the files are deleted on undeploy not deploy but don't you think it doesn't matter from the user's point of view ? We are talking about autodeploying the webapp ! So you say that's definitely fixed for Tomcat 7, but still not fixed in Tomcat 6, thank

Re: storing images

2011-05-06 Thread Thad Humphries
I'd store the image to java.io.tmpdir and retrieve it with a servlet. I doing this now with my Ajax application. On Thu, May 5, 2011 at 2:19 PM, alexis alz...@gmail.com wrote: Hello all, im facing an issue, ive been testing for a while different approaches without success. I have a servlet

Re: storing images

2011-05-06 Thread sebb
If multiple threads try to create the image at the same time it is possible that one thread will see a partial file - or the file may be locked. If you are not doing this already, I suggest creating the file with a unique temporary name and then renaming it once complete. The rename may fail if

Re: storing images

2011-05-06 Thread alexis
Image is built using a jfreechart object, once created it's stored as attribute in servletcontext, at this stage image is complete before the set. What im not sure if setattribute is synchronized, if not i can synchronize the method that creates and store the image. Enviado desde blackberry

Re: storing images

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 8:19 PM, alexis wrote: Im storing the images as servletcontext attribute. Uh... in memory? That's a bad idea IMO for two reasons: 1. Large memory requirements 2. Likely repeated encoding into a file format like JPEG, PNG, etc.

Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, On 5/6/2011 8:29 AM, jo...@centrum.cz wrote: hmm, definitely you are right that the files are deleted on undeploy not deploy but don't you think it doesn't matter from the user's point of view ? Precision counts when describing bugs. Please

RE: storing images

2011-05-06 Thread Joseph Morgan
Alexis, We do this exact same thing all the time. I solve the concurrency on the image problem by adding a small session hash value to the image name. It does mean we may get 10 of the same images if 10 concurrent access are happening, but it also allows us clean things up without worry of

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitri, On 5/6/2011 5:25 AM, Dmitri Pissarenko wrote: Tomcat is capable of generating several log files depending upon the configuration. Are you using the default logging configuration? Yes. I just downloaded Tomcat and dropped my WAR file into

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Dmitri Pissarenko
Hello! Now I found the error. It was a malformed context.xml file. Thanks for your help. Best regards Dmitri 2011/5/6 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitri, On 5/6/2011 5:25 AM, Dmitri Pissarenko wrote: Tomcat is capable

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitri, On 5/6/2011 10:19 AM, Dmitri Pissarenko wrote: Now I found the error. It was a malformed context.xml file. Perhaps next time you won't be so anxious to flame the members of this community before checking-out your own webapp. - -chris

problem with missing library(s)--google app engine

2011-05-06 Thread Jay, Michael
I am trying to write a web app to do authentication through google. My development environment is eclipse with the google GAE and jetty. I get no compile time errors--and I copied the web module folder (named *war* in eclipse) manually into webapps in tomcat. No .war file involved. The app runs

Re: problem with missing library(s)--google app engine

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 5/6/2011 10:26 AM, Jay, Michael wrote: This package is in the .jar. User is a class in the package. createLoginURL() is a method in the UserServiceFactory class, also in the package. And yet, live in tomcat . . . error:

Re: storing images

2011-05-06 Thread alexis
I understand, but i have top 12 images of 35kbytes, no more. Encoding load is an issue yes, but the images are reflecting callcenters call queues and some stuff related so the need to refresh and rebuild the images is a requirement. What im thinking is to avoid the generation upon servlet calls

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread David kerber
On 5/6/2011 10:24 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dmitri, On 5/6/2011 10:19 AM, Dmitri Pissarenko wrote: Now I found the error. It was a malformed context.xml file. Perhaps next time you won't be so anxious to flame the members of this community

Re: Why deleting of context.xml is NOT optional ? (after deploying the app)

2011-05-06 Thread joe.k
Chris, thank you for your answer. Best regards, Joe __ Od: Christopher Schultz ch...@christopherschultz.net Komu: Tomcat Users List users@tomcat.apache.org Datum: 06.05.2011 16:05 Předmět: Re: Why deleting of context.xml is NOT

Re: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Dmitri Pissarenko
Perhaps next time you won't be so anxious to flame the members of this community before checking-out your own webapp. I don't understand what you are talking about. Best regards Dmitri 2011/5/6 Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

RE: Deployment problem on Tomcat 7.0.12

2011-05-06 Thread Caldarale, Charles R
From: Dmitri Pissarenko [mailto:dmitri.pissare...@gmail.com] Subject: Re: Deployment problem on Tomcat 7.0.12 Perhaps next time you won't be so anxious to flame the members of this community before checking-out your own webapp. I don't understand what you are talking about. I think

Logging with slf4j in Tomcat 7

2011-05-06 Thread Dmitri Pissarenko
Hello! In my application I use slf4j for logging. The logging messages appear in the console output like 17:05:31.985 [http-bio-8080-exec-1] DEBUG a.s.p.i.p.DefaultPersistence - 013.008: Daily plans (start) 17:05:31.985 [http-bio-8080-exec-1] DEBUG a.s.p.i.p.DefaultPersistence - session: null

Re: Preventing or recovering from SocketException: Interrupted system call

2011-05-06 Thread Martin Kuen
Hi Joel, I have done some ipc programming on linux a while ago . . I hardly ever looked at the jvm's source code and I don't have too much experience when it comes to c/c++ cross platform development. However, as I didn't see any responses so far, here are my two cents: On Thu, May 5, 2011 at

Re: Logging with slf4j in Tomcat 7

2011-05-06 Thread chris derham
In my application I use slf4j for logging. The logging messages appear in the console output like 17:05:31.985 [http-bio-8080-exec-1] DEBUG a.s.p.i.p.DefaultPersistence - 013.008: Daily plans (start) 17:05:31.985 [http-bio-8080-exec-1] DEBUG a.s.p.i.p.DefaultPersistence - session: null

RE: storing images

2011-05-06 Thread Martin Gainty
depends on available bandwidth as well as the memory available on the client side if bandwidth is an issue you may want to implement some manner of compression with jai (Java Advanced Imaging)

Re: storing images

2011-05-06 Thread alexis
small images (never more than 35kB) in a LAN. :) On May 6, 2011, at 1:12 PM, Martin Gainty wrote: depends on available bandwidth as well as the memory available on the client side if bandwidth is an issue you may want to implement some manner of compression with jai (Java Advanced

Re: Tomcat 6 crash, no log, no hs_err_pid file

2011-05-06 Thread Mark Eggers
From: Jakub Królikowski ja...@pakamera.com.pl To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Thursday, May 5, 2011 5:34 PM Subject: Re: Tomcat 6 crash, no log, no hs_err_pid file On Thu, May 5, 2011 at 3:03 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: