Re: Tomcat 7 8 getRemoteHost with enableLookups=true with x-forwarded-for header gets IP instead of hostname

2014-02-21 Thread André Warnier
Yann Nicolas wrote: Hello, I have a web application load balanced in an intranet and I need to get the hostname of the client from the request (for audit purposes). I have verified that the load balancer is adding the header x-forwarded-for and I get the correct client IP with the

Re: Can jasper2's validateXml be added back, at least for the lifetime of Tomcat 7?

2014-02-21 Thread Mark Thomas
On 21/02/2014 01:44, mark_desp...@mcafee.com wrote: Thank you for the quick reply, Mark. Would it be possible to get a sense of which release the validateXml attribute might get added back? E.g. 7.0.53? It will be 7.0.53. See:

Re: Tomcat 7 8 getRemoteHost with enableLookups=true with x-forwarded-for header gets IP instead of hostname

2014-02-21 Thread Mark Thomas
On 21/02/2014 05:32, Yann Nicolas wrote: Of course I can put a filter in my web application to do search the hostname from the remote IP using java.net.InetAddress for example but I was wondering if a Tomcat native solution exists. There isn't. Please create a Bugzilla issue for this. If

Re: Tomcat 7 8 getRemoteHost with enableLookups=true with x-forwarded-for header gets IP instead of hostname

2014-02-21 Thread Yann Nicolas
Thanks a lot André and Mark, I understand your advice on performance degradation due to reverse DNS. It makes sense to me to disable the lookups at Tomcat level and search for the hostname asynchronously when storing logs (we store audit in DB, then it makes even more sense do this async). I will

Issue on configuring Connection Pool and datasource in Tomcat 7.

2014-02-21 Thread Josh Gooding
Man this has been a while since I've reached out to this list, but here it goes. I am using Tomcat 7 on Windows 7 64x and trying to configure a datasource (MySQL DB running on a 2nd box) to use. I am able to connect from my local to the remote using the mysql command line, so I do know the

Re: Issue on configuring Connection Pool and datasource in Tomcat 7.

2014-02-21 Thread Mark Thomas
On 21/02/2014 14:49, Josh Gooding wrote: Is there something that I am missing here? Where is the JAR containing your JDBC driver? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands,

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dmitry, On 2/20/14, 1:58 PM, Dmitry Batiyevskiy wrote: When using tomcat 7.0.42 I used libtcnative 1.1.24-1 which comes from debian repos Upgrade to tomcat 7.0.50 required upgrade of libtcnative also and there was no updated version in debian

Re: Tomcat 7 8 getRemoteHost with enableLookups=true with x-forwarded-for header gets IP instead of hostname

2014-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Yann, On 2/21/14, 8:53 AM, Yann Nicolas wrote: Thanks a lot André and Mark, I understand your advice on performance degradation due to reverse DNS. It makes sense to me to disable the lookups at Tomcat level and search for the hostname

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-21 Thread Dmitry Batiyevskiy
2014-02-21 18:10 GMT+02:00 Christopher Schultz ch...@christopherschultz.net : -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dmitry, On 2/20/14, 1:58 PM, Dmitry Batiyevskiy wrote: When using tomcat 7.0.42 I used libtcnative 1.1.24-1 which comes from debian repos Upgrade to tomcat

Re: Issue on configuring Connection Pool and datasource in Tomcat 7.

2014-02-21 Thread Josh Gooding
On Fri, Feb 21, 2014 at 9:59 AM, Mark Thomas ma...@apache.org wrote: On 21/02/2014 14:49, Josh Gooding wrote: Is there something that I am missing here? Where is the JAR containing your JDBC driver? Mark Mark, It's in the WEB-INF/lib directory with all of the other jars I have for

Re: Issue on configuring Connection Pool and datasource in Tomcat 7.

2014-02-21 Thread Mark Thomas
On 21/02/2014 16:17, Josh Gooding wrote: On Fri, Feb 21, 2014 at 9:59 AM, Mark Thomas ma...@apache.org wrote: On 21/02/2014 14:49, Josh Gooding wrote: Is there something that I am missing here? Where is the JAR containing your JDBC driver? Mark Mark, It's in the WEB-INF/lib

Re: Issue on configuring Connection Pool and datasource in Tomcat 7.

2014-02-21 Thread Josh Gooding
On Fri, Feb 21, 2014 at 11:21 AM, Mark Thomas ma...@apache.org wrote: On 21/02/2014 16:17, Josh Gooding wrote: On Fri, Feb 21, 2014 at 9:59 AM, Mark Thomas ma...@apache.org wrote: On 21/02/2014 14:49, Josh Gooding wrote: Is there something that I am missing here? Where is the JAR

Re: Tomcat 7 8 getRemoteHost with enableLookups=true with x-forwarded-for header gets IP instead of hostname

2014-02-21 Thread Yann Nicolas
Hello, I agree, it doesn't make sense to do DNS resolution on proxy IPs. What I mean is that I do not think it is possible to implement a logic in Tomcat that does the reverse DNS on the IP of the client (or proxy) only if there is no information in the x-forwarded-for header, this is done in

Re: Can jasper2's validateXml be added back, at least for the lifetime of Tomcat 7?

2014-02-21 Thread Mark_DeSpain
Got it. Much appreciated! On 2/21/14, 1:11 AM, Mark Thomas ma...@apache.org wrote: On 21/02/2014 01:44, mark_desp...@mcafee.com wrote: Thank you for the quick reply, Mark. Would it be possible to get a sense of which release the validateXml attribute might get added back? E.g. 7.0.53?

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dmitry, On 2/21/14, 11:17 AM, Dmitry Batiyevskiy wrote: 2014-02-21 18:10 GMT+02:00 Christopher Schultz ch...@christopherschultz.net : Dmitry, On 2/20/14, 1:58 PM, Dmitry Batiyevskiy wrote: When using tomcat 7.0.42 I used libtcnative

Re: java: src/network.c:441: Java_org_apache_tomcat_jni_Socket_send: Assertion failed

2014-02-21 Thread Dmitry Batiyevskiy
Ok thanks I will try setting org.apache.catalina.connector.RECYCLE_FACADES to true Regards, Dmitry Batiyevskiy Ardas Group Inc. www.ardas.dp.ua

Re: NullPointerException is thrown when executing org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket

2014-02-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Eric, On 2/19/14, 2:40 AM, HU E wrote: Thanks for your response. I will try your suggestion, i.e. setting the system property org.apache.catalina.connector.RECYCLE_FACADES to true(I guess I can set this in catalina.properties). I would set it