Re: Accessing a database from a Valve

2009-09-29 Thread shetc
Thanks Martin! -- View this message in context: http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25673745.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-u

Re: Accessing a database from a Valve

2009-09-29 Thread shetc
Ah, just spotted the JDBCAccessLogValve class. I guess that will clue me in :-) -- View this message in context: http://www.nabble.com/Accessing-a-database-from-a-Valve-tp25673641p25673723.html Sent from the Tomcat - User mailing list archive at Nabble.com.

RE: Accessing a database from a Valve

2009-09-29 Thread Martin Gainty
this should do it http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/valves/JDBCAccessLogValve.html Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie n

Accessing a database from a Valve

2009-09-29 Thread shetc
Hi All, I have a requirement in which access to a web application will be controlled by a 'black list' of IP addresses. That is, access will be refused if the requesting IP address is contained within the black list. This list is to be maintained within a relational database table. I was thinkin

Re: errors after install

2009-09-29 Thread André Warnier
Daniel Wittenberg wrote: I'm setting up spacewalk, all default settings, and I'm getting this in the catalina.out. Any ideas ? Sep 29, 2009 7:19:34 PM com.mchange.v2.resourcepool.BasicResourcePool $AcquireTask run WARNING: com.mchange.v2.resourcepool.BasicResourcePool $acquiret...@7da79447 -- A

Re: errors after install

2009-09-29 Thread André Warnier
Daniel Wittenberg wrote: I'm setting up spacewalk, all default settings, and I'm getting this in the catalina.out. Any ideas ? Sep 29, 2009 7:19:34 PM com.mchange.v2.resourcepool.BasicResourcePool $AcquireTask run WARNING: com.mchange.v2.resourcepool.BasicResourcePool $acquiret...@7da79447 -- A

errors after install

2009-09-29 Thread Daniel Wittenberg
I'm setting up spacewalk, all default settings, and I'm getting this in the catalina.out. Any ideas ? Sep 29, 2009 7:19:34 PM com.mchange.v2.resourcepool.BasicResourcePool $AcquireTask run WARNING: com.mchange.v2.resourcepool.BasicResourcePool $acquiret...@7da79447 -- Acquisition Attempt Failed!!

Re: tomcat utf-8 JavaMailSenderImpl

2009-09-29 Thread Gatos
I have just excluded other e-mail dependencies from maven. On Tue, Sep 29, 2009 at 6:06 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Cats, > > On 9/29/2009 3:59 AM, Gatos wrote: > > For mail sending I'm using > > org.springfra

Re: Apache/Tomcat with SSL

2009-09-29 Thread Pid
Pid, > Thanks for the response, I have contacted the developers of our web site to separate the documentRoot directories. Also, I have tested the SSL with httpd turned off, and I don't seem to have the same luck. I received the following error: Error code: ssl_error_rx_record_too_long. I beli

