Re: Tomcat copies context.xml to, conf/Catalina/localhost/app.xml,but neverupdates it?

2009-08-07 Thread M4N - Arjan Tijms
Len Wrote: Unfortunately it's not that simple. Take for example the most common case, a definition for a JDBC database connection. The app writer has to provide part of the definition (the resource name, e.g. "jdbc/myAppDB") and the sysadmin has to provide another part (the address of the DB ser

Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml, but never updates it?

2009-08-07 Thread M4N - Arjan Tijms
Hi, Michael wrote: I always just copy my web application statically to Tomcat's webapps directory ("$CATALINA_BASE/webapps") for the production server Insufficient, as Chuck has pointed out: use the manager app. Does that, basically, mean that the static deployment method is deprecated? If

RE: Tomcat copies context.xml to, conf/Catalina/localhost/app.xml,but neverupdates it?

2009-08-07 Thread M4N - Arjan Tijms
Hi, 1. If there is a context descriptor in $CATALINA_BASE/conf/[enginename]/[hostname]/[webappname].xml use this. 2. Otherwise, use the context descriptor $CATALINA_BASE/webapps/[webappname]/META-INF/context.xml That is exactly how it works today. Well, in my humble opinion this is how it w

RE: Tomcat copies context.xml to conf/Catalina/localhost/app.xml, but neverupdates it?

2009-08-07 Thread M4N - Arjan Tijms
Hi, It was always intended, and finally fixed in 6.0.19 (see the changelog). The impetus was this bug report: https://issues.apache.org/bugzilla/show_bug.cgi?id=42747 Thank you very much for the reference. To be helpful to other people who stumble upon this thread when searching for informati

Re: Tomcat copies context.xml to conf/Catalina/localhost/app.xml but never updates it?

2009-08-06 Thread M4N - Arjan Tijms
p.s. M4N - Arjan Tijms wrote: I'm running Tomcat 6.0.20 using JDK 6 update 14 on a 64 bits Debian Lenny. I've unpacked a stock Tomcat 6.0.20 and deployed a web module to the webapps directory. After I started and stopped the web module, I noticed that the META-INF/context.xml had b

Tomcat copies context.xml to conf/Catalina/localhost/app.xml but never updates it?

2009-08-06 Thread M4N - Arjan Tijms
Hi, I'm running Tomcat 6.0.20 using JDK 6 update 14 on a 64 bits Debian Lenny. I've unpacked a stock Tomcat 6.0.20 and deployed a web module to the webapps directory. After I started and stopped the web module, I noticed that the META-INF/context.xml had been copied to conf/Catalina/localhost

Re: RE: Occasional NoClassDefFoundError, but disappears after couple of restarts

2009-08-03 Thread M4N - Arjan Tijms
Hi, Caldarale, Charles R wrote: The problem I have is that occasionally after I restart Tomcat, the startup fails with NoClassDefFoundError or ClassNotFoundException for every servlet listener that's being added from web.xml. This kind of error can be caused by having the same class(es) i

RE: Occasional NoClassDefFoundError, but disappears after couple of restarts

2009-07-24 Thread M4N - Arjan Tijms
Hi, This kind of error can be caused by having the same class(es) in multiple locations in a given branch of the classloader tree, such as in both a webapp's WEB-INF/lib and in Tomcat's lib directory (or on the system classpath). Have you checked that? Well, that's indeed a good suggestion. We

Occasional NoClassDefFoundError, but disappears after couple of restarts

2009-07-24 Thread M4N - Arjan Tijms
Hi, I'm running Tomcat 6.0.16 on a 32 bit Debian Etch using Java 6 update 12. The problem I have is that occasionally after I restart Tomcat, the startup fails with NoClassDefFoundError or ClassNotFoundException for every servlet listener that's being added from web.xml. If I restart Tomcat

Re: Tomcat looses POST parameters

2007-08-30 Thread M4N - Arjan Tijms
Hi, M4N - Arjan Tijms wrote: The problem I'm encountering is that for a percentage of the POST requests, Tomcat seems to loose all parameters. Our application uses a filter that logs the (first few characters of) post parameters. To follow up on this issue, I think that I have pro

Re: Tomcat looses POST parameters

2007-08-28 Thread M4N - Arjan Tijms
Christopher Schultz wrote: Uh, I'm not really sure what you're saying, here. TCs auth code /will/ run before any of your code if you are using it. Of course, but that's exactly what I'm saying. If Tomcat's auth code runs first, than the possible error would be in Tomcat's code. Do you imple

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
Hi, Christopher Schultz wrote: No, your filter will only be executed after the login has been handled, since Tomcat's authentication is done using a valve, which is processed before any filters. I see. The thing is, I'm not using any container managed authentication at all. All authenticati

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
Hi, c. wrote: I experienced some problems with missing POST parameters. I'm not sure where the problem lay but I was using apache 2, tomcat 5.5, mod_ajp_proxy and dwr. I upgraded to tomcat 6 using mod_proxy and NIO and have not seen the problem since. Chris, this sounds very interesting an

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
Hi, Ben Souther wrote: One thing that you've go on your side, as far as isolating the problem is concerned, is that Tomcat is a busy project and has thousands of users. If it had a bug that caused it to miss or drop form parameters hundreds or thousands of apps would be breaking right now and

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
Hi, Christopher Schultz wrote: The problem I'm encountering is that for a percentage of the POST requests, Tomcat seems to loose all parameters. Are you observing this in log files, or by actually doing it and having it fail. Both actually. I have installed a top-level filter, and th

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
). At the top of the filter chain I installed a servlet filter that only prints the post parameters. There is no MyFaces or anything else active at that point. Kind regards, Arjan Tijms Something's going on in your MyFaces or some such. Sorry not more help. -Original Message- Fro

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
s are still there, but are gone once in Tomcat. Grtz, Arjan Tijms On 8/24/07, M4N - Arjan Tijms <[EMAIL PROTECTED]> wrote: Hi, We're hosting a fairly high traffic web application based on Tomcat. It's running on Debian-Etch, JDK 5.0U10 and Tomcat 5.5.20. We're using Apac

Re: Tomcat looses POST parameters

2007-08-27 Thread M4N - Arjan Tijms
ooses POST parameters I would suggest a TCP sniff tool like one found from axis or grinder to peek at your http track to be sure. On 8/24/07, M4N - Arjan Tijms <[EMAIL PROTECTED]> wrote: Hi, We're hosting a fairly high traffic web application based on Tomcat. It's running on Debian

Tomcat looses POST parameters

2007-08-24 Thread M4N - Arjan Tijms
Hi, We're hosting a fairly high traffic web application based on Tomcat. It's running on Debian-Etch, JDK 5.0U10 and Tomcat 5.5.20. We're using Apache as a front-end with the AJP connector. The problem I'm encountering is that for a percentage of the POST requests, Tomcat seems to loose all