Re: Curl problem with reloadSslHostConfigs, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Peter Kreuser
James, > Am 07.01.2020 um 03:11 schrieb James H. H. Lampert : > > Dear Mr. Schultz, et al.: > > The manager password on this Tomcat server has an embedded curly brace, and > an embedded question mark. > > If I do this (the names have been changed to protect the innocent, and the > -k!) >

Re: Ignore duplicate HTTP headers in Tomcat 8.5.50-0+deb9u1

2020-01-06 Thread Dennis Rech
Hi Christopher, Am 06.01.20 um 17:39 schrieb Christopher Schultz: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dennia, On 1/6/20 07:09, Dennis Rech wrote: we have an application where HTTP clients have a kind of unclean way of submitting HTTP POST requests to our tomcat server for data

RE: performance issue with Tomcat 8.5.35 in org.apache.tomcat.util.net.NioBlockingSelector.write API

2020-01-06 Thread Rathore, Rajendra
Hi Rémy/ Christopher, It will stuck there for 10-15 minutes, so it will take time to load simple Web UI, there is no WebSocket call. I am giving you one of the sample where it will take 90% time in write operation, sometime it will reach to 100%.

Re: Curl problem with reloadSslHostConfigs, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Zahid Rahman
https://stackoverflow.com/questions/17560858/command-prompt-having-trouble-escaping-quotes-and-braces You can use curl -g to turn off globbing: On Tue, 7 Jan 2020, 02:11 James H. H. Lampert, wrote: > Dear Mr. Schultz, et al.: > > The manager password on this Tomcat server has an embedded curly

Curl problem with reloadSslHostConfigs, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
Dear Mr. Schultz, et al.: The manager password on this Tomcat server has an embedded curly brace, and an embedded question mark. If I do this (the names have been changed to protect the innocent, and the -k!) curl -k

Question about iptables, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
Ladies and Gentlemen: As I said earlier today, I have # Generated by iptables-save v1.4.18 on Mon Jan 6 21:17:22 2020 *filter :INPUT ACCEPT [5018099:5766179544] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [400:2863742410] COMMIT # Completed on Mon Jan 6 21:17:22 2020 # Generated by

Re: Breakthrough, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
Heureka! Actually, I was thinking more "Sokath, his eyes uncovered!" And actually, at this point, I'm thinking I'm better off with Apache httpd handling port 80, since it would only be used for Let's Encrypt, and Let's Encrypt and certbot currently play much more nicely with it than with

Re: Breakthrough, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Peter Kreuser
James, >> Am 06.01.2020 um 22:28 schrieb James H. H. Lampert >> : >> >> I think I found something, with the help of "MLu" on ServerFault: >> >> He advised me to try "iptables -L" and "iptables-save" again, only this time >> "sudo" them. >> >> When I did "iptables -L" under root

Re: [OT] Re: Maven Warning. Ubuntu Users

2020-01-06 Thread Emmanuel Bourg
Le 06/01/2020 à 21:24, Zahid Rahman a écrit : > Don't shoot the messenger. You are not sending the message to the right list, there is nothing the Tomcat developers can do to fix this issue. This should be brought to debian-j...@lists.debian.org instead (Debian is the source of Ubuntu Java

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread logo
Well - why do you think someone is calling you names? Mark did not, right? > Am 06.01.2020 um 22:11 schrieb Zahid Rahman : > > Are you calling me names ? > > On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > >> On 06/01/2020 16:29, Christopher Schultz wrote: >>> You have a right to a view, and

Breakthrough, Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
I think I found something, with the help of "MLu" on ServerFault: He advised me to try "iptables -L" and "iptables-save" again, only this time "sudo" them. When I did "iptables -L" under root privileges, I still only got column headings, but when I did "iptables-save" under root privileges,

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Zahid Rahman
Are you calling me names ? On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > On 06/01/2020 16:29, Christopher Schultz wrote: > > You have a right to a view, and you can troll all you want. But you > > will be ignored. > > Up to a point. > > Users that continue to troll will be unsubscribed and

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Zahid Rahman
So people who find miserable software breakdowns and failures will be called trolls and blocked. That sound about right . On Mon, 6 Jan 2020, 20:35 Mark Thomas, wrote: > On 06/01/2020 16:29, Christopher Schultz wrote: > > You have a right to a view, and you can troll all you want. But

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Mark Thomas
On 06/01/2020 16:29, Christopher Schultz wrote: > You have a right to a view, and you can troll all you want. But you > will be ignored. Up to a point. Users that continue to troll will be unsubscribed and blocked from re-subscribing. As a general reminder aimed at keeping noise down on the

