RE: Reducing network traffic for rollover images

2004-10-03 Thread Keith Bottner
I am going to have to disagree with the group. I had the same problem and solved it by creating a Filter that sets the appropriate response header information. I have included the configuration and the code here. web.xml entries that are necessary: filter

RE: Using JDBC Data source from a business class

2004-09-06 Thread Keith Bottner
I believe you also need an entry in your web.xml file that looks something like this (obviously changed for your DB settings). resource-ref descriptionpostgreSQL Datasource/description res-ref-namejdbc/postgres/res-ref-name res-typejavax.sql.DataSource/res-type

RE: Using JDBC Data source from a business class

2004-09-06 Thread Keith Bottner
class Hello Where is this context.xml file .should I create a file in web-inf directory named context.xml . I put a ResourceLink line in my webapp.xml files which is at jakarta-tomcat-5.0.28/conf/Catalina/localhost -ms - Original Message - From: Keith Bottner [EMAIL PROTECTED

RE: how to get user login?

2004-08-30 Thread Keith Bottner
That is really an opened ended question. Are you talking about getting the username and password if you use SingleSignOn? If so then you would do request.getUserPrincipal() cast it to a GenericPrincipal and do a getName and getPassword. If you are using a roll your own then just have your JSP

RE: How do I logout application(s) with Single-sign-on?

2004-08-27 Thread Keith Bottner
request.getSession().invalidate(); You may also want to invalidate any cookies you have set, but that is specific to your needs. Cookie cookies[] = request.getCookies(); Cookie cookie = null; for (int i = 0; i cookies.length; i++) { cookie = cookies[i]; cookie.setMaxAge(0);

JNDI, DataSource SingleSignOn but one question!

2004-08-12 Thread Keith Bottner
Ok, I read the archives, I read past mailings and I still can't get this to work. So here it goes. I have a DataSource that I define in the GlobalNamingResources section of the server.xml. I also define a Realm (specifically a DataSourceRealm) in the Engine section of the server.xml that

RE: JNDI, DataSource SingleSignOn but one question!

2004-08-12 Thread Keith Bottner
in your Context to make GlobalNamingResources available to your webapps. You also need the resource-ref in web.xml per the Spec (and this is well documented), but you already found that out. Yoav Shapira Millennium Research Informatics -Original Message- From: Keith Bottner [mailto

Tomcat manager app stops responding

2004-08-09 Thread Keith Bottner
I am having two problems with the Tomcat manager: 1] After my web application has been running for some time then access to /domain/manager/html never responds. It doesn't give me any kind of error, the browser just continues to process the request without ever timing out. Any ideas? 2] Tomcat

Tomcat stops responding

2004-08-09 Thread Keith Bottner
After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet but it seems to be several hours) Tomcat stops responding to requests. During this time there are little to no requests of Tomcat. Does anybody know why this might be

RE: Tomcat manager app stops responding

2004-08-09 Thread Keith Bottner
On Mon, Aug 09, 2004 at 04:52:18AM -0500, Keith Bottner wrote: : 1] After my web application has been running for some time then access to : /domain/manager/html never responds. It doesn't give me any kind of error, : the browser just continues to process the request without ever timing out. : Any

RE: Tomcat stops responding