Re: AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread André Warnier
Hi Joerg. To clear up a bit, you are talking about 2 distinct aspects : Authentication and Authorization. Authentication = to find out who the user is Authorization = when we know who the user is, determine if he has or not the authorization required to access some resource (in this case, som

RE: Tomcat 5.5.17 stop service fails resulting error 1053 on win server 2003

2009-09-29 Thread Deepti Nigudkar
Hi All, I have done the following to resolve the issue but didn't help so far: 1. Installed tomcat versions 5.5.17 and 5.5.28 on another machine. These versions of tomcat got installed properly and I was able to stop the service using windows server 2003 service. 2. I compare

RE: How to check if the client dropped the connection

2009-09-29 Thread Miguel Ortiz
Pid, Thanks for the response, I have contacted the developers of our web site to separate the documentRoot directories. Also, I have tested the SSL with httpd turned off, and I don't seem to have the same luck. I received the following error: Error code: ssl_error_rx_record_too_long. I believe

AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
Hi Peter, thank you very much for this very helpful information. Is it now possible, that tomcat checks via JNDI an ActiveDirctory GroupMembership of the detected User (e.g. SAMPLEPC\User1) I'ld try to configure, that my users do not have an login prompt in browser Thank you in advice

Re: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Peter Crowther
2009/9/29 Buchner, Joerg [T0I] (VW Sachsen) : > But the problem is an other: > > The SourceCodes (JSP/Servlets) are secured with NTFS rights on filesystem. > (Windows Server 2003 x64) > > I've tried to secure the whole application with NTFS Rights, > but the NTFS ACL does not work for JSP Files. T

my webapps and security manager

2009-09-29 Thread Alan
Hi there, I installed tomcat5 via Fink on Snow Leopard 10.6.1 kernel 64 bits: amadeus[2249]:/sw/var/log/tomcat5% $CATALINA_HOME/bin/catalina.sh version Using CATALINA_BASE:   /sw/var/tomcat5 Using CATALINA_HOME:   /sw/var/tomcat5 Using CATALINA_TMPDIR: /sw/var/tomcat5/temp Using JRE_HOME:       /

AW: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
Hi André yes, you alright. With the Integrated Windows Authentication Tomcat gets only authenticated AD Users. But the problem is an other: The SourceCodes (JSP/Servlets) are secured with NTFS rights on filesystem. (Windows Server 2003 x64) I've tried to secure the whole application with NTFS

Re: IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread André Warnier
Hi Joerg. The following remarks are more a question from me, than an answer to you. I am interested also in a real answer from someone who really knows.. Buchner, Joerg [T0I] (VW Sachsen) wrote: Hi, i've got a Microsoft IIS 6.0 Webservice. Behind the IIS is an Apache Tomcat 5.5.26 (connected

Re: Upgrade from 5.5.9 to 5.5.20 Help

2009-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 9/28/2009 6:29 PM, Pid wrote: > There's no patch or upgrade methodology. > > You simply grab the latest version and install it in parallel, then > reconfigure as needed. Remember to read the change log, so you can see if any breaking configu

Re: How to check if the client dropped the connection

2009-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Markus, On 9/28/2009 6:03 PM, Markus Meyer wrote: > Martin Gainty schrieb: >> could you explain just a bit more what is a tile? > > If you have a very large image, say 1 million x 1 million pixels or > something like that, it is more efficient to spl

Re: How to check if the client dropped the connection

2009-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrea, On 9/29/2009 4:34 AM, aaime74 wrote: > I can cleanly stop the rendering process in almost any point of it. > The issue is not stopping it, it's detecting the client connection > was dropped. > > No matter what solution is adopted, one still

Re: Has anyone been successful building mod_jk on AIX 6.1 ?

2009-09-29 Thread Rainer Jung
On 29.09.2009 17:01, Strickland, Lawrence P wrote: > NO luck there either. This is what I saw when I tried to load that file: > > httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: > Cannot load /usr/local/apache2/modules/libmod_jk.a into server: > \t0509-022 Cannot load module

Re: tomcat utf-8 JavaMailSenderImpl

2009-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Cats, On 9/29/2009 3:59 AM, Gatos wrote: > For mail sending I'm using > org.springframework.mail.javamail.JavaMailSenderImpl: The Spring mailing list wouldn't be a bad place to cross-post (or simply move over there). > class="org.springframewor

Re: Apache/Tomcat with SSL

2009-09-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 9/29/2009 4:12 AM, Pid wrote: > @Miguel, the problem (from the URLs you supplied) is that Tomcat is not > processing the JSP content, HTTPD is serving it as a static file. > > This is caused by a broken mod_jk*, (or mod_proxy) config +1 My

RE: Has anyone been successful building mod_jk on AIX 6.1 ?

2009-09-29 Thread Strickland, Lawrence P
NO luck there either. This is what I saw when I tried to load that file: httpd: Syntax error on line 53 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/libmod_jk.a into server: \t0509-022 Cannot load module /usr/local/apache2/modules/libmod_jk.a.\n\t0509-103 The mod

Re: Upgrade from 5.5.9 to 5.5.20 Help

2009-09-29 Thread Mark Thomas
Corrin, Simon P wrote: > As this was my first post thanks for your quick reply! > > I would love to go with the latest version but the software manufacture > only certifies 5.5.20 and if there are issues with another version you > are on your own. Given a) how old 5.5.20 is and b) the number of

RE: Upgrade from 5.5.9 to 5.5.20 Help

2009-09-29 Thread Corrin, Simon P
As this was my first post thanks for your quick reply! I would love to go with the latest version but the software manufacture only certifies 5.5.20 and if there are issues with another version you are on your own. The current installation has been in production for a while now and is working w

IIS, Tomcat, JNDI and ActiveDirectory

2009-09-29 Thread Buchner, Joerg [T0I] (VW Sachsen)
Hi, i've got a Microsoft IIS 6.0 Webservice. Behind the IIS is an Apache Tomcat 5.5.26 (connected via ISAPI and AJP/1.3) protocoll. In the IIS "Integrated Windows Authentication" is enabled. On server.xml tomcatauthentication is set to false. Also o've configured a JNDI REALM: ldap://:

Re: blocked / hanging on call to HandlerRequest.checkRequest

2009-09-29 Thread Simon Papillon
Hi Bill > If you just want the problem to go away, then look for the attribute > "request.registerRequests" in > http://tomcat.apache.org/tomcat-5.5-doc/config/ajp.html .  If that is set to > "false", then there is no locking within the checkRequest method.  You lose > that ability to get stats fo

RE: Using administration url in application