Re: [OT] Re: Maven Warning. Ubuntu Users

2020-01-06 Thread Zahid Rahman
It was the maven team which informed me the issue is with ubuntu compiling wrong classes incorrectly as described. Now all my software is running without warnings. I can also use any jdk even the bleeding jdk version. People are using maven and jdk with Tomcat. Don't shoot the messenger.

Re: [OT] Re: Maven Warning. Ubuntu Users

2020-01-06 Thread Michael Osipov
Am 2020-01-06 um 21:13 schrieb Zahid Rahman: That must be the reason why Apache Netbeans is using a version from 2015 and Apache Struts is recommending to use jdk 8. Because there is somebody like you keeps telling people it is off topic and Giant IT companies are not releasing jdk further

Re: [OT] Re: Maven Warning. Ubuntu Users

2020-01-06 Thread Zahid Rahman
That must be the reason why Apache Netbeans is using a version from 2015 and Apache Struts is recommending to use jdk 8. Because there is somebody like you keeps telling people it is off topic and Giant IT companies are not releasing jdk further than JDK 8. The issue is a miserable and

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
On 1/6/20 11:29 AM, Christopher Schultz wrote: I think Route 53 always uses a load-balancer, doesn't it? No. A load balancer implies the existence of a cluster, and this is a single instance, with a fixed IP address, and that is the address in the A record under Route 53. And if a load

[OT] Re: Maven Warning. Ubuntu Users

2020-01-06 Thread Mark Thomas
On 06/01/2020 18:37, Zahid Rahman wrote: > To all ubuntu Maven users. This is off-topic for this mailing list. Please keep posts on this list on topic. Thanks, Mark > > Do NOT install maven using > sudo apt install maven > > Install by direct download only from >

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 1/6/20 13:05, James H. H. Lampert wrote: >> $ host foo.bar.net >> >> And check the IP versus the IP of the Tomcat node? > > Doing a "host" on the domain gives me the same IP address where > the instance itself lives, which is also the

Maven Warning. Ubuntu Users

2020-01-06 Thread Zahid Rahman
To all ubuntu Maven users. Do NOT install maven using sudo apt install maven Install by direct download only from https://maven.apache.org/download.cgi BECAUSE: "I seem to remember they [ubuntu] have their own build of Maven which differs from the Apache source. (

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread James H. H. Lampert
$ host foo.bar.net And check the IP versus the IP of the Tomcat node? Doing a "host" on the domain gives me the same IP address where the instance itself lives, which is also the address given in Route 53. -- JHHL - To

Re: [OT] Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Zahid Rahman
>Point The email header says I tried 777. There are common commands used on *.nix which are never used Ms-windows. That's one of them. It is not rant. It is sarcasm. I use " find" all the time when I don't ever need it on windows. On Mon, 6 Jan 2020, 16:10 Christopher Schultz, wrote:

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Zahid Rahman
> Did I? I don't recall recommending purchasing a certificate Purchase a domain name not certificate. On Mon, 6 Jan 2020, 16:45 Christopher Schultz, wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > Zahid, > > On 1/6/20 10:08, Zahid Rahman wrote: > > 》> If, however, I do curl

Re: performance issue with Tomcat 8.5.35 in org.apache.tomcat.util.net.NioBlockingSelector.write API

2020-01-06 Thread Rémy Maucherat
On Mon, Jan 6, 2020 at 1:27 PM Rathore, Rajendra wrote: > Hi Team, > > > > We are facing performance issue during > *org.apache.tomcat.util.net.NioBlockingSelector.write > API call, *,most of our thread stuck and spending more time in that API, > you can check below screenshot for more details.

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/6/20 10:08, Zahid Rahman wrote: > 》> If, however, I do curl https://foo.bar.net from my Mac, I get a >> response, but if I do curl https://localhost, it doesn't get >> anywhere. > > This may be relevant. In the video mentioned earlier

Re: performance issue with Tomcat 8.5.35 in org.apache.tomcat.util.net.NioBlockingSelector.write API

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Rajendra, On 1/6/20 07:26, Rathore, Rajendra wrote: > We are facing performance issue during > *org.apache.tomcat.util.net.NioBlockingSelector.write API call, > *,most of our thread stuck and spending more time in that API, you > can check below

