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
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
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
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
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);
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
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
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
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
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
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
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
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
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
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
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
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
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
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
.
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
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
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
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:
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
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
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
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).
:
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
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
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
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
31 matches
Mail list logo