ErrorReportValve's char encoding ignored

2013-05-15 Thread Michael-O
Hi folks, I have modified the ErrorReportValve's messages outside of the one-byte range and the output got mangled. The response does not contain a char encoding anymore. I know that the error valve does this: response.setContentType(text/html); response.setCharacterEncoding(utf-8); but the

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
Anil, On 15.5.2013 13:42, Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) wrote: We are using tomcat version 7.0.25 and in server.xml, we have two connector port defined:80 (http)and 443(https). In /etc/sysconfig/iptables, we have redirect logic written that will redirect the

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Ognjen Blagojevic wrote: Anil, On 15.5.2013 13:42, Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) wrote: We are using tomcat version 7.0.25 and in server.xml, we have two connector port defined:80 (http)and 443(https). In /etc/sysconfig/iptables, we have redirect logic written that

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 14:16, André Warnier wrote: Ognjen Blagojevic wrote: Iptables will not change the URL. Iptables merely redirects all packets received on port 8080 to port 80. It will not alter the contents of the packets. Therefore, Tomcat will receive your HTTP request as it is sent by your

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Mark Thomas wrote: On 15/05/2013 14:16, André Warnier wrote: Ognjen Blagojevic wrote: Iptables will not change the URL. Iptables merely redirects all packets received on port 8080 to port 80. It will not alter the contents of the packets. Therefore, Tomcat will receive your HTTP request as

Re: redirect request from 8080 to port 80

2013-05-15 Thread Ognjen Blagojevic
André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat gets from the 1st request line does not contain a hostname[:port}.

Re: ErrorReportValve's char encoding ignored

2013-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Micheal, On 5/15/13 3:46 AM, Michael-O wrote: I have modified the ErrorReportValve's messages outside of the one-byte range and the output got mangled. The response does not contain a char encoding anymore. Can you be more specific? What

Re: redirect request from 8080 to port 80

2013-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 5/15/13 9:38 AM, André Warnier wrote: Mark Thomas wrote: On 15/05/2013 14:16, André Warnier wrote: Ognjen Blagojevic wrote: Iptables will not change the URL. Iptables merely redirects all packets received on port 8080 to port 80.

Aw: Re: ErrorReportValve's char encoding ignored

2013-05-15 Thread Michael-O
Hi Christopher, Von: Christopher Schultz ch...@christopherschultz.net -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Micheal, On 5/15/13 3:46 AM, Michael-O wrote: I have modified the ErrorReportValve's messages outside of the one-byte range and the output got mangled. The response

Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread msyber
Hi, I need your assistance about APR. OS: Centos 5.9 Tomcat: 6.0.13 JDK: 1.5.0_22 echo $JAVA_HOME /usr/java/jdk1.5.0_22 echo $LD_LIBRARY_PATH /usr/local/apr/lib ll /usr/local/apr/lib/ total 4372 -rw-r--r-- 1 root root8367 May 15 16:44 apr.exp -rw-r--r-- 1 root root 1344040 May 15 16:44

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Ognjen Blagojevic wrote: André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat gets from the 1st request line does not

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 17:15, André Warnier wrote: Ognjen Blagojevic wrote: André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the URL that Tomcat

Re: Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread Mark Thomas
On 15/05/2013 17:03, msyber wrote: Hi, I need your assistance about APR. OS: Centos 5.9 Tomcat: 6.0.13 JDK: 1.5.0_22 echo $JAVA_HOME /usr/java/jdk1.5.0_22 echo $LD_LIBRARY_PATH /usr/local/apr/lib ll /usr/local/apr/lib/ total 4372 -rw-r--r-- 1 root root8367 May 15 16:44 apr.exp

Re: Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread msyber
The issue is the library was not found! 2013/5/15 Mark Thomas ma...@apache.org NFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:

Re: Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread David kerber
On 5/15/2013 2:55 PM, msyber wrote: The issue is the library was not found! And you want it to be? You should have said that. That shows up in my logs too, but I don't use it. 2013/5/15 Mark Thomasma...@apache.org NFO: The Apache Tomcat Native library which allows optimal performance