2004-08-09 Thread Keith Bottner
in your logs? -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:41 To: [EMAIL PROTECTED] Subject: Tomcat stops responding After I deploy my application everything immediately works fine, no problems. Then after some time (haven't narrowed it down yet

RE: Tomcat stops responding

2004-08-09 Thread Keith Bottner
List' Subject: RE: Tomcat stops responding Check logs for outofmemory exception. If the log has no exceptions check your memory usage. NR -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:41 AM To: [EMAIL PROTECTED] Subject: Tomcat stops

RE: Tomcat manager app stops responding

2004-08-09 Thread Keith Bottner
Users List Subject: RE: Tomcat manager app stops responding Issue a kill -3 to the java process will dump all the threads. Ta Matt -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: 09 August 2004 14:52 To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops

DBCP and SingleSignOn

2004-08-09 Thread Keith Bottner
It does not appear that SingleSignOn uses DBCP, in fact it looks as if it opens a single connection the first time it is used and then attempts to re-use that connection indefinitely. From my understanding on how Tomcat works there would only be a single SignSignOn Valve instance so everyone

RE: Tomcat stops responding

2004-08-09 Thread Keith Bottner
are interested. Thanks again, Keith -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:08 AM To: 'Tomcat Users List' Subject: RE: Tomcat stops responding I have allocated 256M to the JVM running Tomcat and it has never gone above 25M. I have

RE: Tomcat manager app stops responding

2004-08-09 Thread Keith Bottner
are interested. Thanks again, Keith -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:08 AM To: 'Tomcat Users List' Subject: RE: Tomcat manager app stops responding Great, when it freezes I will use it. BTW, have GC statistics now being dumped

RE: How to get the context path for a web application?

2004-08-09 Thread Keith Bottner
Have you tried ? request.getServletPath(); Keith -Original Message- From: Dov Rosenberg [mailto:[EMAIL PROTECTED] Sent: Monday, August 09, 2004 9:49 PM To: Tomcat Users List Subject: How to get the context path for a web application? I need to find a way to get the context path of

SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
I have Single site logon working great with my application, however, I am having a hard time trying to figure out how to log the user out when they select log out. Anyone..please Keith Have you ever noticed that the word 'complaint' and 'compliant' are spelled almost the same except

RE: SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
flag or you might be persisting a struts form object. Either way you can just remove that object or just invalidate the session. session.removeValue(value) or session.invalidate() Thats my take on your question.:-) Gig 'em Ciji Isen Keith Bottner wrote: I have Single site logon working great

RE: SingleSiteLogon working, now how do I log them out?

2004-08-06 Thread Keith Bottner
. session.removeValue(value) or session.invalidate() Thats my take on your question.:-) Gig 'em Ciji Isen Keith Bottner wrote: I have Single site logon working great with my application, however, I am having a hard time trying to figure out how to log the user out when they select log out. Anyone

Weird context.xml default application problem

2004-08-02 Thread Keith Bottner
This is strange! When I package my application and deploy it my context.xml file that is contained within the META-INF directory is copied to the CATALINA_BASE/conf/Catalina/localhost/app.xml properly. Here is the file for reference: Context path= docBase=app debug=3 privileged=true

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-31 Thread Keith Bottner
with the default settings which is Automatically. FYI, I'm using IE6 SP1 on Windows 2000 Pro with security patch. Don't know how other versions of IE behave though. Dennis On 7/30/2004 3:08 PM, Keith Bottner wrote: Dennis, May I ask what client specifically is accessing your server? The client can

How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
I am trying to find out how I can set my static content for images, javascript and css to have a different cache-control setting. It appears that Tomcat always returns Cache-Control: no-cache with every response. I want to specify certain static resources such as gif and jpg to have Cache-Control:

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
chain is currently being processed then I could only insert it once. Thanks, Keith -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 7:53 AM To: [EMAIL PROTECTED] Subject: How do you set cache-control for static (gif, jpg) resources I am trying

RE: in-WAR context.xml in 5.0.27

2004-07-30 Thread Keith Bottner
Bug 30249 http://issues.apache.org/bugzilla/show_bug.cgi?id=30249 Fix is at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29688 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, July 29, 2004 4:30 PM To: Tomcat Users List Subject: in-WAR context.xml in 5.0.27

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
case the latter is what you want, so after the chain.doFilter call. Yoav Shapira Millennium Research Informatics -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 9:18 AM To: 'Tomcat Users List' Subject: RE: How do you set cache-control for static

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
Unfortunately HttpServletResponse has now way to query the headers only to set them and determine if they exist. However I have the RequestDumperValve for both editions of the code. Here is the log for the 1st set of code (your suggestions). :

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
Millennium Research Informatics -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 9:59 AM To: 'Tomcat Users List' Subject: RE: How do you set cache-control for static (gif, jpg) resources Unfortunately HttpServletResponse has now way to query

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
response, but you didn't mention IllegalStateExceptions in your log so I assumed the response being committed wasn't the problem ;) Weird. Yoav Shapira Millennium Research Informatics -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 10:45 AM

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
headers, and then add headers on the response side, and they work just as the Spec says on every stable Tomcat version I've used within the last couple of years. Yoav Shapira Millennium Research Informatics -Original Message- From: Keith Bottner [mailto:[EMAIL PROTECTED] Sent: Friday, July 30

RE: How do you set cache-control for static (gif, jpg) resources

2004-07-30 Thread Keith Bottner
generated pages, which may or may not be of interests to you guys: http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html?page=3 Regards, Dennis On 7/30/2004 8:25 AM, Keith Bottner wrote: It must be something particular about Tomcat, or some other weirdness with my configuration. I