RE: Logging makes a grown man cry

2013-12-03 Thread Dale Ogilvie
Currently we use tomcat configured as out-of-the-box for logging (no log4j) and log4j.jar and config in the app war file. We found issues with trying to have log4j in catalina/lib. That said, it would be nice to use log4j for tomcat, however we found that the two configurations collided in our sl

Re: Transfer-Encoding: chunked not working

2013-12-03 Thread C. Benson Manica
Also, if HTTP 1.1 weren't enabled for some reason, wouldn't the default simply be to serve the entire content, rather than the first 16384 bytes? On Tue, Dec 3, 2013 at 4:44 PM, C. Benson Manica wrote: > connectionTimeout="2" >redirectPort="8443" /> > > sure

Re: Transfer-Encoding: chunked not working

2013-12-03 Thread C. Benson Manica
sure looks like 1.1 to me. On Tue, Dec 3, 2013 at 4:38 PM, Martin Gainty wrote: > chunked only works on HTTP 1.1 connections > display $CATALINA_HOME/conf/server.xml > > Martin-- > > > > > > > Date: Tue, 3 Dec 2013 15:55:22 -0800 > > Subject: Transfer-Encoding: chunked not working > > From: c

RE: Transfer-Encoding: chunked not working

2013-12-03 Thread Martin Gainty
chunked only works on HTTP 1.1 connections display $CATALINA_HOME/conf/server.xml Martin-- > Date: Tue, 3 Dec 2013 15:55:22 -0800 > Subject: Transfer-Encoding: chunked not working > From: cbman...@gmail.com > To: users@tomcat.apache.org > > Tomcat 7.0.47, OSX 10.8. Fresh install via homeb

Transfer-Encoding: chunked not working

2013-12-03 Thread C. Benson Manica
Tomcat 7.0.47, OSX 10.8. Fresh install via homebrew. I'm running a web app with Tomcat that is returning the header "Transfer-Encoding: chunked" and seemingly exactly one 16384-byte chunk of content that is longer than that. Consequently the page that should be transferred is not rendered by the us

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Dave Pawson
Yes, 192.168,1.xxx http://dpawson.co.uk xslt xsl-fo docbook FAQ On 3 Dec 2013, at 19:29, Leo Donahue - OETX wrote: >> -Original Message- >> From: Dave Pawson [mailto:dave.paw...@gmail.com] >> Subject: Re: wifi access to tomcat on wired mc >>> >>> But you can't use the IP of your wire

Re: Logging makes a grown man cry

2013-12-03 Thread Konstantin Kolinko
2013/12/3 Tomcat Random : > Environment is RHEL6, Tomcat 7.0.42. There is only one webapp. > > I'm trying to implement log4j as per the instructions here (skipping step > 5): > http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j > > Since I'm not using the Manager, I've removed the rel

Re: Logging Best Practices on RHEL

2013-12-03 Thread Konstantin Kolinko
2013/11/30 Christopher Schultz : > > On 11/27/13, 5:00 PM, Tomcat Random wrote: > >> "I find java.logging to be... frankly frustrating to configure." >> Totally agree, I feel like the Tomcat logging.properties file is >> weirdly clunky. > > Yes. That's because out of the box it uses java.util.loggi

RE: org.apache.catalina.filters.CorsFilter

