RE: Paths in CSS files

2007-03-28 Thread Mike Quilleash
, 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 Users List users@tomcat.apache.org Sent: Tuesday, March 27, 2007 10:32:57 AM Subject: RE: Paths

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: Paths in CSS files

2007-03-27 Thread Mike Quilleash
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 users@tomcat.apache.org Sent: Tuesday, March 27, 2007 9:21:38 AM Subject: Paths in CSS files Hi all, I have a question

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

Session expiry

2007-03-20 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 I

RE: Session expiry

2007-03-20 Thread Mike Quilleash
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 user is not logged in. This works fine but in the case

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

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

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

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

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

RE: Memory leaks on webapp redeploy

2006-11-29 Thread Mike Quilleash
: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-known caches are being cleared out

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

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