2009-09-29 Thread Zeitlin, Michael (USAEO)
I was able to fix my original problem. Based on the advice given here, I realized that my problem was that my ROOT web app had a /admin directory. Once I renamed that directory, everything worked fine. Thanks for all the help. Michael -Original Message- From: Martin Gainty [mailto:mga

Re: How to check if the client dropped the connection

2009-09-29 Thread André Warnier
aaime74 wrote: ... Ok, but let's say Tomcat is capable of that. How does one check from within the servlet that the connection has been dropped without writing out anything? I have been looking (starting at the HttpServletResponse object), trying to follow the trail to see if one at some poi

Re: How to check if the client dropped the connection

2009-09-29 Thread Peter Crowther
2009/9/29 Pid > ... because for future requests, the data already exists and the work is > already done. The consequences of a dropped connection are therefore > reduced because you're not doing the work for every single request, and any > work you are doing isn't completely wasted. Pid, you'r

Re: How to check if the client dropped the connection

2009-09-29 Thread Peter Crowther
2009/9/29 aaime74 > But in the meatime I would really appreciate if anybody could > answer my first question: how does one detect the client connection > has been dropped? Is there any way? Does anybody know? First off, I assume you're serving these straight out of Tomcat to the client - there'

Re: How to check if the client dropped the connection

2009-09-29 Thread Pid
On 29/09/2009 09:47, aaime74 wrote: Markus Meyer wrote: I'm not saying you should store the whole map all at once. My approach was to dynamically cache requests that the client may want to make in advance. An easy example would be if a client makes a request for the city center, you create th

Re: How to check if the client dropped the connection

2009-09-29 Thread Pid
On 29/09/2009 09:34, aaime74 wrote: awarnier wrote: aaime74 wrote: ... Hi. Kind of restarting from the beginning, I think that the first question to ask is whether whatever method which actually does the rendering of the maps, and which is "heavy" in terms of resources, is capable of being i

Re: How to check if the client dropped the connection

2009-09-29 Thread Pid
On 29/09/2009 09:15, André Warnier wrote: aaime74 wrote: ... Hi. Kind of restarting from the beginning, I think that the first question to ask is whether whatever method which actually does the rendering of the maps, and which is "heavy" in terms of resources, is capable of being interrupted clea

Re: How to check if the client dropped the connection

2009-09-29 Thread aaime74
Markus Meyer wrote: > > I'm not saying you should store the whole map all at once. My approach > was to dynamically cache requests that the client may want to make in > advance. An easy example would be if a client makes a request for the > city center, you create the map for the city center

Re: How to check if the client dropped the connection

2009-09-29 Thread aaime74
awarnier wrote: > > aaime74 wrote: > ... > Hi. > Kind of restarting from the beginning, I think that the first question > to ask is whether whatever method which actually does the rendering of > the maps, and which is "heavy" in terms of resources, is capable of > being interrupted cleanly i

Re: How to check if the client dropped the connection

2009-09-29 Thread André Warnier
aaime74 wrote: ... Hi. Kind of restarting from the beginning, I think that the first question to ask is whether whatever method which actually does the rendering of the maps, and which is "heavy" in terms of resources, is capable of being interrupted cleanly in the middle. Is it capable itself

Re: Apache Webserver and static conent

2009-09-29 Thread Rainer Jung
On 29.09.2009 09:53, Angelo Chen wrote: > > Hi, > > I use the mod_proxy to allow a tomcat's app running behind Apache server, > now I'd like to let Apache server handle some static contents: > > www.example.com/information > > the content of information is not part of tomcat app, but a director

Re: Apache Webserver and static conent

2009-09-29 Thread Pid
On 29/09/2009 08:53, Angelo Chen wrote: Hi, I use the mod_proxy to allow a tomcat's app running behind Apache server, now I'd like to let Apache server handle some static contents: www.example.com/information the content of information is not part of tomcat app, but a directory in the file sy

Re: Apache/Tomcat with SSL

2009-09-29 Thread Pid
On 29/09/2009 03:17, Crypto Sal wrote: Miguel, Do you have Tomcat serving up Port 80 traffic or is that Apache's httpd? I suggest you have one web server handle both normal web traffic and SSL traffic (if possible), since this page is a login page, you might want to FORCE https on that page a

tomcat utf-8 JavaMailSenderImpl

2009-09-29 Thread Gatos
Hello For mail sending I'm using org.springframework.mail.javamail.JavaMailSenderImpl: but for some reason when I deploy an application to tomcat 5.5.x, all emails come with 'Western European' encoding and all html tags are shown. When I try to run

Apache Webserver and static conent

2009-09-29 Thread Angelo Chen
Hi, I use the mod_proxy to allow a tomcat's app running behind Apache server, now I'd like to let Apache server handle some static contents: www.example.com/information the content of information is not part of tomcat app, but a directory in the file system, what I'm doing now is a symbolic lin