Re: Ignore duplicate HTTP headers in Tomcat 8.5.50-0+deb9u1

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Dennia, On 1/6/20 07:09, Dennis Rech wrote: > we have an application where HTTP clients have a kind of unclean > way of submitting HTTP POST requests to our tomcat server for data > upload: The |POST| and |Host: xxx| part appears twice in the >

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/6/20 04:55, zahid wrote: > 00h > >>> Have ever heard of *which* in windows ? Yea, no "which" - but >>> have you tried "where" on Win? Could also use a "for" in Win >>> (if you understand how to do it). >> >>

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/5/20 20:44, zahid wrote: > Why will MS Windows users will never have to deal with issue of > *chmod* ? On Windows, it's called ATTRIB.EXE: C:\> ATTRIB A SH C:\pagefile.sys A SH C:\swapfile.sys Those are separate from the NT ACL, of

Re: [OT] Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/4/20 20:26, zahid wrote: > > Actually this is *one of many *punishments following the sin of > choosing *.nix > > and not Microsoft Windows. > > Have ever heard of "*chmod*" in windows ? > > MS windows trust you with your machine. >

Re: [OT] JDBC connection pooling maxActive or MaxTotal

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zahid, On 1/3/20 18:50, zahid wrote: > Is commons-dbcp-2.x a Database pooling component for any > container Jetty,Jboss tomcat etc. ? Yes. Tomcat ships with a shaded (package-renamed) version of commons-dbcp as well as tomcat-pool, a separate

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Zahid Rahman
》> If, however, I do curl https://foo.bar.net from my Mac, I get a > response, but if I do curl https://localhost, it doesn't get > anywhere. This may be relevant. In the video mentioned earlier in the thread the let's encrypt expert says let's encrypt doesn't work on localhost but it only

Re: Let's Encrypt with Tomcat?

2020-01-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 1/3/20 13:47, James H. H. Lampert wrote: > On 1/3/20 9:57 AM, Christopher Schultz wrote: >> Is perhaps the AWS firewall (which is a Load Balancer, right?) >> redirecting the port? >> >> Easy test (from the server): >> >> $ telnet

performance issue with Tomcat 8.5.35 in org.apache.tomcat.util.net.NioBlockingSelector.write API

2020-01-06 Thread Rathore, Rajendra
Hi Team, We are facing performance issue during org.apache.tomcat.util.net.NioBlockingSelector.write API call, ,most of our thread stuck and spending more time in that API, you can check below screenshot for more details. [cid:image002.jpg@01D5C4BA.A1BBFAB0] We debug the code and found

Ignore duplicate HTTP headers in Tomcat 8.5.50-0+deb9u1

2020-01-06 Thread Dennis Rech
Hi and happy new year, we have an application where HTTP clients have a kind of unclean way of submitting HTTP POST requests to our tomcat server for data upload: The |POST| and |Host: xxx| part appears twice in the request. Until now this didn't cause any problems with tomcat, but since the

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread zahid
00h > Have ever heard of *which* in windows ? >Yea, no "which" - but have you tried "where" on Win? > Could also use a "for" in Win (if you understand how to do it). kub18@UB18:~$ which java /usr/bin/java kub18@UB18:~$ whereis java java: /usr/bin/java /usr/share/java

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread Pham Huu Bang
>What "user account" is Tomcat executing as? tomcat user. To fix the problem, I had to change /lib/systemd/system/tomcat9.service PrivateTmp=yes to PrivateTmp=no Then, sudo systemctl daemon-reload sudo service tomcat9 restart On Mon, 6 Jan 2020 at 09:58, calder wrote: > On Sat, Jan 4,

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread calder
On Sat, Jan 4, 2020 at 8:36 AM bphamhuu wrote: > I have a java web application by Tomcat 9 servlet container which tries to > read a file in /tmp folder with 777 permission on Ubuntu 18.04 > > ls -ltr /tmp/test.txt > -rwxrwxrwx 1 vagrant vagrant 10 Jan 3 17:03 /tmp/test.txt [snip] > #

Re: Tomcat 9 does not allow to read file in /tmp folder with 777 permission?

2020-01-06 Thread calder
On Sat, Jan 4, 2020 at 7:26 PM zahid wrote: > Have ever heard of "*chmod*" in windows ? No, but that's because the security model in Windows is *different* than for *nix OSes. On Win, there's attrib, xcacls, cacls, and icacls, but none of those truly match was chmod does. So, one needs to