org.apache.commons.digester.Digester endElement (Q & A)

2008-01-04 Thread Albretch Mueller
if you find exceptions looking like this: ~ org.apache.commons.digester.Digester endElement SEVERE: End event threw exception java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA

Re: Problems with HTTPS Mutual authentication with big petitions

2008-01-04 Thread Nicolás Velásquez O.
Thanx, maxSavePostSize did the job. Mark Thomas wrote: Nicolás Velásquez O. wrote: Hello, I'm running into problems when I try to configure tomcat to validate the client by its https cert with big requests. I'm using it with forms and when the send the form to the server with big (10-15Kbytes)

FW: Problems with HTTPS Mutual authentication with big petitions

2008-01-04 Thread Martin Gainty
Nicolas- did you configure with JAAS? Are you using 5.5 TC?http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html#JAASRealm Saludos Martin __Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the officia

Re: Content_Length Problem

2008-01-04 Thread Rainer Jung
There's no Content-Length coming from the backend. See below. So: are you sure the backend sends it, if you send the same request without a web server in front of Tomcat? I would expect, that it's also missing, if you contact Tomcat directly via httpd. In this case it's an error in the webapp. Woy

RE: mod_jk 1.2.26

2008-01-04 Thread Scott McClanahan
On Fri, 2008-01-04 at 17:51 -0500, Martin Gainty wrote: > Scottcan you confirm these JKMount directives in $APACHE_HOME/conf/httpd.conf > > # send all requests ending in .jsp to ajp13JkMount /*.jsp ajp13 > # send all requests ending /servlet to ajp13JkMount /*/servlet/ ajp13 > ThanksMartin _

Re: mod_jk 1.2.26

2008-01-04 Thread Rainer Jung
Hi Scott, Scott McClanahan schrieb: > I'm getting 404 errors when I try to access the jkmanager page. There > is only one backend tomcat instance and no load balancing configuration > at all. I was just wanting to see the UI and if it had changed at all > with the upgrade. Do you now get 404's

Re: Content_Length Problem

2008-01-04 Thread Len Popp
If you can sniff the response headers, you should be able to see whether the Transfer-Encoding is chunked or not. -- Len On Jan 4, 2008 4:10 PM, Woytasik Joe <[EMAIL PROTECTED]> wrote: > Rainer, > > Thanks for the quick response! > > I am able to repeat this request, and each time I get the same

RE: mod_jk 1.2.26

2008-01-04 Thread Martin Gainty
Scottcan you confirm these JKMount directives in $APACHE_HOME/conf/httpd.conf # send all requests ending in .jsp to ajp13JkMount /*.jsp ajp13 # send all requests ending /servlet to ajp13JkMount /*/servlet/ ajp13 ThanksMartin __Disclaimer and confident

mod_jk 1.2.26

2008-01-04 Thread Scott McClanahan
I'm getting 404 errors when I try to access the jkmanager page. There is only one backend tomcat instance and no load balancing configuration at all. I was just wanting to see the UI and if it had changed at all with the upgrade. Do you now get 404's if you don't have a load balancing configurat

Re: Problems with HTTPS Mutual authentication with big petitions

