Log errors to console during startup

2007-05-16 Thread Mike Quilleash
Hi all, Is there an easy way to get startup errors/exceptions (e.g. exception caught by the container thrown by a servlet context listener) on the console? By default it logs them to the a file but doesn't display them on the console. I just get a SEVERE log message on the console. Cheers.

el-api.jar

2007-05-16 Thread Mike Quilleash
Hi all, I've run into a minor problem with the el-api.jar and deployment. It looks like Tomcat 6 now includes the el-api.jar as part of the deployment. If I have an el-api.jar (which I link against for development) into my web application's WEB-INF/lib directory, or will the clash annoy it? I

RE: Paths in CSS files

2007-03-28 Thread Mike Quilleash
r example, if you are selling some product, it has product images, etc. To me, it's just one decision which has to made. There are pros and cons of that but we we have to accept both. Regards, Dhaval - Original Message From: Mike Quilleash <[EMAIL PROTECTED]> To: Tomcat Use

RE: Paths in CSS files

2007-03-27 Thread Mike Quilleash
Thanks for the reply. *I* don't want to use contexts but I'm sure some of our difficult clients will ;) Is virtual hosts Tomcat specific as we potentially need to support other web containers too which might not have virtual host capability. Is is part of the servlet specification or just a Tomc

RE: Paths in CSS files

2007-03-27 Thread Mike Quilleash
our webapp in such a way that all request to /image/* goes to context/image/* Hope it helps. Regards, D - Original Message From: Mike Quilleash <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, March 27, 2007 9:21:38 AM Subject: Paths in CSS files Hi all, I have

Paths in CSS files

2007-03-27 Thread Mike Quilleash
Hi all, I have a question about accessing resources from within CSS files, images mainly. Take the following CSS snippet. .bt { background:url(/image/box.png) no-repeat 100% 0; margin:0 0 0 18px; height:17px; } Particularly the url "/image/box.png". Potentially my Tomcat web application

RE: Session expiry

2007-03-20 Thread Mike Quilleash
Subject: Re: Session expiry Mike Quilleash wrote: > Does anyone know if there's a method for determining if the Session > for a user has expired since the last request? Basically I have a > Filter that does an "is logged in" check and redirects to a login page > if the

Session expiry

2007-03-19 Thread Mike Quilleash
Hi there, Does anyone know if there's a method for determining if the Session for a user has expired since the last request? Basically I have a Filter that does an "is logged in" check and redirects to a login page if the user is not logged in. This works fine but in the case of Session expiry

RE: Connection pool problem DBCP - 4.1.3

2007-02-19 Thread Mike Quilleash
Need a bit more info. DB type and version, JDBC driver version, ResultSet loop/access code. Generally the pseudo code should be... Open Connection try { Prepare Statement try { Execute Query try { while ( resultSet.next() ) { // process row here }

RE: PermGen space [ot]

2007-02-16 Thread Mike Quilleash
I'm not sure about this assertion myself. The GC is capable of freeing up cyclical references. The problem comes when the container class loaders have a reference to an application class. I don't believe singletons cause this problem on their own as they should be cleaned up when the application

RE: PermGen space

2007-02-16 Thread Mike Quilleash
I think it's more likely that you've just tipped over the edge of the 64MB limit in which case changing it to 128MB will fix the problem. I've had this before with apps using stuff like hibernate that generates a lot of proxy classes. Think around 300 hibernate classes I ran into this and had to u

RE: multiple requests from the same client (only 2 threads are activated!)

2007-02-02 Thread Mike Quilleash
I believe the HTTP 1.1 spec specifies that a maximum of two simultaneous connections should be allowed by a remote client to a server. HTTP 1.0 allowed four connections. Any additional connections will be blocked until one of the others is terminated. I believe these restrictions are supposed

RE: Runtime.getRuntime.exec() problem

2007-01-15 Thread Mike Quilleash
Process is a fiddly class to work with at the best of times. I can't say I've ever come across the exec of a Process not returning, when I've used it it will return immediatly from the exec() and you have to use Process.waitFor() if you want to wait for the program to terminate. A common problem

RE: Tomcat and long startup time (hibernate)

2006-12-01 Thread Mike Quilleash
As far as I'm aware (I did a quick check) all the bytecode gen'ing is done in one place which as at the Entity level. Because the Collection API is all interfaces it's easy to swap in a lazy collection implementation without resorting to bytecode. Hopefully he'll add it in to the core as it's a r

RE: Tomcat and long startup time (hibernate)

2006-11-29 Thread Mike Quilleash
Thanks for the reply. I've looked at this issue in hibernate's JIRA and I noticed a post you made about the possibility of moving the laziness into the EntityPersistor instead. From my previous experience the majority of the hibernate startup time is building the proxy objects (cglib) for lazy en

RE: Memory leaks on webapp redeploy

2006-11-29 Thread Mike Quilleash
ovember 2006 23:37 To: Tomcat Users List Subject: Re: Memory leaks on webapp redeploy On 11/28/06, Mike Quilleash <[EMAIL PROTECTED]> wrote: > As a brief aside I found the following code in the > WebAppClassLoader.releaseResources() of Tomcat 6, so it looks like > some of the well-

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Mike Quilleash
If things have changed in the last year and someone could recommend a good profiler please let me know. Cheers. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 28 November 2006 18:09 To: Tomcat Users List Subject: RE: Memory leaks on webapp redeploy > From: M

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Mike Quilleash
I am also experiencing this problem in a webapp. My understanding of Tomcat classloading if as follows, please correct if wrong. Tomcat has a shared ClassLoader that can load up classes that all webapps can use. This ClassLoader will never be GCed as it lives for the lifetime of the Tomcat proc