2013-12-03 Thread spring
> > Just wanna now why the class is not loadable as > > org.apache.catalina.filters.CorsFilter but as > > com.apache.catalina.filters.CorsFilter (different dir in > classes of course). > > Because Tomcat prevents web applications from replacing > container classes. Ah, so we do have special rul

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Leo Donahue - OETX
>-Original Message- >From: Dave Pawson [mailto:dave.paw...@gmail.com] >Subject: Re: wifi access to tomcat on wired mc >> >> But you can't use the IP of your wired Tomcat box in a URL with port 8081 to >> get Tomcat to respond from your Windows 7 wireless laptop? It just times >> out? > >

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Dave Pawson
On 3 December 2013 17:48, Leo Donahue - OETX wrote: > Reading back over your previous posts, you said you can ping the Linux box > from Windows 7 (aka your wireless laptop?): > " ...ping works from both wired/wireless to the 'main' wired machine > containing the tomcat server" Yes > > But you

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Tomcat Random
Thanks, that's good to know, especially about the validationInterval setting. The idea of not validating every single time seems more reasonable. -Alec On Tue, Dec 3, 2013 at 12:32 PM, Daniel Mikusa wrote: > On Dec 3, 2013, at 12:14 PM, Tomcat Random > wrote: > > > I considered using a validat

Re: META-INF/context.xml & connection pool

2013-12-03 Thread Tomcat Random
The short answer is jars that are particular to a webapp can go in WEB-INF/lib, however since database access is fairly common, your jdbc jars and db specific driver jars should go above the webapp directory into $TOMCAT_HOME/lib. However, AFAIK some jars need to be in $TOMCAT_HOME/lib due to load

Logging makes a grown man cry

2013-12-03 Thread Tomcat Random
Environment is RHEL6, Tomcat 7.0.42. There is only one webapp. I'm trying to implement log4j as per the instructions here (skipping step 5): http://tomcat.apache.org/tomcat-7.0-doc/logging.html#Using_Log4j Since I'm not using the Manager, I've removed the relevant logging lines from CATALINA_HOME

Re: org.apache.catalina.filters.CorsFilter

2013-12-03 Thread Mark Thomas
On 03/12/2013 17:41, spr...@gmx.eu wrote: >> Exactly where? The full path is needed here. > > TOMCAT/webapps/myapp/WEB-INF/classes/org/apache/catalina/filters/CorsFilter. > class > >> Rather than mucking about with an old Tomcat version, just >> throw away the 3rd-party repackaged crap and inst

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Leo Donahue - OETX
>-Original Message- >From: Dave Pawson [mailto:dave.paw...@gmail.com] >Subject: Re: wifi access to tomcat on wired mc >> >> ISP > | inside your house | > your ISP provided wifi /router > >> your >computers? > >The latter. > >router to linux (tomcat) is wired. >router to windows

RE: org.apache.catalina.filters.CorsFilter

2013-12-03 Thread spring
> Exactly where? The full path is needed here. TOMCAT/webapps/myapp/WEB-INF/classes/org/apache/catalina/filters/CorsFilter. class > Rather than mucking about with an old Tomcat version, just > throw away the 3rd-party repackaged crap and install the > current one from tomcat.apache.org; it wil

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Daniel Mikusa
On Dec 3, 2013, at 12:14 PM, Tomcat Random wrote: > I considered using a validation query but it seemed like extra overhead > when the default behavior was not, um, behaving in the default way. The overhead is typically minimal. Running "SELECT 1" or some other very simply query is not likely

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Dave Pawson
On 3 December 2013 17:18, Leo Donahue - OETX wrote: > Would it maybe be possible to give us a line diagram of your request from > your windows box through your hardware to your Tomcat on Linux? > > For example, you are using a vendor supplied wireless router? I am sure my > ISP blocks all 8080

Re: Logging Best Practices on RHEL