2008-01-04 Thread Mark Thomas
Nicolás Velásquez O. wrote: > > Hello, I'm running into problems when I try to configure tomcat to > validate the client by its https cert with big requests. I'm using it > with forms and when the send the form to the server with big > (10-15Kbytes) requests it fails, but when I send small (90 byt

Re: Tomcat + HttpClient + SSL + tcnative-1.dll issues?

2008-01-04 Thread Mark Thomas
JP Beaudry wrote: > How do we go about debugging this? Is there any lower level tracing we can > enable? Somewhere between the Tomcat access log and a sniffer trace? This sounds like http://issues.apache.org/bugzilla/show_bug.cgi?id=44087 A new native release is planned shortly to fix this. In th

Re: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Rainer Jung
Hi Jim, to make it work, you need all three of them. I never used it in Windows, so I can only judge from the download and the docs page. The docs page http://tomcat.apache.org/tomcat-6.0-doc/apr.html says, that the precompiled binaries include openssl, apr and tcnative in one combined DLL. The

Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Len Popp
Here's some code that does what Gennady suggested, using RequestDispatcher and wrapping the response object to capture the output in a String. public class JSPFormatter { public String formatPage(String stJSPFile, HttpServletRequest request, HttpServletResponse

Problems with HTTPS Mutual authentication with big petitions

2008-01-04 Thread Nicolás Velásquez O.
Hello, I'm running into problems when I try to configure tomcat to validate the client by its https cert with big requests. I'm using it with forms and when the send the form to the server with big (10-15Kbytes) requests it fails, but when I send small (90 bytes) requests it works. I have on the

tld parsing error after upgrade to TC6

2008-01-04 Thread Dan D.
Hello everyone. I'm currently working on upgrading our environment to Tomcat 6.0.14 from 5.0.27. This is run on Apache 1.3.33 with mod_jk 1.2.25 (which is being upgraded from jk2). I'm able to get the basic sites working fine, however, there are a few applications that are still causing issue

RE: Content_Length Problem

2008-01-04 Thread Woytasik Joe
Rainer, I don't think that chunked encoding will solve the problem I outlined. Just out of curiosity is there something special I need to do to enable chunked encoding once the patch is applied? Where is a good place to upload my log file? Thanks- Joe -Original Message- From: Rainer

RE: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Jim Brikman (ybrikman)
Hi Rainer, Thanks for the quick response! A couple more questions: if we grab the code for APR, OpenSSL and tcnative, and compile them (yes, we are on Windows), what will we get? Several dll's? And if so, do we just replace the tcnative-1.dll with these dll's or is there some other configuration t

RE: jdbc connection pooling

2008-01-04 Thread Propes, Barry L
NOT in the WEB-INF/lib -- put in the common/lib - that's where it goes. You might get very erratic performance putting the jar file in both places. make sure you know how to configure either your server.xml file or respective META-INF/ .xml file appropriately. Depends on which TC version you use

Re: Apache Portable Runtime and Tomcat?

2008-01-04 Thread Rainer Jung
Hi Jim, APR and OpenSSL are maintained by other projects (apr.apache.org resp. www.openssl.org). The tcnative source can be obtained from http://www.apache.org/dist/tomcat/tomcat-connectors/native/ The download contain a dsp file for Visual Studio (supposing you are talking about WIN platform b

Re: Content_Length Problem

2008-01-04 Thread Rainer Jung
Hi Joe, the isapi chunked encoding patch shouldn't solve your problem. As I understand the topic it will not add a content-length header but enable chunked encoding, which doesn't use content-length. Clean up your jk log and let us/me have a look at it. I hope we can then see if anything is wrong

Apache Portable Runtime and Tomcat?

2008-01-04 Thread Jim Brikman (ybrikman)
The User Guide for the Apache Portable Runtime with Tomcat ( http://tomcat.apache.org/tomcat-5.5-doc/apr.html) states the following: Windows binaries are provided for tcnative-1, which is a statically compiled .dll which includes OpenSSL and APR. It can be downloaded from here

RE: Content_Length Problem

2008-01-04 Thread Woytasik Joe
Rainer, Thanks for the quick response! I am able to repeat this request, and each time I get the same response. The logging level is set to debug, but unfortunately I am unable to send the log file (company policy). I am going to scrub the log file to remove any sensitive information, I will s

Re: Tomcat + HttpClient + SSL + tcnative-1.dll issues?

2008-01-04 Thread JP Beaudry
We're narrowed down the problem further. It appears that a buffer within the SSL decoding process is not flushed properly which results in the HTTP request being sent to the application (Tomcat) twice. Wireshark clearly shows only one request, while the Tomcat access log shows two. As previously s

Re: Content_Length Problem

2008-01-04 Thread Rainer Jung
Hi Joe, are you able to reproduce the behaviour with few, maybe only a single request? If so: you can increase JkLogLevel to "debug" (not recommended for high load production size, because it produces a lot of log lines), reproduce the problem and make the log file available. What I didn't really

Content_Length Problem

2008-01-04 Thread Woytasik Joe
I have a custom webservice hosted on IIS 6.0 and Tomcat 6, and I am using the latest version of the isapi_redirect.dll. The problem occurs when a CICS mainframe application tries to call this webservice. Everything appears to work fine, but the CICS application receives a response indicating a zer

RE: jdbc connection pooling

2008-01-04 Thread Scott McClanahan
On Fri, 2008-01-04 at 11:16 -0600, Caldarale, Charles R wrote: > > From: Scott McClanahan [mailto:[EMAIL PROTECTED] > > Subject: RE: jdbc connection pooling > > > > I'm going to try my best to not sound ignorant but can you better > > explain what you mean when you say tomcat "manages" the conne

RE: jdbc connection pooling

2008-01-04 Thread Caldarale, Charles R
> From: Scott McClanahan [mailto:[EMAIL PROTECTED] > Subject: RE: jdbc connection pooling > > I'm going to try my best to not sound ignorant but can you better > explain what you mean when you say tomcat "manages" the connections > compared to if the application (using the same apache commons >

RE: jdbc connection pooling

2008-01-04 Thread Scott McClanahan
On Fri, 2008-01-04 at 10:23 -0600, Caldarale, Charles R wrote: > > From: Scott McClanahan [mailto:[EMAIL PROTECTED] > > Subject: jdbc connection pooling > > > > The developer says that the jar file containing the > > database driver should be published within the web > > applications WEB-INF/l

Re: jdbc connection pooling

2008-01-04 Thread David Smith
As you've described it using tomcat's JNDI resources, the driver has to be in common/lib. If the application defines and manages it's own pool separate from tomcat, then you could put it in the app's WEB-INF/lib folder. This has everything to do with how the classloaders work. Since tomcat a

RE: jdbc connection pooling

2008-01-04 Thread Caldarale, Charles R
> From: Scott McClanahan [mailto:[EMAIL PROTECTED] > Subject: jdbc connection pooling > > The developer says that the jar file containing the > database driver should be published within the web > applications WEB-INF/lib folder while I say it should > be in $CATALINA_HOME/common/lib. You are

Re: jdbc connection pooling

2008-01-04 Thread Scott McClanahan
On Fri, 2008-01-04 at 14:12 -0200, Diego wrote: > I'm using the connection pooling on Tomcat 6. > > And in my case i had to put the jar from the jdbc driver on. > > $CATALINA_HOME/lib > > On Jan 4, 2008 2:05 PM, Scott McClanahan <[EMAIL PROTECTED]> > wrote: > > > We are about to start testing

Re: jdbc connection pooling

2008-01-04 Thread Diego
I'm using the connection pooling on Tomcat 6. And in my case i had to put the jar from the jdbc driver on. $CATALINA_HOME/lib On Jan 4, 2008 2:05 PM, Scott McClanahan <[EMAIL PROTECTED]> wrote: > We are about to start testing the jdbc connection pooling capabilities > within tomcat. I don't ha

jdbc connection pooling

2008-01-04 Thread Scott McClanahan
We are about to start testing the jdbc connection pooling capabilities within tomcat. I don't have any control over the application instead perform only administrative duties. Between the developers and myself we have done a good bit of research and mapped out a decent plan but there is one unres

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Traut
Yes, this helps, everything fine now. Thank you. Rainer Rainer Jung schrieb: Replace --Wl, by -Wl, in configure and build/tcnative.m4. --- configure.orig 2007-12-21 15:06:53.0 +0100 +++ configure 2008-01-04 14:41:51.0 +0100 @@ -3936,7 +3936,7 @@ TCN_OPEN

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Traut
Rainer Jung schrieb: Did you see my second post? Yes, but after I sent the reply. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Jung
Did you see my second post? Rainer Traut schrieb: > Hi Rainer :) > > Rainer Jung schrieb: >> Hi Rainer, >> >> I can reproduce on Solaris. >> >> The first problem should be fixed by: >> >> --- configure.orig 2007-12-21 15:06:53.0 +0100 >> +++ configure 2008-01-04 14:16:13.0

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Jung
Replace --Wl, by -Wl, in configure and build/tcnative.m4. --- configure.orig 2007-12-21 15:06:53.0 +0100 +++ configure 2008-01-04 14:41:51.0 +0100 @@ -3936,7 +3936,7 @@ TCN_OPENSSL_LIBS="-L$use_openssl/lib -Wl,+b: -lssl -lcrypto" ;;

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Traut
Hi Rainer :) Rainer Jung schrieb: Hi Rainer, I can reproduce on Solaris. The first problem should be fixed by: --- configure.orig 2007-12-21 15:06:53.0 +0100 +++ configure 2008-01-04 14:16:13.0 +0100 ... --- build/tcnative.m4.orig 2008-01-04 14:18:10.0

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Jung
Hi Rainer, I can reproduce on Solaris. The first problem should be fixed by: --- configure.orig 2007-12-21 15:06:53.0 +0100 +++ configure 2008-01-04 14:16:13.0 +0100 @@ -2490,7 +2490,7 @@ { (exit 1); exit 1; }; } fi sapr_version="`echo $sapr_pversion|sed -e 's/\(

RE: Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-04 Thread Mariano
Hello again Mark, I have been looking in DataSourceRealm.java file as you write below in previous messages. Following the same method I change my code to: Context context = null; context = ContextBindings.getClassLoader(); context = (Context) context.lookup("comp/env"); dataSourceSQL = (D

Re: session id cookies

2008-01-04 Thread Paul Singleton
Bill Barker wrote: "Paul Singleton" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] If I set will Tomcat ignore any JSESSIONID cookie which accompanies a request? Should it? With any of the released versions, it won't ignore the cookie if the browser sends one. There is a

Re: tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Traut
Rainer Traut schrieb: I get many error msgs from this new thing; 1.1.10 was fine. I cut the rest of the lines with 'command not found'. # ./configure --with-apr=/usr/local/apache2/ --with-ssl=/usr/include/openssl/ ... checking for OpenSSL library... using openssl from /usr/include/openssl//

Re: Tomcat6

2008-01-04 Thread Vinu Varghese
Yes, Why it shouldn't be ? Shiby Maria John wrote: Hi, can Tomcat 6 version be used in production? Regards, Shiby - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additio

tc-native-1.1.12 fails to configure on Redhat EL4 x86_64 (... command not found)

2008-01-04 Thread Rainer Traut
Hi, I get many error msgs from this new thing; 1.1.10 was fine. I cut the rest of the lines with 'command not found'. # ./configure --with-apr=/usr/local/apache2/ --with-ssl=/usr/include/openssl/ checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unkno

Re: fifo queue

2008-01-04 Thread Mikolaj Rydzewski
Marco Caldirola wrote: I need to create on my tomcat 6.0 server a fifo queue of my http requests. I want to process a single request at a time. Do you have an idea? Change your idea. Do you really need such a nasty hack? Use command pattern. Process requests as usual, create Command objects

Tomcat6

2008-01-04 Thread Shiby Maria John
Hi, can Tomcat 6 version be used in production? Regards, Shiby - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: fifo queue

2008-01-04 Thread David Delbecq
Reduce the max http request threads to 1. However, 1) the admin request will be queued like user ones 2) it's not a fifo, the socket that are served, one at a time, by http thread are, i think, in the same order as the thread get notified by jvm En l'instant précis du 04/01/08 12:12, Marco Caldir

Re: fifo queue

2008-01-04 Thread ben short
Add something like the following to your servlet synchronized ( someObject ) { do work } But you'll need to be careful, as requests will block and clients might time out if you are performing lengthy operations inside the synchronized block. On Jan 4,

fifo queue

2008-01-04 Thread Marco Caldirola
Hi, I need to create on my tomcat 6.0 server a fifo queue of my http requests. I want to process a single request at a time. Do you have an idea? Thanks in advance. Marco ___ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http

RE: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Gennady Shumakher
If you cannot replace your jsps with velocity (or freemarker) you could still use RequestDispatcher. Just provide your own implementation of ServletResponse that mostly will be just wrapper based on servlet response instance ( Tomcat implementation), but will buffer response output as string rathe

Problem in Tomcat 5.5 Server

2008-01-04 Thread Richard G. Reyes
Hi Guys, We have setup 3 tomcat server for 1 domain name using DNS Round-robin. Our problem is sometimes the tomcat servers are not responding, we are monitoring the bandwidth and cpu usage and its not high during those slow response times. Hope you guys have any ideas on this... Tia! Richar

Re: Avoiding same server to server HTTP calls to generate HTML pages via JSPs

2008-01-04 Thread Mikolaj Rydzewski
Adam Gordon wrote: Right now we basically have a URL dispatcher that when a specific request comes in, we make another request to retrieve the contents of a URI (a JSP page to generate HTML) via a server-to-server HTTP call and then essentially slap that into a MimeBodyPart for sending text/ht