RE: Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread Caldarale, Charles R
From: msyber [mailto:msy...@gmail.com] Subject: Re: Apache Tomcat Native library was not found on the java.library.path Don't top post - it's obnoxious and makes the conversation much harder to follow. Tomcat: 6.0.13 Sadly out of date - over six years old. JDK: 1.5.0_22 Not supported.

HTTP Digest authentication in Tomcat server farms

2013-05-15 Thread Andrew Kulemet
Hi, Now that digest authentication is fixed (Tomcat 6.0.36), how do we ensure that clients' authentication requests are routed to correct Tomcats in load balanced deployments? Otherwise, clients can get stuck in re-authentication loops (until they happen to be routed to the same Tomcat that

Re: IOException from the response during an async request

2013-05-15 Thread Rossen Stoyanchev
Mark, While there is no response on the Servlet spec list, I have some follow-up questions: If you call complete() you'll end up with an IllegalStateException when the error handler kicks in. You have to use dispatch(). The error handle kicks in as soon as the dispatch() tries to write to the

Re: Apache Tomcat Native library was not found on the java.library.path

2013-05-15 Thread msyber
2013/5/15 Caldarale, Charles R chuck.caldar...@unisys.com From: msyber [mailto:msy...@gmail.com] Subject: Re: Apache Tomcat Native library was not found on the java.library.path Don't top post - it's obnoxious and makes the conversation much harder to follow. Tomcat: 6.0.13 Sadly out

Tomcat 7.0.39 Java 7.0_21 Failed to write core dump. Call to MiniDumpWriteDump() failed

2013-05-15 Thread Kevin Manson
We have a memory intensive tomcat application (lucene based) that is crashing multiple times per day, but it never completes the memory dump. Any tips on what to try next would be appreciated. Environment Citrix XenServer Virtual Machine Windows 2008 R2 SP1 8vCPUs 24GB Ram -Xms12288m

Re: Tomcat 7.0.39 Java 7.0_21 Failed to write core dump. Call to MiniDumpWriteDump() failed

2013-05-15 Thread Mark Thomas
On 15/05/2013 21:31, Kevin Manson wrote: We have a memory intensive tomcat application (lucene based) that is crashing multiple times per day, but it never completes the memory dump. Any tips on what to try next would be appreciated. Do you need to be using the APR/native connector? Mark

Re: redirect request from 8080 to port 80

2013-05-15 Thread André Warnier
Mark Thomas wrote: On 15/05/2013 17:15, André Warnier wrote: Ognjen Blagojevic wrote: André, On 15.5.2013 15:38, André Warnier wrote: As far as I understand here, we are not talking about a proxy situation, we are talking about Iptables, which does not proxy, it just modifies packets. So the

Re: redirect request from 8080 to port 80

2013-05-15 Thread Mark Thomas
On 15/05/2013 22:56, André Warnier wrote: Mark Thomas wrote: On 15/05/2013 17:15, André Warnier wrote: I find it less intuitive because of the Javadoc of HttpServletRequest.getLocalPort : getLocalPort int getLocalPort() Returns the Internet Protocol (IP) port number of the interface

tomcat7-maven-plugin and async supported

2013-05-15 Thread Bas Ven
I created a filter class and forgot to set the async supported property to true. This resulted that my war didn't deploy/work when running inside tomcat 7. I fixed that and it runs fine now, but I am surprised that I didn't see this earlier since I am using the tomcat7-maven-plugin to start an

AUTO: Uri Shani/Haifa/IBM is out of office, attending DANSE meeting in Rennes France + vacation. (returning 27/05/2013)

2013-05-15 Thread Uri Shani
I am out of the office until 27/05/2013. Business phone#: 03-6332922 Note: This is an automated response to your message Re: redirect request from 8080 to port 80 sent on 16/05/2013 0:56:50. This is the only notification you will receive while this person is away.

Embedded Tomcat 7 SSL Properties

2013-05-15 Thread Chirag Dewan
Sorry for the previous mail. Adding Subject. - Forwarded Message - From: Chirag Dewan chirag.dewa...@yahoo.in To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, 16 May 2013 8:37 AM Subject: Hi All, I am upgrading my Embedded Tomcat 6 to Tomcat 7. I am adding an HTTPS