2013-12-03 Thread Tomcat Random
Chris, thanks. That's good to know since I just implemented 1.2.17. On Mon, Dec 2, 2013 at 5:27 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Alec, > > On 12/2/13, 3:48 PM, Tomcat Random wrote: > > Thanks Chris, Are you usi

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Leo Donahue - OETX
>-Original Message- >From: Dave Pawson [mailto:dave.paw...@gmail.com] >Subject: Re: wifi access to tomcat on wired mc > >Yes... (as far as I know - unloaded Zonealarm altogether. Still nothing). >I have a wifi / router in the game too. It's not a commercial one, it was >provided >by the IS

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Tomcat Random
I considered using a validation query but it seemed like extra overhead when the default behavior was not, um, behaving in the default way. -Alec On Tue, Dec 3, 2013 at 7:24 AM, Daniel Mikusa wrote: > On Dec 2, 2013 10:09 PM, "Neven Cvetkovic" > wrote: > > > > On Dec 2, 2013 12:47 PM, "Tomcat

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Dave Pawson
On 3 December 2013 14:46, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Chuck, > > On 12/3/13, 9:39 AM, Caldarale, Charles R wrote: >>> From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] >>> Subject: RE: wifi access to tomcat on wired mc >> >>> Have

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Dave Pawson
On 3 December 2013 14:21, Leo Donahue - OETX wrote: >>-Original Message- >>From: Dave Pawson [mailto:dave.paw...@gmail.com] >>Subject: Re: wifi access to tomcat on wired mc >> >>Thanks Chuck. >>Back to playing with Windows firewalls. >> > > Have you tried disabling the windows firewall alt

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Leo Donahue - OETX
>-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: wifi access to tomcat on wired mc > >> From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] >> Subject: RE: wifi access to tomcat on wired mc > >> Have you tried disabling the windows

Re: wifi access to tomcat on wired mc

2013-12-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 12/3/13, 9:39 AM, Caldarale, Charles R wrote: >> From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] >> Subject: RE: wifi access to tomcat on wired mc > >> Have you tried disabling the windows firewall altogether to rule >> it

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Caldarale, Charles R
> From: Leo Donahue - OETX [mailto:leodona...@mail.maricopa.gov] > Subject: RE: wifi access to tomcat on wired mc > Have you tried disabling the windows firewall altogether to rule it out as > the problem? The OP may well have more than one firewall active on the Windows box, if I interpreted

RE: wifi access to tomcat on wired mc

2013-12-03 Thread Leo Donahue - OETX
>-Original Message- >From: Dave Pawson [mailto:dave.paw...@gmail.com] >Subject: Re: wifi access to tomcat on wired mc > >Thanks Chuck. >Back to playing with Windows firewalls. > Have you tried disabling the windows firewall altogether to rule it out as the problem? Leo -

Re: Pooled Connections Lost After 10 Minutes (600 seconds)

2013-12-03 Thread Daniel Mikusa
On Dec 2, 2013 10:09 PM, "Neven Cvetkovic" wrote: > > On Dec 2, 2013 12:47 PM, "Tomcat Random" wrote: > > > > Neven, thank you. > > > > It was right there in my.cnf: 'wait_timeout=600' > > > > You're welcome :) > > I am curious why tomcat didn't renew expired (terminated) idle connections > thoug

Re: Exception in CoyoteAdapter class

2013-12-03 Thread Mark Thomas
On 03/12/2013 10:25, at.silk wrote: > Hi, > > I contact you to talk about an exception we receive in a Tomcat class. Few > days ago we get an error in an application integrated with Tomcat. We have > tried to get information about it but we don't find any solution, so we would > like to know if

Exception in CoyoteAdapter class

2013-12-03 Thread at.silk
Hi, I contact you to talk about an exception we receive in a Tomcat class. Few days ago we get an error in an application integrated with Tomcat. We have tried to get information about it but we don't find any solution, so we would like to know if you are aware about this issue. First we desc

Re: Same realm for three different countries

2013-12-03 Thread André Warnier
Stefan Frei wrote: do you see a entry point where to start ? i already have a customRealm I would look at the problem in a different way, and set up 3 virtual hosts, one for each country. Then it is just a configuration change, nothing in the code. 2013/12/2 Christopher Schultz : -B

Re: Same realm for three different countries

2013-12-03 Thread Stefan Frei
Hello thanks for your all help. I think the solution is possible with the username. when i use "firstname.lastn...@webapp.ch" i can evaluate that in the realm and the changes i have to made are not that hard. Cheers Stefan 2013/12/3 Martin Gainty : > $CATALINA_HOME/src>grep -S -l locale *Realm