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

2020-01-08 Thread Zahid Rahman
You post has taken my interest and I  am going to experiment  and get a
good  understanding of  how this works. At the end of it I guarantee you I
will know all there is to know  about this.

On Thu, 9 Jan 2020, 05:25 Rathore, Rajendra,  wrote:

> Hi Zahid,
>
> How below link is going to help me out to know the root cause of the
> problem?
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Zahid Rahman 
> Sent: Thursday, January 9, 2020 10:53 AM
> To: Tomcat Users List 
> Subject: Re: BLOCKING: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> External email from: users-return-269283-rarathore=
> ptc@tomcat.apache.org
>
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.codota.com%2Fcode%2Fjava%2Fmethods%2Forg.apache.tomcat.util.net.NioBlockingSelector%2Fopendata=02%7C01%7Crarathore%40ptc.com%7C02a8c62f96c84b8ea63c08d794c40c25%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C637141442053995621sdata=E666bJmF4N1wxBhm%2Fa%2BY29lvLlA32tQ%2B4F3lwBnLM2g%3Dreserved=0
>
>
> On Thu, 9 Jan 2020, 04:49 Rathore, Rajendra,  wrote:
>
> > Hi Team,
> >
> > If someone know how to check whether proper read/write operation done
> > or not or it will caused by network please let me know because it is
> > blocking for me.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Wednesday, January 8, 2020 11:43 AM
> > To: 'Tomcat Users List' 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Can someone please help me to find out the root cause for below issue.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Tuesday, January 7, 2020 4:16 PM
> > To: Tomcat Users List 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Hi Remy,
> >
> > Thanks for the reply,
> >
> > As you mention below points
> >
> > "There's a problem only if things are blocked improperly, for example
> > if the client is correctly reading the data and/or there's no network
> backlog.
> > Also the timeout configured on the connector must be respected by the
> > operation."
> >
> > 1. how can we check the network backlog or data read/write not working
> > properly, if any tool pls let us know 2. how can we set connector
> timeout.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rémy Maucherat 
> > Sent: Tuesday, January 7, 2020 4:11 PM
> > To: Tomcat Users List 
> > Subject: Re: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > External email from: users-return-269207-rarathore=
> > ptc@tomcat.apache.org
> >
> > On Tue, Jan 7, 2020 at 6:33 AM Rathore, Rajendra 
> > wrote:
> >
> > > 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%.
> > >
> > >
> > >  ||
> > >
> > > O-org.apache.coyote.ajp.AjpProcessor.writeData(AjpProcessor.java:133
> > > 1)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBa
> > > se
> > > .java:385)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketW
> > > ra
> > > pperBase.java:462)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapper
> > > Ba
> > > se.java:726)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apa

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

2020-01-08 Thread Zahid Rahman
If I was in your position I would use the code to experiment  and debug the
problem.

On Thu, 9 Jan 2020, 05:25 Rathore, Rajendra,  wrote:

> Hi Zahid,
>
> How below link is going to help me out to know the root cause of the
> problem?
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Zahid Rahman 
> Sent: Thursday, January 9, 2020 10:53 AM
> To: Tomcat Users List 
> Subject: Re: BLOCKING: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> External email from: users-return-269283-rarathore=
> ptc@tomcat.apache.org
>
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.codota.com%2Fcode%2Fjava%2Fmethods%2Forg.apache.tomcat.util.net.NioBlockingSelector%2Fopendata=02%7C01%7Crarathore%40ptc.com%7C02a8c62f96c84b8ea63c08d794c40c25%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C637141442053995621sdata=E666bJmF4N1wxBhm%2Fa%2BY29lvLlA32tQ%2B4F3lwBnLM2g%3Dreserved=0
>
>
> On Thu, 9 Jan 2020, 04:49 Rathore, Rajendra,  wrote:
>
> > Hi Team,
> >
> > If someone know how to check whether proper read/write operation done
> > or not or it will caused by network please let me know because it is
> > blocking for me.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Wednesday, January 8, 2020 11:43 AM
> > To: 'Tomcat Users List' 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Can someone please help me to find out the root cause for below issue.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Tuesday, January 7, 2020 4:16 PM
> > To: Tomcat Users List 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Hi Remy,
> >
> > Thanks for the reply,
> >
> > As you mention below points
> >
> > "There's a problem only if things are blocked improperly, for example
> > if the client is correctly reading the data and/or there's no network
> backlog.
> > Also the timeout configured on the connector must be respected by the
> > operation."
> >
> > 1. how can we check the network backlog or data read/write not working
> > properly, if any tool pls let us know 2. how can we set connector
> timeout.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rémy Maucherat 
> > Sent: Tuesday, January 7, 2020 4:11 PM
> > To: Tomcat Users List 
> > Subject: Re: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > External email from: users-return-269207-rarathore=
> > ptc@tomcat.apache.org
> >
> > On Tue, Jan 7, 2020 at 6:33 AM Rathore, Rajendra 
> > wrote:
> >
> > > 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%.
> > >
> > >
> > >  ||
> > >
> > > O-org.apache.coyote.ajp.AjpProcessor.writeData(AjpProcessor.java:133
> > > 1)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBa
> > > se
> > > .java:385)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketW
> > > ra
> > > pperBase.java:462)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapper
> > > Ba
> > > se.java:726)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomc

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

2020-01-08 Thread Zahid Rahman
https://youtu.be/VhSu1pRIEqQ
This will you understand . Also explains io blocking performance.


On Thu, 9 Jan 2020, 05:25 Rathore, Rajendra,  wrote:

> Hi Zahid,
>
> How below link is going to help me out to know the root cause of the
> problem?
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Zahid Rahman 
> Sent: Thursday, January 9, 2020 10:53 AM
> To: Tomcat Users List 
> Subject: Re: BLOCKING: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> External email from: users-return-269283-rarathore=
> ptc@tomcat.apache.org
>
>
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.codota.com%2Fcode%2Fjava%2Fmethods%2Forg.apache.tomcat.util.net.NioBlockingSelector%2Fopendata=02%7C01%7Crarathore%40ptc.com%7C02a8c62f96c84b8ea63c08d794c40c25%7Cb9921086ff774d0d828acb3381f678e2%7C0%7C0%7C637141442053995621sdata=E666bJmF4N1wxBhm%2Fa%2BY29lvLlA32tQ%2B4F3lwBnLM2g%3Dreserved=0
>
>
> On Thu, 9 Jan 2020, 04:49 Rathore, Rajendra,  wrote:
>
> > Hi Team,
> >
> > If someone know how to check whether proper read/write operation done
> > or not or it will caused by network please let me know because it is
> > blocking for me.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Wednesday, January 8, 2020 11:43 AM
> > To: 'Tomcat Users List' 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Can someone please help me to find out the root cause for below issue.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rathore, Rajendra
> > Sent: Tuesday, January 7, 2020 4:16 PM
> > To: Tomcat Users List 
> > Subject: RE: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > Hi Remy,
> >
> > Thanks for the reply,
> >
> > As you mention below points
> >
> > "There's a problem only if things are blocked improperly, for example
> > if the client is correctly reading the data and/or there's no network
> backlog.
> > Also the timeout configured on the connector must be respected by the
> > operation."
> >
> > 1. how can we check the network backlog or data read/write not working
> > properly, if any tool pls let us know 2. how can we set connector
> timeout.
> >
> > Thanks and Regards,
> > Rajendra Rathore
> > 9922701491
> >
> > -Original Message-
> > From: Rémy Maucherat 
> > Sent: Tuesday, January 7, 2020 4:11 PM
> > To: Tomcat Users List 
> > Subject: Re: performance issue with Tomcat 8.5.35 in
> > org.apache.tomcat.util.net.NioBlockingSelector.write API
> >
> > External email from: users-return-269207-rarathore=
> > ptc@tomcat.apache.org
> >
> > On Tue, Jan 7, 2020 at 6:33 AM Rathore, Rajendra 
> > wrote:
> >
> > > 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%.
> > >
> > >
> > >  ||
> > >
> > > O-org.apache.coyote.ajp.AjpProcessor.writeData(AjpProcessor.java:133
> > > 1)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBa
> > > se
> > > .java:385)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketW
> > > ra
> > > pperBase.java:462)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapper
> > > Ba
> > > se.java:726)
> > > count=1669(%92.877)
> > >  ||
> > >
> > > O-org.apache.tomc

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

2020-01-08 Thread Zahid Rahman
https://www.codota.com/code/java/methods/org.apache.tomcat.util.net.NioBlockingSelector/open


On Thu, 9 Jan 2020, 04:49 Rathore, Rajendra,  wrote:

> Hi Team,
>
> If someone know how to check whether proper read/write operation done or
> not or it will caused by network please let me know because it is blocking
> for me.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rathore, Rajendra
> Sent: Wednesday, January 8, 2020 11:43 AM
> To: 'Tomcat Users List' 
> Subject: RE: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> Can someone please help me to find out the root cause for below issue.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rathore, Rajendra
> Sent: Tuesday, January 7, 2020 4:16 PM
> To: Tomcat Users List 
> Subject: RE: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> Hi Remy,
>
> Thanks for the reply,
>
> As you mention below points
>
> "There's a problem only if things are blocked improperly, for example if
> the client is correctly reading the data and/or there's no network backlog.
> Also the timeout configured on the connector must be respected by the
> operation."
>
> 1. how can we check the network backlog or data read/write not working
> properly, if any tool pls let us know 2. how can we set connector timeout.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rémy Maucherat 
> Sent: Tuesday, January 7, 2020 4:11 PM
> To: Tomcat Users List 
> Subject: Re: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> External email from: users-return-269207-rarathore=
> ptc@tomcat.apache.org
>
> On Tue, Jan 7, 2020 at 6:33 AM Rathore, Rajendra 
> wrote:
>
> > 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%.
> >
> >
> >  ||
> >
> > O-org.apache.coyote.ajp.AjpProcessor.writeData(AjpProcessor.java:1331)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase
> > .java:385)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWra
> > pperBase.java:462)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBa
> > se.java:726)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioE
> > ndpoint.java:1316)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.jav
> > a:157)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSele
> > ctor.java:114)
> > count=1667(%92.766)
> >  ||
> > |
> > O-org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.awaitWriteLa
> > tch(NioEndpoint.java:1160)
> > count=1667(%92.766)
> >  ||
> > |O-org.apache.tomcat.util.net
> .NioEndpoint$NioSocketWrapper.awaitLatch(NioEndpoint.java:1157)
> > count=1667(%92.766)
> >  ||
> > |
> > O-java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)
> > count=1667(%92.766)
> >
> >
> It's a normal blocking write, and the await does not consume CPU (it sits
> there however and a profiler will count that but it doesn't matter).
> There's a problem only if things are blocked improperly, for example if
> the client is correctly reading the data and/or there's no network backlog.
> Also the timeout configured on the connector must be respected by the
> operation.
>
> Rémy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


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

2020-01-08 Thread Zahid Rahman
https://alvinalexander.com/java/jwarehouse/apache-tomcat-6.0.16/java/org/apache/tomcat/util/net/NioBlockingSelector.java.shtml

On Thu, 9 Jan 2020, 04:49 Rathore, Rajendra,  wrote:

> Hi Team,
>
> If someone know how to check whether proper read/write operation done or
> not or it will caused by network please let me know because it is blocking
> for me.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rathore, Rajendra
> Sent: Wednesday, January 8, 2020 11:43 AM
> To: 'Tomcat Users List' 
> Subject: RE: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> Can someone please help me to find out the root cause for below issue.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rathore, Rajendra
> Sent: Tuesday, January 7, 2020 4:16 PM
> To: Tomcat Users List 
> Subject: RE: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> Hi Remy,
>
> Thanks for the reply,
>
> As you mention below points
>
> "There's a problem only if things are blocked improperly, for example if
> the client is correctly reading the data and/or there's no network backlog.
> Also the timeout configured on the connector must be respected by the
> operation."
>
> 1. how can we check the network backlog or data read/write not working
> properly, if any tool pls let us know 2. how can we set connector timeout.
>
> Thanks and Regards,
> Rajendra Rathore
> 9922701491
>
> -Original Message-
> From: Rémy Maucherat 
> Sent: Tuesday, January 7, 2020 4:11 PM
> To: Tomcat Users List 
> Subject: Re: performance issue with Tomcat 8.5.35 in
> org.apache.tomcat.util.net.NioBlockingSelector.write API
>
> External email from: users-return-269207-rarathore=
> ptc@tomcat.apache.org
>
> On Tue, Jan 7, 2020 at 6:33 AM Rathore, Rajendra 
> wrote:
>
> > 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%.
> >
> >
> >  ||
> >
> > O-org.apache.coyote.ajp.AjpProcessor.writeData(AjpProcessor.java:1331)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.write(SocketWrapperBase
> > .java:385)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.writeBlocking(SocketWra
> > pperBase.java:462)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.SocketWrapperBase.doWrite(SocketWrapperBa
> > se.java:726)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.doWrite(NioE
> > ndpoint.java:1316)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.jav
> > a:157)
> > count=1669(%92.877)
> >  ||
> >
> > O-org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSele
> > ctor.java:114)
> > count=1667(%92.766)
> >  ||
> > |
> > O-org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.awaitWriteLa
> > tch(NioEndpoint.java:1160)
> > count=1667(%92.766)
> >  ||
> > |O-org.apache.tomcat.util.net
> .NioEndpoint$NioSocketWrapper.awaitLatch(NioEndpoint.java:1157)
> > count=1667(%92.766)
> >  ||
> > |
> > O-java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277)
> > count=1667(%92.766)
> >
> >
> It's a normal blocking write, and the await does not consume CPU (it sits
> there however and a profiler will count that but it doesn't matter).
> There's a problem only if things are blocked improperly, for example if
> the client is correctly reading the data and/or there's no network backlog.
> Also the timeout configured on the connector must be respected by the
> operation.
>
> Rémy
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


Re: JDBC connection pooling maxActive or MaxTotal

2020-01-08 Thread Zahid Rahman
Hey Dave B. ,

My question  from chris was for your benefit.
default configuration is not the same thing as vendor neutral.

chris wrote: > If you use both, you should be all set for whichever pool
you use at
runtime. DOH !

>If you look in your log file, you will notice that when Tomcat starts
>up it will give you a warning that one of the two configuration
> options failed to apply to whichever pool you are using. It is a
> warning, not an error, so you can ignore it. But it will show up in
> your log file every time.
YES IGNORE WARNINGS  BECAUSE we have not made a word connect
between generic and default and and vendor neutral and vendor specific so,
the developer  who wrote warning should be ignored , because he doesn't
know what he is doing.
but you AND chris do know  by shoving two APIs down the throat our beloved
poor little  tomcat.

>Note that you will have to specifically enable tomcat-pool,
so it's unlikely that the pooling-library in use will be a surprise. HUH!

If your are trying to use both APIs then  you should get chris to help you.
Sometimes terms such as generic and vendor neutral can be confusing.
Especially when chris is saying you will get a warning not an error WHEN
YOU USE BOTH.
I know you think he is being helpful,

but actually he has got his nickers in twist because he doesn't know what
those terms mean that he is himself using either.
If he did he would say to you why are you using vendor specific API and
Vendor neutral API at same time on the same application server.
You see what tomcat is really saying  you are confused by terminology just
like chris.


www.backbutton.co.uk
♡۶¯\_(ツ)_/¯ ♡۶
Marriage of loose and tight coupling
-> healthy applications
  ♡۶
Wot no  -classpath  --class-path  even ! -cp
javac   Garden/Vegetables/VineVegetable.java
java   Garden.Vegetables.VineVegetable


On Fri, 3 Jan 2020 at 23:50, zahid  wrote:

> chris,
>
>
> Is commons-dbcp-2.x   a Database pooling component for any container
> Jetty,Jboss tomcat   etc. ?
>
> is commons-dbcp-2.x a third option, separate option from the two pooling
> options [tomcat-pool and commons-pool] you mentioned ?
>
>
> On 03/01/2020 23:21, Dave Bothwell wrote:
> > Chris,
> >
> > That was very helpful.
> >
> > Thank you
> > Dave
> >
> >
> >
> > On Fri, Jan 3, 2020 at 5:29 PM Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Dave,
> >>
> >> On 1/3/20 13:47, Dave Bothwell wrote:
> >>> I am using Tomcat 8.5.11 with JDBC connection pooling. Based on
> >>> the documentation it is clear that DBCP pooling has changed the
> >>> maxActive attribute to maxTotal. However it is unclear, based on
> >>> this document
> >>> https://tomcat.apache.org/tomcat-8.5-doc/jdbc-pool.html, if JDBC
> >>> pooling has also changed maxActive to maxTotal.
> >>>
> >>> my question is which attribute should I be using?
> >> Are you asking about the difference between configurations for
> >> tomcat-pool and commons-pool?
> >>
> >> commons-pool (which is the default connection-pool in Tomcat) uses
> >> maxTotal.
> >>
> >> tomcat-pool (which is NOT the default connection-pool in Tomcat) uses
> >> maxActive.
> >>
> >>> Also, I am currently using both attributes maxActive and maxTotal
> >>> in my current server.xml file, which does not appear to be causing
> >>> any issues.
> >> If you use both, you should be all set for whichever pool you use at
> >> runtime. Note that you will have to specifically enable tomcat-pool,
> >> so it's unlikely that the pooling-library in use will be a surprise.
> >>
> >> If you look in your log file, you will notice that when Tomcat starts
> >> up it will give you a warning that one of the two configuration
> >> options failed to apply to whichever pool you are using. It is a
> >> warning, not an error, so you can ignore it. But it will show up in
> >> your log file every time.
> >>
> >> - -chris
> >> -BEGIN PGP SIGNATURE-
> >> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
> >>
> >> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4PwFkACgkQHPApP6U8
> >> pFiEZRAAloB5RkBB0HrUvYfHd2DJbR5h2xt2WxaKbK6Rql/cdjVEC1dftrGSL9a7
> >> EvFkFl8juTA0oD/9mjGHKtN1MLgV+EFEu5hTppR+3wnkX/8djwp8L27AmtQ/xcT8
> >> /5vasZfn8Web/WqJIJGVF9BiEHoUCr4+M7G+PA8rvsskpIAZKux9NhbliDUYUwzi
> >> R7GsjNelBKixCa8Qy5Q7LqNcHN4RDygXKYsLZVoeoliEBaUOTWHeLoXAo6BQYsVW
> >> Tce5S3xePN6ZG3A5o5lT2bIjWKJp4qDu2CgPHJ0TQyAuey4rpkYmeI7uesmZhr6T
> >> XpwWnk8kYLG7ZCRR99KBF0lx67PQmtxZLoN4kDYQ77x7XUW5c/Qsv2PcOcvXmbzk
> >> iau8YsitqivEAtRh68XG4wrK37vGfkGNzTaSPzpZqgCIiJCotIV6mwQMjo97Ium/
> >> lxSTjLhLEkLNDegHk43wiW02AYfn+2FA0QBTiNX5OoWKu2YD/wrWnmljDwQKO6qL
> >> /ycYDnUCjkcmi0NZJil1kJtB2p8EKwy67W7PPRg2sf2VadFgifJlxO326UW1qK+e
> >> Gv8RjXgEHVOt2ydTa6sTFXT1fjcHaojVx5XgEK19UKNIUcMkyOUh6cZ5N/8d9UMn
> >> +jdZIx4hmxYshdoa4TO2JD6H8I087P8VNCL78RbeWTERUBBvvnc=
> >> =jSNi
> >> -END PGP SIGNATURE-
> >>
> >> 

Re: Using the certificate files instead of a Java Keystore file, Re: Let's Encrypt with Tomcat?

2020-01-08 Thread Zahid Rahman
The second technique is to use the  *.nix command.
The result is as below
diff a.out b.out I draw your attention to third line in FILE b.out

5,7c5,7
< SSLEnabled="true" scheme="https" secure="true"
< keystoreFile="[REDACTED]" keyAlias="[REDACTED]" ciphers="[REDACTED]"
< clientAuth="false" sslProtocol="TLS" />
---
> SSLEnabled="true" scheme="https" secure="true">
>  certificateVerification="none" sslProtocol="TLS">


*cat a.out*


*cat b.out*




www.backbutton.co.uk
♡۶¯\_(ツ)_/¯ ♡۶
Marriage of loose and tight coupling
-> healthy applications
  ♡۶
java -cp classpath class-path


On Wed, 8 Jan 2020 at 23:59, James H. H. Lampert 
wrote:

> I wrote:
> > Am I to understand that Tomcat 8.5.40 can use the ".cer," ".ca.crt"
> > and ".key" files directly, instead of the Java Keystore file?
>
> On 12/30/19 1:41 PM, Peter Kreuser wrote:
> > Correct!
>
> I tried an experiment this afternoon:
>
> I made a copy of the existing server.xml file, and I changed the active
> connector from this (keystore file and alias redacted for privacy,
> ciphers and compressibleMimeTypes clauses redacted because they're quite
> long, and not relevant here):
> >  protocol="org.apache.coyote.http11.Http11NioProtocol"
> >  compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> >  compressableMimeType="[REDACTED]"
> >  maxThreads="1000" socket.appReadBufSize="1024"
> socket.appWriteBufSize="1024" bufferSize="1024"
> >  SSLEnabled="true" scheme="https" secure="true"
> >  keystoreFile="[REDACTED]" keyAlias="[REDACTED]" ciphers="[REDACTED]"
> >  clientAuth="false" sslProtocol="TLS" />
>
> to this:
> >  protocol="org.apache.coyote.http11.Http11NioProtocol"
> >  compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> >  compressableMimeType="[REDACTED]"
> >  maxThreads="1000" socket.appReadBufSize="1024"
> socket.appWriteBufSize="1024" bufferSize="1024"
> >  SSLEnabled="true" scheme="https" secure="true">
> >>certificateVerification="none" sslProtocol="TLS">
> >  certificateKeyFile="[REDACTED].key"
> >  certificateChainFile="[REDACTED].ca.crt" />
> >   
> > 
>
> and restarted Tomcat, and it failed to open the port, producing this in
> catalina.out:
> > 08-Jan-2020 23:14:09.026 SEVERE [main]
> org.apache.catalina.core.StandardService.initInternal Failed to initialize
> connector [Connector[HTTP/1.1-8443]]
> >  org.apache.catalina.LifecycleException: Failed to initialize component
> [Connector[HTTP/1.1-8443]]
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
> > at
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > at
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:639)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:498)
> > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> > Caused by: org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
> > at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > ... 12 more
> > Caused by: java.lang.IllegalArgumentException: Cannot store
> non-PrivateKeys
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:100)
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:72)
> > at org.apache.tomcat.util.net
> .NioEndpoint.bind(NioEndpoint.java:244)
> > at org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1105)
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:224)
> > at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
> > at
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:68)
> > at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
> > ... 13 more
> > Caused by: java.security.KeyStoreException: Cannot store non-PrivateKeys
> > at
> sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:261)
> > at
> 

Re: Using the certificate files instead of a Java Keystore file, Re: Let's Encrypt with Tomcat?

2020-01-08 Thread Zahid Rahman
http://tomcat.10.x6.nabble.com/Can-t-Get-SSL-to-Work-in-8-5-td5071245.html

On Thu, 9 Jan 2020, 03:01 Zahid Rahman,  wrote:

>
> https://confluence.atlassian.com/confkb/ssl-connector-fails-to-initialize-during-tomcat-startup-646251490.html
>
> On Thu, 9 Jan 2020, 02:44 Zahid Rahman,  wrote:
>
>>
>> https://stackoverflow.com/questions/46786046/severe-main-org-apache-catalina-core-standardservice-initinternal-failed-to-in
>>
>> I went to college and studied IT before finding a job. My teacher
>> explained to me that you should always look at the first error and ignore
>> the rest.
>>
>>
>> First error.
>> 08-Jan-2020 23:14:09.026 SEVERE [main] 
>> org.apache.catalina.core.StandardService.initInternal
>> Failed to initialize connector [Connector[HTTP/1.1-8443]]
>>
>>
>> Once that has been addressed  then either the remaining  will disappear
>> or address the second error which will then be the first error.
>>
>>
>>
>>
>>
>>
>> On Wed, 8 Jan 2020, 23:59 James H. H. Lampert, 
>> wrote:
>>
>>> I wrote:
>>> > Am I to understand that Tomcat 8.5.40 can use the ".cer," ".ca.crt"
>>> > and ".key" files directly, instead of the Java Keystore file?
>>>
>>> On 12/30/19 1:41 PM, Peter Kreuser wrote:
>>> > Correct!
>>>
>>> I tried an experiment this afternoon:
>>>
>>> I made a copy of the existing server.xml file, and I changed the active
>>> connector from this (keystore file and alias redacted for privacy,
>>> ciphers and compressibleMimeTypes clauses redacted because they're quite
>>> long, and not relevant here):
>>> > >> protocol="org.apache.coyote.http11.Http11NioProtocol"
>>> >  compression="on" compressionMinSize="2048"
>>> noCompressionUserAgents="gozilla, traviata"
>>> >  compressableMimeType="[REDACTED]"
>>> >  maxThreads="1000" socket.appReadBufSize="1024"
>>> socket.appWriteBufSize="1024" bufferSize="1024"
>>> >  SSLEnabled="true" scheme="https" secure="true"
>>> >  keystoreFile="[REDACTED]" keyAlias="[REDACTED]" ciphers="[REDACTED]"
>>> >  clientAuth="false" sslProtocol="TLS" />
>>>
>>> to this:
>>> > >> protocol="org.apache.coyote.http11.Http11NioProtocol"
>>> >  compression="on" compressionMinSize="2048"
>>> noCompressionUserAgents="gozilla, traviata"
>>> >  compressableMimeType="[REDACTED]"
>>> >  maxThreads="1000" socket.appReadBufSize="1024"
>>> socket.appWriteBufSize="1024" bufferSize="1024"
>>> >  SSLEnabled="true" scheme="https" secure="true">
>>> >   >> >certificateVerification="none" sslProtocol="TLS">
>>> > >> certificateKeyFile="[REDACTED].key"
>>> >  certificateChainFile="[REDACTED].ca.crt" />
>>> >   
>>> > 
>>>
>>> and restarted Tomcat, and it failed to open the port, producing this in
>>> catalina.out:
>>> > 08-Jan-2020 23:14:09.026 SEVERE [main]
>>> org.apache.catalina.core.StandardService.initInternal Failed to initialize
>>> connector [Connector[HTTP/1.1-8443]]
>>> >  org.apache.catalina.LifecycleException: Failed to initialize
>>> component [Connector[HTTP/1.1-8443]]
>>> > at
>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
>>> > at
>>> org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
>>> > at
>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
>>> > at
>>> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
>>> > at
>>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
>>> > at org.apache.catalina.startup.Catalina.load(Catalina.java:639)
>>> > at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
>>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> > at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>> > at
>>>

Re: Using the certificate files instead of a Java Keystore file, Re: Let's Encrypt with Tomcat?

2020-01-08 Thread Zahid Rahman
https://confluence.atlassian.com/confkb/ssl-connector-fails-to-initialize-during-tomcat-startup-646251490.html

On Thu, 9 Jan 2020, 02:44 Zahid Rahman,  wrote:

>
> https://stackoverflow.com/questions/46786046/severe-main-org-apache-catalina-core-standardservice-initinternal-failed-to-in
>
> I went to college and studied IT before finding a job. My teacher
> explained to me that you should always look at the first error and ignore
> the rest.
>
>
> First error.
> 08-Jan-2020 23:14:09.026 SEVERE [main] 
> org.apache.catalina.core.StandardService.initInternal
> Failed to initialize connector [Connector[HTTP/1.1-8443]]
>
>
> Once that has been addressed  then either the remaining  will disappear or
> address the second error which will then be the first error.
>
>
>
>
>
>
> On Wed, 8 Jan 2020, 23:59 James H. H. Lampert, 
> wrote:
>
>> I wrote:
>> > Am I to understand that Tomcat 8.5.40 can use the ".cer," ".ca.crt"
>> > and ".key" files directly, instead of the Java Keystore file?
>>
>> On 12/30/19 1:41 PM, Peter Kreuser wrote:
>> > Correct!
>>
>> I tried an experiment this afternoon:
>>
>> I made a copy of the existing server.xml file, and I changed the active
>> connector from this (keystore file and alias redacted for privacy,
>> ciphers and compressibleMimeTypes clauses redacted because they're quite
>> long, and not relevant here):
>> > > protocol="org.apache.coyote.http11.Http11NioProtocol"
>> >  compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>> >  compressableMimeType="[REDACTED]"
>> >  maxThreads="1000" socket.appReadBufSize="1024"
>> socket.appWriteBufSize="1024" bufferSize="1024"
>> >  SSLEnabled="true" scheme="https" secure="true"
>> >  keystoreFile="[REDACTED]" keyAlias="[REDACTED]" ciphers="[REDACTED]"
>> >  clientAuth="false" sslProtocol="TLS" />
>>
>> to this:
>> > > protocol="org.apache.coyote.http11.Http11NioProtocol"
>> >  compression="on" compressionMinSize="2048"
>> noCompressionUserAgents="gozilla, traviata"
>> >  compressableMimeType="[REDACTED]"
>> >  maxThreads="1000" socket.appReadBufSize="1024"
>> socket.appWriteBufSize="1024" bufferSize="1024"
>> >  SSLEnabled="true" scheme="https" secure="true">
>> >   > >certificateVerification="none" sslProtocol="TLS">
>> > > certificateKeyFile="[REDACTED].key"
>> >  certificateChainFile="[REDACTED].ca.crt" />
>> >   
>> > 
>>
>> and restarted Tomcat, and it failed to open the port, producing this in
>> catalina.out:
>> > 08-Jan-2020 23:14:09.026 SEVERE [main]
>> org.apache.catalina.core.StandardService.initInternal Failed to initialize
>> connector [Connector[HTTP/1.1-8443]]
>> >  org.apache.catalina.LifecycleException: Failed to initialize component
>> [Connector[HTTP/1.1-8443]]
>> > at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
>> > at
>> org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
>> > at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
>> > at
>> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
>> > at
>> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
>> > at org.apache.catalina.startup.Catalina.load(Catalina.java:639)
>> > at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> > at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> > at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> > at java.lang.reflect.Method.invoke(Method.java:498)
>> > at
>> org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
>> > at
>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
>> > Caused by: org.apache.catalina.LifecycleException: Protocol handler
>> initialization failed
>> >

Re: Using the certificate files instead of a Java Keystore file, Re: Let's Encrypt with Tomcat?

2020-01-08 Thread Zahid Rahman
https://stackoverflow.com/questions/46786046/severe-main-org-apache-catalina-core-standardservice-initinternal-failed-to-in

I went to college and studied IT before finding a job. My teacher explained
to me that you should always look at the first error and ignore the rest.


First error.
08-Jan-2020 23:14:09.026 SEVERE [main]
org.apache.catalina.core.StandardService.initInternal
Failed to initialize connector [Connector[HTTP/1.1-8443]]


Once that has been addressed  then either the remaining  will disappear or
address the second error which will then be the first error.






On Wed, 8 Jan 2020, 23:59 James H. H. Lampert, 
wrote:

> I wrote:
> > Am I to understand that Tomcat 8.5.40 can use the ".cer," ".ca.crt"
> > and ".key" files directly, instead of the Java Keystore file?
>
> On 12/30/19 1:41 PM, Peter Kreuser wrote:
> > Correct!
>
> I tried an experiment this afternoon:
>
> I made a copy of the existing server.xml file, and I changed the active
> connector from this (keystore file and alias redacted for privacy,
> ciphers and compressibleMimeTypes clauses redacted because they're quite
> long, and not relevant here):
> >  protocol="org.apache.coyote.http11.Http11NioProtocol"
> >  compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> >  compressableMimeType="[REDACTED]"
> >  maxThreads="1000" socket.appReadBufSize="1024"
> socket.appWriteBufSize="1024" bufferSize="1024"
> >  SSLEnabled="true" scheme="https" secure="true"
> >  keystoreFile="[REDACTED]" keyAlias="[REDACTED]" ciphers="[REDACTED]"
> >  clientAuth="false" sslProtocol="TLS" />
>
> to this:
> >  protocol="org.apache.coyote.http11.Http11NioProtocol"
> >  compression="on" compressionMinSize="2048"
> noCompressionUserAgents="gozilla, traviata"
> >  compressableMimeType="[REDACTED]"
> >  maxThreads="1000" socket.appReadBufSize="1024"
> socket.appWriteBufSize="1024" bufferSize="1024"
> >  SSLEnabled="true" scheme="https" secure="true">
> >>certificateVerification="none" sslProtocol="TLS">
> >  certificateKeyFile="[REDACTED].key"
> >  certificateChainFile="[REDACTED].ca.crt" />
> >   
> > 
>
> and restarted Tomcat, and it failed to open the port, producing this in
> catalina.out:
> > 08-Jan-2020 23:14:09.026 SEVERE [main]
> org.apache.catalina.core.StandardService.initInternal Failed to initialize
> connector [Connector[HTTP/1.1-8443]]
> >  org.apache.catalina.LifecycleException: Failed to initialize component
> [Connector[HTTP/1.1-8443]]
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:112)
> > at
> org.apache.catalina.core.StandardService.initInternal(StandardService.java:552)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > at
> org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:875)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:639)
> > at org.apache.catalina.startup.Catalina.load(Catalina.java:662)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> > at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:498)
> > at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
> > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
> > Caused by: org.apache.catalina.LifecycleException: Protocol handler
> initialization failed
> > at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:995)
> > at
> org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
> > ... 12 more
> > Caused by: java.lang.IllegalArgumentException: Cannot store
> non-PrivateKeys
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.createSSLContext(AbstractJsseEndpoint.java:100)
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.initialiseSsl(AbstractJsseEndpoint.java:72)
> > at org.apache.tomcat.util.net
> .NioEndpoint.bind(NioEndpoint.java:244)
> > at org.apache.tomcat.util.net
> .AbstractEndpoint.init(AbstractEndpoint.java:1105)
> > at org.apache.tomcat.util.net
> .AbstractJsseEndpoint.init(AbstractJsseEndpoint.java:224)
> > at
> org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:581)
> > at
> org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:68)
> > at
> org.apache.catalina.connector.Connector.initInternal(Connector.java:993)
> > ... 13 more
> > Caused by: java.security.KeyStoreException: Cannot store non-PrivateKeys
> > at
> sun.security.provider.JavaKeyStore.engineSetKeyEntry(JavaKeyStore.java:261)
> > at
> 

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

2020-01-08 Thread Zahid Rahman
I am responding to statement made by lersencrypt guy with evidence.
Statement  he made on this list. It is known as right to respond.

On Wed, 8 Jan 2020, 21:20 calder,  wrote:

> What does this have to do with Tomcat?
>
> Moderators???
>
>
>
> On Wed, Jan 8, 2020, 13:52 Zahid Rahman  wrote:
>
> > Another example of using  maven 2015 version and the impact of unknown
> > warning  by MAVEN can have on application development across the Globe.
> > Let'sEncrypt guy (Shultz) dismissed as unimportant.
> >
> >
> https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/
> >
> >
> > Mary Zheng
> > Posted by: Mary Zheng
> > <https://examples.javacodegeeks.com/author/mary-zheng/> in Core Java
> > <https://examples.javacodegeeks.com/category/core-java/> December 27th,
> > 2019
> >  0
> > <
> >
> https://examples.javacodegeeks.com/multiple-inheritance-java-example/#respond
> > >
> >  433 Views
> >
> > She works as a senior Software Engineer in the telecommunications sector
> > where she acts as a leader and works with others to design, implement,
> and
> > monitor the software solution.
> >
> > https://examples.javacodegeeks.com/multiple-inheritance-java-example/
> >
> > 2. Technologies Used
> >
> > The example code in this article was built and run using:
> >
> >- Java 11
> >- Maven 3.3.9
> >- Eclipse Oxygen
> >- Junit 4.12
> >
> >
> > On Wed, 8 Jan 2020, 12:36 zahid,  wrote:
> >
> > > ok
> > >
> > > Thank you.
> > >
> > > www.backbutton.co.uk
> > > ♡۶¯\_(ツ)_/¯ ♡۶
> > > Marriage of loose and tight coupling
> > > -> healthy applications
> > >♡۶
> > > javac Garden/Vegetables/VineVegetable.java
> > > java   Garden.Vegetables.VineVegetable
> > > What No!  -classpath -class-path even -cp!
> > >
> > > On 08/01/2020 09:48, Mark Thomas wrote:
> > > > On 08/01/2020 08:41, Peter Kreuser wrote:
> > > >> Zahid,
> > > >>
> > > >> you‘re talking to one of the most respected members of the community
> > > > like this?
> > > >
> > > > All participants in Apache communities are expected to follow the
> code
> > > > of conduct:
> > > >
> > > > http://www.apache.org/foundation/policies/conduct.html
> > > >
> > > > This is irrespective of whether you are replying to a message from
> one
> > > > of the founders of the ASF or a first time contributor.
> > > >
> > > >> STFU or leave.
> > > > While I understand the frustration, statements like the above are
> only
> > > > going to add heat to an already heated situation. Please try and
> > refrain
> > > > from such responses.
> > > >
> > > >> This calls for an ban!
> > > > As one of the list moderators, that thought crossed my mind as soon
> as
> > I
> > > > saw the off-topic Linux vs Windows post. I hoped that it was a
> one-off.
> > > > When it became clear that it wasn't, I posted my request to keep
> > threads
> > > > on topic. I hoped that would be sufficient. Clearly it wasn't.
> > > >
> > > > I would urge everyone not to reply to off-topic posts.
> > > >
> > > > If you want to bring a post you find problematic to the attention of
> > the
> > > > moderators then please feel free to mail the list moderators at:
> > > > users-ow...@tomcat.apache.org
> > > >
> > > >>> Am 08.01.2020 um 06:06 schrieb Zahid Rahman  >:
> > > >>>
> > > >>> 
> > > >>>> A version of what?
> > > >>> MAVEN
> > > >>> MAVEN
> > > >>> MAVEN
> > > >>>
> > > >>> In light of this video https://youtu.be/idViw4anA6E
> > > >>> Of http.
> > > >>>
> > > >>> You and your let's encrypt must be the longest troll on this line.
> > > > No.
> > > >
> > > > How to configure Apache Tomcat with keys and certificates provided by
> > > > Let's Encrypt is entirely on-topic for the Apache Tomcat users'
> mailing
> > > > list.
> > > >
> > > >>> Take your wares and peddle them somewhere else carpet beggar.
> > > > Zahid,
> > > >
> > > > Please stop this now.
> > > >
> > > > Please keep your posts to this list on topic.
> > > >
> > > > Please ensure that any posts are consistent with the Apache Code of
> > > Conduct.
> > > >
> > > > If you continue to disrupt this community with off-topic posts and/or
> > > > behaviour that is inconsistent with the Apache Code of Conduct then
> the
> > > > list moderators will either require all your posts to be moderated or
> > > > simply block you from posting at all.
> > > >
> > > > Mark
> > > > wearing his list moderator hat
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > > >
> > > --
> > > www.backbutton.co.uk
> > > ♡۶¯\_(ツ)_/¯ ♡۶
> > > Marriage of loose and tight coupling
> > > -> healthy applications
> > >♡۶
> > > java -cp classpath class-path
> > >
> > >
> >
>


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

2020-01-08 Thread Zahid Rahman
I am going to put all your emails attacking me on my website.

On Wed, 8 Jan 2020, 21:20 calder,  wrote:

> What does this have to do with Tomcat?
>
> Moderators???
>
>
>
> On Wed, Jan 8, 2020, 13:52 Zahid Rahman  wrote:
>
> > Another example of using  maven 2015 version and the impact of unknown
> > warning  by MAVEN can have on application development across the Globe.
> > Let'sEncrypt guy (Shultz) dismissed as unimportant.
> >
> >
> https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/
> >
> >
> > Mary Zheng
> > Posted by: Mary Zheng
> > <https://examples.javacodegeeks.com/author/mary-zheng/> in Core Java
> > <https://examples.javacodegeeks.com/category/core-java/> December 27th,
> > 2019
> >  0
> > <
> >
> https://examples.javacodegeeks.com/multiple-inheritance-java-example/#respond
> > >
> >  433 Views
> >
> > She works as a senior Software Engineer in the telecommunications sector
> > where she acts as a leader and works with others to design, implement,
> and
> > monitor the software solution.
> >
> > https://examples.javacodegeeks.com/multiple-inheritance-java-example/
> >
> > 2. Technologies Used
> >
> > The example code in this article was built and run using:
> >
> >- Java 11
> >- Maven 3.3.9
> >- Eclipse Oxygen
> >- Junit 4.12
> >
> >
> > On Wed, 8 Jan 2020, 12:36 zahid,  wrote:
> >
> > > ok
> > >
> > > Thank you.
> > >
> > > www.backbutton.co.uk
> > > ♡۶¯\_(ツ)_/¯ ♡۶
> > > Marriage of loose and tight coupling
> > > -> healthy applications
> > >♡۶
> > > javac Garden/Vegetables/VineVegetable.java
> > > java   Garden.Vegetables.VineVegetable
> > > What No!  -classpath -class-path even -cp!
> > >
> > > On 08/01/2020 09:48, Mark Thomas wrote:
> > > > On 08/01/2020 08:41, Peter Kreuser wrote:
> > > >> Zahid,
> > > >>
> > > >> you‘re talking to one of the most respected members of the community
> > > > like this?
> > > >
> > > > All participants in Apache communities are expected to follow the
> code
> > > > of conduct:
> > > >
> > > > http://www.apache.org/foundation/policies/conduct.html
> > > >
> > > > This is irrespective of whether you are replying to a message from
> one
> > > > of the founders of the ASF or a first time contributor.
> > > >
> > > >> STFU or leave.
> > > > While I understand the frustration, statements like the above are
> only
> > > > going to add heat to an already heated situation. Please try and
> > refrain
> > > > from such responses.
> > > >
> > > >> This calls for an ban!
> > > > As one of the list moderators, that thought crossed my mind as soon
> as
> > I
> > > > saw the off-topic Linux vs Windows post. I hoped that it was a
> one-off.
> > > > When it became clear that it wasn't, I posted my request to keep
> > threads
> > > > on topic. I hoped that would be sufficient. Clearly it wasn't.
> > > >
> > > > I would urge everyone not to reply to off-topic posts.
> > > >
> > > > If you want to bring a post you find problematic to the attention of
> > the
> > > > moderators then please feel free to mail the list moderators at:
> > > > users-ow...@tomcat.apache.org
> > > >
> > > >>> Am 08.01.2020 um 06:06 schrieb Zahid Rahman  >:
> > > >>>
> > > >>> 
> > > >>>> A version of what?
> > > >>> MAVEN
> > > >>> MAVEN
> > > >>> MAVEN
> > > >>>
> > > >>> In light of this video https://youtu.be/idViw4anA6E
> > > >>> Of http.
> > > >>>
> > > >>> You and your let's encrypt must be the longest troll on this line.
> > > > No.
> > > >
> > > > How to configure Apache Tomcat with keys and certificates provided by
> > > > Let's Encrypt is entirely on-topic for the Apache Tomcat users'
> mailing
> > > > list.
> > > >
> > > >>> Take your wares and peddle them somewhere else carpet beggar.
> > > > Zahid,
> > > >
> > > > Please stop this now.
> > > >
> > > > Please keep your posts to this list on topic.
> > > >
> > > > Please ensure that any posts are consistent with the Apache Code of
> > > Conduct.
> > > >
> > > > If you continue to disrupt this community with off-topic posts and/or
> > > > behaviour that is inconsistent with the Apache Code of Conduct then
> the
> > > > list moderators will either require all your posts to be moderated or
> > > > simply block you from posting at all.
> > > >
> > > > Mark
> > > > wearing his list moderator hat
> > > >
> > > > -
> > > > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > > > For additional commands, e-mail: users-h...@tomcat.apache.org
> > > >
> > > --
> > > www.backbutton.co.uk
> > > ♡۶¯\_(ツ)_/¯ ♡۶
> > > Marriage of loose and tight coupling
> > > -> healthy applications
> > >♡۶
> > > java -cp classpath class-path
> > >
> > >
> >
>


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

2020-01-08 Thread Zahid Rahman
Another example of using  maven 2015 version and the impact of unknown
warning  by MAVEN can have on application development across the Globe.
Let'sEncrypt guy (Shultz) dismissed as unimportant.

https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.3.9/


Mary Zheng
Posted by: Mary Zheng
<https://examples.javacodegeeks.com/author/mary-zheng/> in Core Java
<https://examples.javacodegeeks.com/category/core-java/> December 27th, 2019
 0
<https://examples.javacodegeeks.com/multiple-inheritance-java-example/#respond>
 433 Views

She works as a senior Software Engineer in the telecommunications sector
where she acts as a leader and works with others to design, implement, and
monitor the software solution.

https://examples.javacodegeeks.com/multiple-inheritance-java-example/

2. Technologies Used

The example code in this article was built and run using:

   - Java 11
   - Maven 3.3.9
   - Eclipse Oxygen
   - Junit 4.12


On Wed, 8 Jan 2020, 12:36 zahid,  wrote:

> ok
>
> Thank you.
>
> www.backbutton.co.uk
> ♡۶¯\_(ツ)_/¯ ♡۶
> Marriage of loose and tight coupling
> -> healthy applications
>♡۶
> javac Garden/Vegetables/VineVegetable.java
> java   Garden.Vegetables.VineVegetable
> What No!  -classpath -class-path even -cp!
>
> On 08/01/2020 09:48, Mark Thomas wrote:
> > On 08/01/2020 08:41, Peter Kreuser wrote:
> >> Zahid,
> >>
> >> you‘re talking to one of the most respected members of the community
> > like this?
> >
> > All participants in Apache communities are expected to follow the code
> > of conduct:
> >
> > http://www.apache.org/foundation/policies/conduct.html
> >
> > This is irrespective of whether you are replying to a message from one
> > of the founders of the ASF or a first time contributor.
> >
> >> STFU or leave.
> > While I understand the frustration, statements like the above are only
> > going to add heat to an already heated situation. Please try and refrain
> > from such responses.
> >
> >> This calls for an ban!
> > As one of the list moderators, that thought crossed my mind as soon as I
> > saw the off-topic Linux vs Windows post. I hoped that it was a one-off.
> > When it became clear that it wasn't, I posted my request to keep threads
> > on topic. I hoped that would be sufficient. Clearly it wasn't.
> >
> > I would urge everyone not to reply to off-topic posts.
> >
> > If you want to bring a post you find problematic to the attention of the
> > moderators then please feel free to mail the list moderators at:
> > users-ow...@tomcat.apache.org
> >
> >>> Am 08.01.2020 um 06:06 schrieb Zahid Rahman :
> >>>
> >>> 
> >>>> A version of what?
> >>> MAVEN
> >>> MAVEN
> >>> MAVEN
> >>>
> >>> In light of this video https://youtu.be/idViw4anA6E
> >>> Of http.
> >>>
> >>> You and your let's encrypt must be the longest troll on this line.
> > No.
> >
> > How to configure Apache Tomcat with keys and certificates provided by
> > Let's Encrypt is entirely on-topic for the Apache Tomcat users' mailing
> > list.
> >
> >>> Take your wares and peddle them somewhere else carpet beggar.
> > Zahid,
> >
> > Please stop this now.
> >
> > Please keep your posts to this list on topic.
> >
> > Please ensure that any posts are consistent with the Apache Code of
> Conduct.
> >
> > If you continue to disrupt this community with off-topic posts and/or
> > behaviour that is inconsistent with the Apache Code of Conduct then the
> > list moderators will either require all your posts to be moderated or
> > simply block you from posting at all.
> >
> > Mark
> > wearing his list moderator hat
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> --
> www.backbutton.co.uk
> ♡۶¯\_(ツ)_/¯ ♡۶
> Marriage of loose and tight coupling
> -> healthy applications
>♡۶
> java -cp classpath class-path
>
>


Re: [OT] Re: Maven Warning. Ubuntu Users Ban him for abusive behaviour.

2020-01-08 Thread Zahid Rahman
Ban him for abusive behaviour.

On Wed, 8 Jan 2020, 08:42 Peter Kreuser,  wrote:

> Zahid,
>
> you‘re talking to one of the most respected members of the community like
> this?
>
> STFU or leave.
>
> This calls for an ban!
>
> Peter
>
> > Am 08.01.2020 um 06:06 schrieb Zahid Rahman :
> >
> > 
> >>
> >> A version of what?
> > MAVEN
> > MAVEN
> > MAVEN
> >
> > In light of this video https://youtu.be/idViw4anA6E
> > Of http.
> >
> > You and your let's encrypt must be the longest troll on this line.
> >
> > Take your wares and peddle them somewhere else carpet beggar.
> >
> >
> >
> >
> >> On Wed, 8 Jan 2020, 01:12 Christopher Schultz, <
> ch...@christopherschultz.net>
> >> wrote:
> >>
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Zahid,
> >>
> >>> On 1/6/20 3:13 PM, Zahid Rahman wrote:
> >>> That must be the reason why Apache Netbeans is using a version from
> >>> 2015
> >>
> >> A version of what?
> >>
> >>> and Apache Struts is recommending to use jdk 8.
> >> Apache Struts 2.5.x supports Java 7 and later. I see no official
> >> documentation recommending a specific Java version over any others.
> >>
> >>> 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.
> >>
> >> Maybe just not for free.
> >>
> >>
> https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads
> >> - -5672538.html
> >> https://www.azul.com/category/java13/
> >>
> >> Admittedly, Oracle's JDK/JRE is based upon
> >> https://openjdk.java.net/projects/jdk/13/ so maybe that doesn't count
> >> as a separate release.
> >>
> >> But no, IBM doesn't appear to have a new version beyond Java 11.
> >>
> >>> The issue is a miserable and disgraceful failure in coordination by
> >>> Apache Foundation.
> >>
> >> So you found a problem with a package provided by Ubuntu/Debian, and
> >> your solution was to install the official Maven package from the
> >> Apache Software Foundation. And your conclusion is that the ASF is the
> >> miserable and disgraceful party, here?
> >>
> >> I'm so confused.
> >>
> >> It's worth pointing-out that there is no enforced coordination between
> >> ASF projects. Some of them work together in almost lock-step, like APR
> >> and httpd. Others are completely de-coupled. Some ignore each other
> >> (e.g. Apache Maven and Apache Tomcat). It's up to the individual
> >> projects to determine if/how they will work together.
> >>
> >> You may wish to read a little more about the ASF before you make
> >> blanket statements about it.
> >> https://community.apache.org/projectIndependence.html
> >>
> >> If you are dissatisfied with the ASF communities (or maybe just a few
> >> in particular), may I suggest that you take one of these two courses
> >> of action:
> >>
> >> 1. Volunteer to improve the situation. Usually in the form of
> >> patches/PRs to that project.
> >>
> >> 2. Take your complaints elsewhere.
> >>
> >> - -chris
> >>
> >>>> On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:
> >>>
> >>>> 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
> >>>>> 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.
> >>>>>
> >>>>> ( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602
> >>>>> suggests it's a known bug in their packaging/build? )
> >>>>

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

2020-01-08 Thread Zahid Rahman
15 years ago I pointed in detail what I expect from a professional  tool

That tool has been sent to.

You are a classpath class-path people
.
I am  -cp kind of person.

He makes you feel comfortable because you are lost and confused. He is too.




On Wed, 8 Jan 2020, 08:42 Peter Kreuser,  wrote:

> Zahid,
>
> you‘re talking to one of the most respected members of the community like
> this?
>
> STFU or leave.
>
> This calls for an ban!
>
> Peter
>
> > Am 08.01.2020 um 06:06 schrieb Zahid Rahman :
> >
> > 
> >>
> >> A version of what?
> > MAVEN
> > MAVEN
> > MAVEN
> >
> > In light of this video https://youtu.be/idViw4anA6E
> > Of http.
> >
> > You and your let's encrypt must be the longest troll on this line.
> >
> > Take your wares and peddle them somewhere else carpet beggar.
> >
> >
> >
> >
> >> On Wed, 8 Jan 2020, 01:12 Christopher Schultz, <
> ch...@christopherschultz.net>
> >> wrote:
> >>
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Zahid,
> >>
> >>> On 1/6/20 3:13 PM, Zahid Rahman wrote:
> >>> That must be the reason why Apache Netbeans is using a version from
> >>> 2015
> >>
> >> A version of what?
> >>
> >>> and Apache Struts is recommending to use jdk 8.
> >> Apache Struts 2.5.x supports Java 7 and later. I see no official
> >> documentation recommending a specific Java version over any others.
> >>
> >>> 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.
> >>
> >> Maybe just not for free.
> >>
> >>
> https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads
> >> - -5672538.html
> >> https://www.azul.com/category/java13/
> >>
> >> Admittedly, Oracle's JDK/JRE is based upon
> >> https://openjdk.java.net/projects/jdk/13/ so maybe that doesn't count
> >> as a separate release.
> >>
> >> But no, IBM doesn't appear to have a new version beyond Java 11.
> >>
> >>> The issue is a miserable and disgraceful failure in coordination by
> >>> Apache Foundation.
> >>
> >> So you found a problem with a package provided by Ubuntu/Debian, and
> >> your solution was to install the official Maven package from the
> >> Apache Software Foundation. And your conclusion is that the ASF is the
> >> miserable and disgraceful party, here?
> >>
> >> I'm so confused.
> >>
> >> It's worth pointing-out that there is no enforced coordination between
> >> ASF projects. Some of them work together in almost lock-step, like APR
> >> and httpd. Others are completely de-coupled. Some ignore each other
> >> (e.g. Apache Maven and Apache Tomcat). It's up to the individual
> >> projects to determine if/how they will work together.
> >>
> >> You may wish to read a little more about the ASF before you make
> >> blanket statements about it.
> >> https://community.apache.org/projectIndependence.html
> >>
> >> If you are dissatisfied with the ASF communities (or maybe just a few
> >> in particular), may I suggest that you take one of these two courses
> >> of action:
> >>
> >> 1. Volunteer to improve the situation. Usually in the form of
> >> patches/PRs to that project.
> >>
> >> 2. Take your complaints elsewhere.
> >>
> >> - -chris
> >>
> >>>> On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:
> >>>
> >>>> 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
> >>>>> https://maven.apache.org/download.cgi
> >>>>>
> >>>>> BECAUSE:
> >>>>>
> >>>>> "I seem to remember they [ubuntu] have their own bui

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

2020-01-08 Thread Zahid Rahman
You can STFU.

He doesn't even know about an what in API is  ?



On Wed, 8 Jan 2020, 08:42 Peter Kreuser,  wrote:

> Zahid,
>
> you‘re talking to one of the most respected members of the community like
> this?
>
> STFU or leave.
>
> This calls for an ban!
>
> Peter
>
> > Am 08.01.2020 um 06:06 schrieb Zahid Rahman :
> >
> > 
> >>
> >> A version of what?
> > MAVEN
> > MAVEN
> > MAVEN
> >
> > In light of this video https://youtu.be/idViw4anA6E
> > Of http.
> >
> > You and your let's encrypt must be the longest troll on this line.
> >
> > Take your wares and peddle them somewhere else carpet beggar.
> >
> >
> >
> >
> >> On Wed, 8 Jan 2020, 01:12 Christopher Schultz, <
> ch...@christopherschultz.net>
> >> wrote:
> >>
> >> -BEGIN PGP SIGNED MESSAGE-
> >> Hash: SHA256
> >>
> >> Zahid,
> >>
> >>> On 1/6/20 3:13 PM, Zahid Rahman wrote:
> >>> That must be the reason why Apache Netbeans is using a version from
> >>> 2015
> >>
> >> A version of what?
> >>
> >>> and Apache Struts is recommending to use jdk 8.
> >> Apache Struts 2.5.x supports Java 7 and later. I see no official
> >> documentation recommending a specific Java version over any others.
> >>
> >>> 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.
> >>
> >> Maybe just not for free.
> >>
> >>
> https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads
> >> - -5672538.html
> >> https://www.azul.com/category/java13/
> >>
> >> Admittedly, Oracle's JDK/JRE is based upon
> >> https://openjdk.java.net/projects/jdk/13/ so maybe that doesn't count
> >> as a separate release.
> >>
> >> But no, IBM doesn't appear to have a new version beyond Java 11.
> >>
> >>> The issue is a miserable and disgraceful failure in coordination by
> >>> Apache Foundation.
> >>
> >> So you found a problem with a package provided by Ubuntu/Debian, and
> >> your solution was to install the official Maven package from the
> >> Apache Software Foundation. And your conclusion is that the ASF is the
> >> miserable and disgraceful party, here?
> >>
> >> I'm so confused.
> >>
> >> It's worth pointing-out that there is no enforced coordination between
> >> ASF projects. Some of them work together in almost lock-step, like APR
> >> and httpd. Others are completely de-coupled. Some ignore each other
> >> (e.g. Apache Maven and Apache Tomcat). It's up to the individual
> >> projects to determine if/how they will work together.
> >>
> >> You may wish to read a little more about the ASF before you make
> >> blanket statements about it.
> >> https://community.apache.org/projectIndependence.html
> >>
> >> If you are dissatisfied with the ASF communities (or maybe just a few
> >> in particular), may I suggest that you take one of these two courses
> >> of action:
> >>
> >> 1. Volunteer to improve the situation. Usually in the form of
> >> patches/PRs to that project.
> >>
> >> 2. Take your complaints elsewhere.
> >>
> >> - -chris
> >>
> >>>> On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:
> >>>
> >>>> 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
> >>>>> 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.
> >>>>>
> >>>>> ( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602
> >>>>> suggests it's a known bug in the

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

2020-01-07 Thread Zahid Rahman
  >A version of what?
 MAVEN
MAVEN
MAVEN

In light of this video https://youtu.be/idViw4anA6E
Of http.

You and your let's encrypt must be the longest troll on this line.

Take your wares and peddle them somewhere else carpet beggar.




On Wed, 8 Jan 2020, 01:12 Christopher Schultz, 
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 1/6/20 3:13 PM, Zahid Rahman wrote:
> > That must be the reason why Apache Netbeans is using a version from
> >  2015
>
> A version of what?
>
> > and Apache Struts is recommending to use jdk 8.
> Apache Struts 2.5.x supports Java 7 and later. I see no official
> documentation recommending a specific Java version over any others.
>
> > 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.
>
> Maybe just not for free.
>
> https://www.oracle.com/technetwork/java/javase/downloads/jdk13-downloads
> - -5672538.html
> https://www.azul.com/category/java13/
>
> Admittedly, Oracle's JDK/JRE is based upon
> https://openjdk.java.net/projects/jdk/13/ so maybe that doesn't count
> as a separate release.
>
> But no, IBM doesn't appear to have a new version beyond Java 11.
>
> > The issue is a miserable and disgraceful failure in coordination by
> > Apache Foundation.
>
> So you found a problem with a package provided by Ubuntu/Debian, and
> your solution was to install the official Maven package from the
> Apache Software Foundation. And your conclusion is that the ASF is the
> miserable and disgraceful party, here?
>
> I'm so confused.
>
> It's worth pointing-out that there is no enforced coordination between
> ASF projects. Some of them work together in almost lock-step, like APR
> and httpd. Others are completely de-coupled. Some ignore each other
> (e.g. Apache Maven and Apache Tomcat). It's up to the individual
> projects to determine if/how they will work together.
>
> You may wish to read a little more about the ASF before you make
> blanket statements about it.
> https://community.apache.org/projectIndependence.html
>
> If you are dissatisfied with the ASF communities (or maybe just a few
> in particular), may I suggest that you take one of these two courses
> of action:
>
> 1. Volunteer to improve the situation. Usually in the form of
> patches/PRs to that project.
>
> 2. Take your complaints elsewhere.
>
> - -chris
>
> > On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:
> >
> >> 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
> >>> 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.
> >>>
> >>> ( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602
> >>> suggests it's a known bug in their packaging/build? )
> >>>
> >>> If you download Maven from http://maven.apache.org/download.cgi
> >>> and
> >> follow
> >>> the instructions in http://maven.apache.org/install.html then
> >>> you
> >> shouldn't
> >>> see those warnings. " ‐---
> >>>
> >>> The Java 11 warning mentions that
> >>> "/usr/share/maven/lib/guice.jar" has a class named
> >>> "com.google.inject.internal.cglib.core.$ReflectUtils$1"
> >>>
> >>> This looks suspect because the official Maven distribution uses
> >>> the "no-AOP" version of Guice which doesn't contain any CGLIB
> >>> classes. It suggests that whoever provided that copy of Maven
> >>> has replaced the
> >> "no-AOP"
> >>> version with the "AOP" version, and this will cause warnings on
> >>> Java 11. (The "AOP" version uses CGLIB which currently relies
> >>> on certain
> >> reflective
> >>> access that Java 11 warns about - whereas the "no-AOP" version
> >>> doesn't.)
> >>>
> >>
> >>
> >> -

Re: Dates on Linux vs. Windows

2020-01-07 Thread Zahid Rahman
 Jerry Malcolm wrote :

 >Again this is the SAME line of code in java reading the   >SAME field in
> the SAME database.  Only thing different is  >Linux/Windows OS




On Tue, 7 Jan 2020, 21:52 ,  wrote:

>
> > -Original Message-
> > From: Jerry Malcolm 
> > Sent: Tuesday, January 07, 2020 3:14 PM
> > To: users@tomcat.apache.org
> > Subject: Re: Dates on Linux vs. Windows
> >
> > On 1/7/2020 3:09 PM, Michael Osipov wrote:
> > > Am 2020-01-07 um 21:58 schrieb Jerry Malcolm:
> > >> This may be more of a Java question than Tomcat.  But I'm not sure. I
> > >> have the same code, talking to the same MySql Linux (AWS) database.
> > >> I read a date column value in a Tomcat app.  After calling
> > >> resultSet.getDate(...) I printed the date instance and the getTime()
> > >> value:
> > >>
> > >> On windows: 2019-02-01 154900080
> > >>
> > >> On linux:   2019-01-31 154897920
> > >>
> > >> Again this is the SAME line of code in java reading the SAME field in
> > >> the SAME database.  Only thing different is Linux/Windows OS.  The
> > >> date is supposed to be 2/1/2019 and shows that in phpMyAdmin.
> > >>
> > >> I've been running on Linux for a few months.  But I don't have an
> > >> extensive background in the specifics of Linux.  I'm sure there must
> > >> be something that is configured differently.  I'm at a loss. But this
> > >> is not a trivial problem.  I do monthly billing. My dates need to be
> > >> accurate.
> > >
> > > Have you verified that you aren't tricked by any timezone issues?
> > Probably so.  But how would I know?  I was under the impression that
> > java.sql.Date was timezone independent.  Shouldn't it simply convert a
> > month/day/year value to the number of milliseconds since the epoch?  How
> > would timezone issues affect that?  And if I am 'tricked' how do I
> > 'untrick'.  What do I set/change?
> > >
> > >
>
> Those millisecond values are 6 hours apart, which looks like a timezone
> issue.  I happen to be in US Central time, which is 6 hours earlier than
> UTC in winter.
>
> You're right that System.currentTimeMillis() itself is independent of
> timezone but Date is not.
>
>
>
>


Re: Dates on Linux vs. Windows

2020-01-07 Thread Zahid Rahman
If you wish  to find out if the database connection API is buggy.

Is the result when you use select query from each of the operating system
same.

Select column_name  from table;


If select on both return values are same then likely  the database API is
buggy.  You have choice of two database connection APIs.

One API is tomcat specific.
The other  is vendor neutral.



On Tue, 7 Jan 2020, 21:09 Michael Osipov,  wrote:

> Am 2020-01-07 um 21:58 schrieb Jerry Malcolm:
> > This may be more of a Java question than Tomcat.  But I'm not sure.  I
> > have the same code, talking to the same MySql Linux (AWS) database.  I
> > read a date column value in a Tomcat app.  After calling
> > resultSet.getDate(...) I printed the date instance and the getTime()
> value:
> >
> > On windows: 2019-02-01 154900080
> >
> > On linux:   2019-01-31 154897920
> >
> > Again this is the SAME line of code in java reading the SAME field in
> > the SAME database.  Only thing different is Linux/Windows OS.  The date
> > is supposed to be 2/1/2019 and shows that in phpMyAdmin.
> >
> > I've been running on Linux for a few months.  But I don't have an
> > extensive background in the specifics of Linux.  I'm sure there must be
> > something that is configured differently.  I'm at a loss. But this is
> > not a trivial problem.  I do monthly billing. My dates need to be
> accurate.
>
> Have you verified that you aren't tricked by any timezone issues?
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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 brace,
> and an embedded question mark.
>
> If I do this (the names have been changed to protect the innocent, and
> the -k!)
>
> > curl -k "https://foo:b?a{r@localhost
> :8443/manager/jmxproxy?invoke=Catalina%3Atype%3DProtocolHandler%2Cport%3D8443%2Caddress%3D%22127.0.0.1%22=reloadSslHostConfigs"
>
> I get curl: (3) [globbing] unmatched brace in column xx
>
> If I change the curly brace to "%7B," I get:
>
> > curl -k "https://foo:b?a%7Br@localhost
> :8443/manager/jmxproxy?invoke=Catalina%3Atype%3DProtocolHandler%2Cport%3D8443%2Caddress%3D%22127.0.0.1%22=reloadSslHostConfigs"
>
> I get curl: (3) Port number ended with 'n'
>
> And if I put the user-ID and password in with a -u clause on curl,
> rather than in the URL itself, I get "Unauthorized."
>
> What is wrong here? Are there characters it simply can't tolerate in
> passwords, even if URL-escaped?
>
> Or do I need to give the manager user an additional role? Currently, I
> have:
> 
>
> --
> JHHL
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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 blocked from
> re-subscribing.
>
> As a general reminder aimed at keeping noise down on the list:
>
> Please don't feed the trolls.
>
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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 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 list:
>
> Please don't feed the trolls.
>
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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.



On Mon, 6 Jan 2020, 20:17 Michael Osipov,  wrote:

> 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 than JDK 8.
> >
> > The issue is a miserable and disgraceful failure in coordination by
> Apache
> > Foundation.
>
> This still has absolutely *nothing* to do with Tomcat. Complain to
> Debian for modifying packages. The Maven Team rejects any kind of source
> code modifications.
>
>
> > On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:
> >
> >> 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
> >>> 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.
> >>>
> >>> ( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602
> suggests
> >>> it's a known bug in their packaging/build? )
> >>>
> >>> If you download Maven from http://maven.apache.org/download.cgi and
> >> follow
> >>> the instructions in http://maven.apache.org/install.html then you
> >> shouldn't
> >>> see those warnings. "
> >>> ‐---
> >>>
> >>> The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has
> a
> >>> class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"
> >>>
> >>> This looks suspect because the official Maven distribution uses the
> >>> "no-AOP" version of Guice which doesn't contain any CGLIB classes. It
> >>> suggests that whoever provided that copy of Maven has replaced the
> >> "no-AOP"
> >>> version with the "AOP" version, and this will cause warnings on Java
> 11.
> >>> (The "AOP" version uses CGLIB which currently relies on certain
> >> reflective
> >>> access that Java 11 warns about - whereas the "no-AOP" version
> doesn't.)
> >>>
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >>
> >
>
>
>


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 disgraceful failure in coordination by Apache
Foundation.


On Mon, 6 Jan 2020, 19:45 Mark Thomas,  wrote:

> 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
> > 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.
> >
> > ( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602  suggests
> > it's a known bug in their packaging/build? )
> >
> > If you download Maven from http://maven.apache.org/download.cgi and
> follow
> > the instructions in http://maven.apache.org/install.html then you
> shouldn't
> > see those warnings. "
> >‐---
> >
> > The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has a
> > class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"
> >
> > This looks suspect because the official Maven distribution uses the
> > "no-AOP" version of Guice which doesn't contain any CGLIB classes. It
> > suggests that whoever provided that copy of Maven has replaced the
> "no-AOP"
> > version with the "AOP" version, and this will cause warnings on Java 11.
> > (The "AOP" version uses CGLIB which currently relies on certain
> reflective
> > access that Java 11 warns about - whereas the "no-AOP" version doesn't.)
> >
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
>


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.

( https://bugs.launchpad.net/ubuntu/+source/maven/+bug/1754602  suggests
it's a known bug in their packaging/build? )

If you download Maven from http://maven.apache.org/download.cgi and follow
the instructions in http://maven.apache.org/install.html then you shouldn't
see those warnings. "
   ‐---

The Java 11 warning mentions that "/usr/share/maven/lib/guice.jar" has a
class named "com.google.inject.internal.cglib.core.$ReflectUtils$1"

This looks suspect because the official Maven distribution uses the
"no-AOP" version of Guice which doesn't contain any CGLIB classes. It
suggests that whoever provided that copy of Maven has replaced the "no-AOP"
version with the "AOP" version, and this will cause warnings on Java 11.
(The "AOP" version uses CGLIB which currently relies on certain reflective
access that Java 11 warns about - whereas the "no-AOP" version doesn't.)


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:

> -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.
> >
> > You bought it , you paid for it , you own it.
> >
> >
> > although you have many ways of installing software.
> >
> > apt , apt-get yum , blah blah.
> >
> > You need to familiarise yourself with *find  / -name java* *  ,
> > which java*  because you have no idea where the installer installed
> > the software you just installed on "your machine",
> >
> > Have ever heard of *which* or *find* in windows ?
> >
> >
> > you can be in a directory in one terminal and delete it form
> > another terminal .
> >
> > Is that  linux security  feature ?
> >
> > can you do the same  in windows  ?
> >
> > what are others benefits you can enjoy in MS Windows because of
> > this particular behaviour is not same in MS Windows ?
> >
> > After you deleted the directory you are in from somewhere else you
> > will end up in trash literally.
> >
> > why  is this same unique  behaviour in Unix which came after
> > Linux.
> >
> >
> > you see anything what's wrong with this ? can you see the missing
> > the /r /n
> >
> > manifest.txt
> >
> > Main-Class:/classname /
> >
> > why does manifest.text must have /r {carriage} or  /n {newline}.
> >
> > Is it because jvm.dll it was written in C. C programming language
> > also has the same feature.
> >
> >
> > why is there three ways to do same thing  ?
> >
> > java - cp
> >
> > java - classpath
> >
> > java - class-path
>
> LOL this is the first time I've seen a pro-MS rant saying that running
> Java on Windows is easier.
>
> I didn't understand any individual point. Just the general hatred for
> *NIX. What was the point of this post, again?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4TW/4ACgkQHPApP6U8
> pFh5/Q/+OmDmoFUvDzeA/+J57bHF+T/LHh0r0CBuZADF2m+N9OMWm6QGWsZnHtIT
> 0oL9iSnN+7UKbJa7YBCddLKl9nYJfrxEDd3GeCLgY4c9LbICcnjO4BjwEfG8/K+a
> cp7XXHQHLq+YoYJBP3U289Y6yFsVTapD8HMg9kacAtFQOgn1FUZw0TfAIlXCdBM2
> mWdJgdoXEX2s23Hz/8bUafz4Gd772gYA1j1zilhc8Cp9fDmJgf0EU1sIcUCjFRZx
> wQnETG9AJbKdt0vH6svg7ML7oP5f10bHSe+9pLuSe/tMJNgsDQTyvEkOx1H9WenP
> J8crastrKTJu5qWs4Dsu5DH+bm+Dxz5D8kCUr1wzBgrvYwPIfxs/VOo/fC0fVvk8
> v0XvNUam1V5PFLb1yE0bfVyCZtEwKaetyR46N2+EB5Kp7lz0o0RUf39G29cMu07R
> SYhgz1AjoGwpisAWMX3qCxouWIU46ouDS5w1UTR7ZvGB0d1TsHPGUikp9eRt5PdC
> xVpEMMqZ6OhJ7Y7Ei9d+Srmrye+hRArbUZxGpKQWRazjHKCN9Q+E6d1kG/sf/HJV
> jU8fjhPRnjlI8vewf1yvU9Xn4rd4SGejudaXK4hzN8d54WSzQty5c+3/ts7ckqYc
> M4SPdQeHec0RQjwYMnDAGK/4pxhVOMDwJLNwvW3bCQdebFvJe3M=
> =wN50
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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 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 works on actual domain.
>
> Correct. You cannot obtain a certificate from Let's Encrypt for
> "localhost"; it's got to be something Let's Encrypt can resolve and
> contact from their infrastructure. For that reason, LE doesn't work
> very well for internal networks.
>
> > He goes on to say you should purchase one "it is not very expensive
> > ".
>
> Did I? I don't recall recommending purchasing a certificate during a
> presentation on zero-cost certificates.
>
> I'd never bother paying for a certificate for an internal network.
> Just self-sign and establish your own trust. The purpose of LE is for
> environments where you need *public* trust, not private trust. Private
> trust is easy to establish: you get to decide all by yourself! :)
>
> - -chris
>
> > On Mon, 6 Jan 2020, 14:57 Christopher Schultz,
> >  wrote:
> >
> > 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 localhost 443
> >>>>
> >>>> I hadn't thought of that. But alas, that instance doesn't
> >>>> have Telnet on it.
> >>>>
> >>>>> If it connects, you have something on the host making this
> >>>>> work. If it fails to connect, the 443 -> 8443 magic is
> >>>>> outside the host itself.
> >>>>
> >>>> 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.
> >
> > So your instance is indeed listening on 8443 and the host (at least
> > on the loopback interface) isn't doing any port 443
> > funny-business.
> >
> >>>>> Note that if you are using AWS load-balancer, AWS provides
> >>>>> free certificates that auto-renew; just configure them and
> >>>>> you are done forever.
> >>>>
> >>>>> Let me know about the Load-Balancer. That's probably the
> >>>>> piece of the puzzle you aren't looking at quite yet.
> >>>>
> >>>> No; we *have* load-balanced clusters, and they *are* (as of
> >>>> last month) on AWS's certificate system, so I know what that
> >>>> looks like. This is completely different; when I connect, I
> >>>> see the certificate that is currently active on the Tomcat
> >>>> server (and if I plug a different cert into Tomcat, I see the
> >>>> change from my browser).
> >
> > There are also load-balancers that just move bytes and don't
> > terminate TLS. It's also possible to have the same certificate
> > installed in multiple places. I think you are going to have to look
> > around your network a little more to figure out what's happening.
> >
> > Maybe simply try:
> >
> > $ host foo.bar.net
> >
> > And check the IP versus the IP of the Tomcat node?
> >
> > -chris
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4TZB0ACgkQHPApP6U8
> pFib/A//TRP6v+GXvkDw7DXMcP3EzQSCEZ6yzdKoL4cblDLwW1Upe5TWVtEvHdiG
> IoqKesMwIUQQQDlv2Z3x6N5iCe9G5cTyFsz0JlSPZxGiHNGF1viwVrH/fGSsDLbp
> V2Q9HDdmp6zApl12+8HI1akCxHTPfySKg3j9NjEJlpbEA8w+Gzok+5UbjI3LzQgK
> c2iCN2Uj2mLoH135jMrdBbmYOb3rD0oEiiZY/fNch5C9bVGI5hiP7APTz8EEsjiq
> ei7eL4X0B/p+q6lgDSmvylD42TrTnpfESpiSitSZoFtM03alFdRm4OySzXuXK8za
> tYtAIha+VQs1i3y7LdRB6mIsl5xsU1NtrqGDl9lSg5ciFjuLpIQNRFDI3kqa8KwA
> FgiYOLsQZASK4bjoULQCAlcK55TBCALnbjL8PGu55YAPXO895hkeFtWokDciX+8B
> RRMqRyY2OWOoUNDZKan9icEk93vArKPU4JoVGJyvH0HCFTk+HL2B9F5s2PYvc3WO
> g+iVQdXBlDi4ngYsY0TXWC4GKBPgKVBuylJbAwbyBumpLYExIiYANn9ldtxtK9mr
> ukdlo5fvvlGclVgfL9CygsHiGgz6+aeo/n+3VkOSBsfxRHbYuw0JERicRnVImt2r
> O5ulCHoN4LwdRqhAc4BxzrnTsdrqKeyv2Qn3ANhJbpz7qNImI5o=
> =kBdi
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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 works on actual domain. He goes on to say you should purchase one
"it is not very expensive ".


On Mon, 6 Jan 2020, 14:57 Christopher Schultz, 
wrote:

> -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 localhost 443
> >
> > I hadn't thought of that. But alas, that instance doesn't have
> > Telnet on it.
> >
> >> If it connects, you have something on the host making this work.
> >> If it fails to connect, the 443 -> 8443 magic is outside the host
> >> itself.
> >
> > 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.
>
> So your instance is indeed listening on 8443 and the host (at least on
> the loopback interface) isn't doing any port 443 funny-business.
>
> >> Note that if you are using AWS load-balancer, AWS provides free
> >> certificates that auto-renew; just configure them and you are
> >> done forever.
> >
> >> Let me know about the Load-Balancer. That's probably the piece of
> >> the puzzle you aren't looking at quite yet.
> >
> > No; we *have* load-balanced clusters, and they *are* (as of last
> > month) on AWS's certificate system, so I know what that looks like.
> > This is completely different; when I connect, I see the certificate
> > that is currently active on the Tomcat server (and if I plug a
> > different cert into Tomcat, I see the change from my browser).
>
> There are also load-balancers that just move bytes and don't terminate
> TLS. It's also possible to have the same certificate installed in
> multiple places. I think you are going to have to look around your
> network a little more to figure out what's happening.
>
> Maybe simply try:
>
> $ host foo.bar.net
>
> And check the IP versus the IP of the Tomcat node?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4TSsMACgkQHPApP6U8
> pFgvHw//fBItKsqFiCNeA5lLwo6hi6tZaZY6BxC24SQfMPFe4TaQKkvl/ziGdvpc
> E7afIiahzkksZ5Afeq08xx5yE16XVWNDfXy005x5TjosK9tq+msYQU0RUXiHolPo
> iTNMfVAi7vHx4OYciJzDzV34vb8pF4Xl4AlMj/ESh38BUPsZWQtcpzmMi9Nf9+/q
> grQonVVKHBIydBSbygpiHBGcPesJX0kRUtpArVIWJZdw+V+lKApeo32Xw1Y+Dm0q
> 1knwGFzHYGdxROCCpez8dq83ABI5l4tmVMPYpTZsTxBrebZxXxy2GUfrRHTH8UaC
> E1ew1jHhYwyPWIUQjEAWynKqVZ8OFcBlRN3DwFvNCGMyd5c9vyE50qfRwzYqeQMk
> tEnNafRgWGdsiw0El79m6Xl3LVOd9psSYTgvobqICPk27YhPbpk7izR5td2stvxu
> wnmfgxBJd9lL/ckwkvQfKgsdQSnCx8ULJgNUWyCv/gKrhBuBK1gkRrHj3MbJM5Cf
> A7fquztvXVZdTnAuEBLvAhKdmIYX6k7W/TnX1kvJcBQ0AN1WhcbmnxQhcww2bn5s
> LB2VA91XKg8BaNItodEx03EsUEpbjIvxmnBoCbTgYxcVaKs76qxzP9DENZmGNV/b
> JTSEo7xAyGnRQ42l4pm1Lxj/8kAZLrZ5VfNK2DBmmDTeZ8eCUAI=
> =372g
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: http://localhost:8080/manager/

2019-12-27 Thread Zahid Rahman
I got slightly confused with the error message "command" because where I
come from we use different terminology.

Element
Description
http://localhost:8080  The
web server to process the request
/manager/text
The name and location of server resource
?
  separates the location from the data
key=value
Field Name and associated values
&
  separates key value pairs
+
  replaces the space character.Note that all  other  special characters
are hex-encoded.





On Mon, 23 Dec 2019 at 15:51, Zahid Rahman  wrote:

> In that case there is more bad news for the person(s) who development the
> "command line" method  of deployment, when there are two other competing
> methods as GUIs. Especially the GUI you are presented with when you open
> the build.properties file in Eclipse.
>
>
>
> On Mon, 23 Dec 2019, 14:52 Christopher Schultz, <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Zahid,
>>
>> On 12/21/19 15:22, Zahid Rahman wrote:
>> > Yes thank you. I was just about to send message to with draw my
>> > message as I found the answer as I read on.
>> > http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html It seems
>> > I was a but *impatient* :)
>>
>> You're in luck: "impatience" is one of the three great virtues of
>> programmers!
>>
>> http://threevirtues.com/
>>
>> - -chris
>>
>> > On Sat, 21 Dec 2019, 19:46 Mark Thomas,  wrote:
>> >
>> >> On 21/12/2019 19:27, Zahid Rahman wrote:
>> >>> I am on
>> >>> http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html
>> >>> Tomcat Web Application Manager This same page is  produced by
>> >>> http://localhost:8080/manager/html
>> >>> http://localhost:8080/manager/ but
>> >>> http://localhost:8080/manager/text produces
>> >>>
>> >>> FAIL - Unknown command [/text]
>> >>>
>> >>> I thought that was a valid  url, it is in my ant
>> >>> configuration,
>> >> build.xml.
>> >>> > >>> value="http://localhost:8080/manager/text
>> >> "/>
>> >>
>> >> That URL doesn't contain a command. Hence the error message.
>> >>
>> >> See
>> >>
>> >> http://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Supported_
>> Manager_Commands
>> >>
>> >>
>> >>
>> Mark
>> >>
>> >> -
>> >>
>> >>
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> >> For additional commands, e-mail: users-h...@tomcat.apache.org
>> >>
>> >>
>> >
>> -BEGIN PGP SIGNATURE-
>> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>>
>> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4A1KoACgkQHPApP6U8
>> pFg4/Q/9H3U4Y2f7S03eAvfWnBwPBSbs8iVpKPsxDeVpRcdGnJeNuLS4rJzjuihP
>> L8D5m1R3Mz60LyoiC9FNKTIgKRLsQVki2UQAPDazNWf9AZ6g7lai6Sq7VnG4mCtX
>> sDbNf4UUewoqCGfIfb7vUHslKPJy6rjA0pmCcIoSyuZr4qQqne4ApXKZsO0HkRsC
>> H3pUt2atZKQhM6xbTbg1k0ZHKcEU32GfzUf+jP19kIZ0WN24ht+drQF/a1isukHY
>> VoIe0CynaqoE3bu8hhxNcESJKRseaUg4XmKQ/sdW3MzMNV6dqj+dN/a7pgflSesz
>> F8WHCMYVymWT82wVykJYP5dAWi0CWLz7YjDoZQohjN+FRjZWCs0B/+483u2Tzds4
>> 5/Ny6R8+ARquJcdicFHQj7GvSpOYtsxEEQL+tcnAmorhqR5/kpZX5mNoZ7xXS5pd
>> 1NP4b0AAvXHegWhC3QCzzHBNqArSLExkOLgNnTGnV383uIlmVbsQbs+6ZRj4/pG4
>> ZlQL/X3j9TKJPZkxRb1ogGfu3bv5o1GteTHZqwWa5cxJeTObNHUKVbpsEWQvKW+r
>> JCEyKbJo8vkfcjc9KjoyIyx9ZyA132DCLO/xMCe04ngpRa162WStHcbX9gN1eQkf
>> kwkwn07uT+XDqLwWWEnqC/DPNQ8Hp9I/EdZaYkbZPtBL+zsAqq8=
>> =DYFR
>> -END PGP SIGNATURE-
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>

-- 
www.backbutton.co.uk


Re: [OT] Re: How to set apache load balancer for send request to 6 tomcat server

2019-12-27 Thread Zahid Rahman
Good,  please expand

On Fri, 27 Dec 2019, 15:27 Christopher Schultz, <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 12/23/19 15:19, Zahid Rahman wrote:
> > If your backend tomcat servers are running on different physical
> > machines therefore with different ip addresses then there is
> > nothing wrong with each backend  tomcat server listening on same
> > port (80) of each machine. Further to mod_jk worker properties file
> > redirection.
> >
> > It is pointless in having multiple tomcat instances running on same
> > machine , because the kernel will slice and share resources as per
> > priority level setting of OS.
>
> I disagree. There are use-cases for running multiple Tomcat instances
> on the same machine.
>
> > If you don't have heavy user activity expectations   then this
> > excercise is pointless.
>
> ?
>
> - -chris
>
> > On Mon, 23 Dec 2019, 17:45 Giancarlo Celli,
> >  wrote:
> >
> >> Hi, I need to configure a load balancer with apache connector on
> >> a jelastic server that redirects requests to 6 server workers
> >> with tomcat 7 installed. Atteched you can find extract from
> >> httpd.conf and workers.properties. I need to send single request
> >> to tomcat server individually, so I set sticky_session to 0.
> >> Could you tell me if parameters are configured correctly? Is the
> >> collector able to handle all requests? Could you give me some
> >> further advice?
> >>
> >> Each tomcat server is configured with the following parameters:
> >>
> >>  >> connectionTimeout="2" redirectPort="8443" />
> >>
> >> The balancer has the following configuration: Server version:
> >> Apache/2.4.39 (codeit) Server built:   Apr  3 2019 18:54:14
> >> Architecture:   64-bit Server MPM: event threaded: yes
> >> (fixed thread count) forked: yes (variable process count)
> >>
> >>
> >> Thanks. Best regards.
> >>
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4GIuwACgkQHPApP6U8
> pFgmQA//aMZLwDbtop83M7HTtM2P8vXzO7Z1cbvu5NA8yvt4IjMBA9WyrJ+XYhDn
> pRHJP2S0LTLmWrZ3n8o2QpdUGkMwWwpnhuHsr1zqzwhIxWtB1tmBoIgkueM92Yk1
> wXOHuy+PRlXGTRkujprb6bwUH2OxGp3Z6w3X1kqdvgJtZ6ZydBFD+eDv0epOSPay
> z3gvFraikSSY6IAf2y3gI/FTMT8kjUmo+M9TnnZ2Lbjmaxg/abmRa1rypcaMLXPf
> DjlQ0SAJtu2lS4wtQphY1beAsP2l/EXlMPaWIy2HbbaTBmZNtevM21OyxsWAdXQH
> SNmPDIC0AycTJfpeeB3tUbAtPVBKUkoOoaMLEkuAp1JdqnrW1KGH71cAvDkdJIBK
> 7b8mXTE07/mVpak4XhIqfdEkTLI+QWpYDIds6xWPYFokNtfevD6ZIBjbtNyqFcgE
> CEFHOkiM9JtzEOLJu24bS6MAbeYx4TnkvcZZF3hd79/Cxbusw2rlTZEvvKSSDXUn
> tWi4/xeTq1o8slmWf+A241qrr4SyHdOR8XVMUT4RvXSCcmBdkh0UDsxaMXLyx/AK
> yg7BxhU8d2OTmOfsFzRMCYZOpw+P+a5zE+3lNkeTbLuIamn9igKm/E7msd/enK4Z
> yHWd7tof+JXHGyhtYsBlr8tM8cm9pS2R02kLHAr34s7t0TjL9D4=
> =qkR+
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server

2019-12-24 Thread Zahid Rahman
This is what a typical workers.properties file look like.this is not same
as your configuration

*Workers properties*
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
worker.list=balancer,status

worker.tomcat1.type=ajp13
worker.tomcat1.port=8009
worker.tomcat1.host=localhost

worker.tomcat2.type=ajp13
worker.tomcat2.port=8010
worker.tomcat2.host=localhost

worker.tomcat3.type=ajp13
worker.tomcat3.port=8011
worker.tomcat3.host=localhost


worker.balancer.type=lb
worker.balancer.balance_workers=tomcat1,tomcat2,tomcat3

worker.status.type=status

On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, 
wrote:

> Thanks for the reply.
> More than anything else my question is to know if the configuration
> parameters of the various threads, connections, etc. they are set up well
> or if they could somehow down the service.
> And if you recommend any changes to optimize the service itself.
> He again attached the files with the extracts of the configurations
> Thanks.
> Best regards.
> Giancarlo
>
>
> -- Messaggio originale --
> Da: "Zahid Rahman" 
> A: "Tomcat Users List" ; "Giancarlo Celli" <
> giancarlo.ce...@flottaweb.com>
> Inviato: 23/12/2019 23:56:41
> Oggetto: Re: How to set apache load balancer for send request to 6 tomcat
> server
>
> If you wish we can work the problem , piece by piece through logical
> construction of the solution.
>
>
>
> On Mon, 23 Dec 2019, 17:45 Giancarlo Celli,  >
> wrote:
>
>
> Hi,
> I need to configure a load balancer with apache connector on a jelastic
> server that redirects requests to 6 server workers with tomcat 7 installed.
> Atteched you can find extract from httpd.conf and workers.properties.
> I need to send single request to tomcat server individually, so I set
> sticky_session to 0.
> Could you tell me if parameters are configured correctly?
> Is the collector able to handle all requests?
> Could you give me some further advice?
>
> Each tomcat server is configured with the following parameters:
>
>  maxThreads="400"
> connectionTimeout="2"
> redirectPort="8443" />
>
> The balancer has the following configuration:
> Server version: Apache/2.4.39 (codeit)
> Server built: Apr 3 2019 18:54:14
> Architecture: 64-bit
> Server MPM: event
> threaded: yes (fixed thread count)
> forked: yes (variable process count)
>
>
> Thanks.
> Best regards.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server

2019-12-24 Thread Zahid Rahman
Load balancing Algorithms

https://youtu.be/iqOTT7_7qXY

On Tue, 24 Dec 2019, 10:06 Zahid Rahman,  wrote:

> There is a really great series of videos on this subject. He is
> referencing tomcat Apache website.
> If you speak German
>
> https://youtu.be/mQKZ8-EfBHU
>
> On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, 
> wrote:
>
>> Thanks for the reply.
>> More than anything else my question is to know if the configuration
>> parameters of the various threads, connections, etc. they are set up well
>> or if they could somehow down the service.
>> And if you recommend any changes to optimize the service itself.
>> He again attached the files with the extracts of the configurations
>> Thanks.
>> Best regards.
>> Giancarlo
>>
>>
>> -- Messaggio originale --
>> Da: "Zahid Rahman" 
>> A: "Tomcat Users List" ; "Giancarlo Celli" <
>> giancarlo.ce...@flottaweb.com>
>> Inviato: 23/12/2019 23:56:41
>> Oggetto: Re: How to set apache load balancer for send request to 6 tomcat
>> server
>>
>> If you wish we can work the problem , piece by piece through logical
>> construction of the solution.
>>
>>
>>
>> On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, <
>> giancarlo.ce...@flottaweb.com>
>> wrote:
>>
>>
>> Hi,
>> I need to configure a load balancer with apache connector on a jelastic
>> server that redirects requests to 6 server workers with tomcat 7
>> installed.
>> Atteched you can find extract from httpd.conf and workers.properties.
>> I need to send single request to tomcat server individually, so I set
>> sticky_session to 0.
>> Could you tell me if parameters are configured correctly?
>> Is the collector able to handle all requests?
>> Could you give me some further advice?
>>
>> Each tomcat server is configured with the following parameters:
>>
>> > maxThreads="400"
>> connectionTimeout="2"
>> redirectPort="8443" />
>>
>> The balancer has the following configuration:
>> Server version: Apache/2.4.39 (codeit)
>> Server built: Apr 3 2019 18:54:14
>> Architecture: 64-bit
>> Server MPM: event
>> threaded: yes (fixed thread count)
>> forked: yes (variable process count)
>>
>>
>> Thanks.
>> Best regards.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Re[2]: How to set apache load balancer for send request to 6 tomcat server

2019-12-24 Thread Zahid Rahman
There is a really great series of videos on this subject. He is referencing
tomcat Apache website.
If you speak German

https://youtu.be/mQKZ8-EfBHU

On Tue, 24 Dec 2019, 09:17 Giancarlo Celli, 
wrote:

> Thanks for the reply.
> More than anything else my question is to know if the configuration
> parameters of the various threads, connections, etc. they are set up well
> or if they could somehow down the service.
> And if you recommend any changes to optimize the service itself.
> He again attached the files with the extracts of the configurations
> Thanks.
> Best regards.
> Giancarlo
>
>
> -- Messaggio originale --
> Da: "Zahid Rahman" 
> A: "Tomcat Users List" ; "Giancarlo Celli" <
> giancarlo.ce...@flottaweb.com>
> Inviato: 23/12/2019 23:56:41
> Oggetto: Re: How to set apache load balancer for send request to 6 tomcat
> server
>
> If you wish we can work the problem , piece by piece through logical
> construction of the solution.
>
>
>
> On Mon, 23 Dec 2019, 17:45 Giancarlo Celli,  >
> wrote:
>
>
> Hi,
> I need to configure a load balancer with apache connector on a jelastic
> server that redirects requests to 6 server workers with tomcat 7 installed.
> Atteched you can find extract from httpd.conf and workers.properties.
> I need to send single request to tomcat server individually, so I set
> sticky_session to 0.
> Could you tell me if parameters are configured correctly?
> Is the collector able to handle all requests?
> Could you give me some further advice?
>
> Each tomcat server is configured with the following parameters:
>
>  maxThreads="400"
> connectionTimeout="2"
> redirectPort="8443" />
>
> The balancer has the following configuration:
> Server version: Apache/2.4.39 (codeit)
> Server built: Apr 3 2019 18:54:14
> Architecture: 64-bit
> Server MPM: event
> threaded: yes (fixed thread count)
> forked: yes (variable process count)
>
>
> Thanks.
> Best regards.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Re: How to set apache load balancer for send request to 6 tomcat server

2019-12-23 Thread Zahid Rahman
If you wish we can work the problem , piece by piece through logical
construction of the solution.



On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, 
wrote:

> Hi,
> I need to configure a load balancer with apache connector on a jelastic
> server that redirects requests to 6 server workers with tomcat 7 installed.
> Atteched you can find extract from httpd.conf and workers.properties.
> I need to send single request to tomcat server individually, so I set
> sticky_session to 0.
> Could you tell me if parameters are configured correctly?
> Is the collector able to handle all requests?
> Could you give me some further advice?
>
> Each tomcat server is configured with the following parameters:
>
> maxThreads="400"
>connectionTimeout="2"
>redirectPort="8443" />
>
> The balancer has the following configuration:
> Server version: Apache/2.4.39 (codeit)
> Server built:   Apr  3 2019 18:54:14
> Architecture:   64-bit
> Server MPM: event
>   threaded: yes (fixed thread count)
> forked: yes (variable process count)
>
>
> Thanks.
> Best regards.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Re: How to set apache load balancer for send request to 6 tomcat server

2019-12-23 Thread Zahid Rahman
If your backend tomcat servers are running on different physical machines
therefore with different ip addresses then there is nothing wrong with each
backend  tomcat server listening on same port (80) of each machine. Further
to mod_jk worker properties file redirection.

It is pointless in having multiple tomcat instances running on same machine
, because the kernel will slice and share resources as per priority level
setting of OS.

If you don't have heavy user activity expectations   then this excercise is
pointless.


On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, 
wrote:

> Hi,
> I need to configure a load balancer with apache connector on a jelastic
> server that redirects requests to 6 server workers with tomcat 7 installed.
> Atteched you can find extract from httpd.conf and workers.properties.
> I need to send single request to tomcat server individually, so I set
> sticky_session to 0.
> Could you tell me if parameters are configured correctly?
> Is the collector able to handle all requests?
> Could you give me some further advice?
>
> Each tomcat server is configured with the following parameters:
>
> maxThreads="400"
>connectionTimeout="2"
>redirectPort="8443" />
>
> The balancer has the following configuration:
> Server version: Apache/2.4.39 (codeit)
> Server built:   Apr  3 2019 18:54:14
> Architecture:   64-bit
> Server MPM: event
>   threaded: yes (fixed thread count)
> forked: yes (variable process count)
>
>
> Thanks.
> Best regards.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Re: How to set apache load balancer for send request to 6 tomcat server

2019-12-23 Thread Zahid Rahman
Your home page is in Italian
https://www.flottaweb.com/en/

While your login page is in English
https://www.flottaweb.com/en/login/


On Mon, 23 Dec 2019, 17:45 Giancarlo Celli, 
wrote:

> Hi,
> I need to configure a load balancer with apache connector on a jelastic
> server that redirects requests to 6 server workers with tomcat 7 installed.
> Atteched you can find extract from httpd.conf and workers.properties.
> I need to send single request to tomcat server individually, so I set
> sticky_session to 0.
> Could you tell me if parameters are configured correctly?
> Is the collector able to handle all requests?
> Could you give me some further advice?
>
> Each tomcat server is configured with the following parameters:
>
> maxThreads="400"
>connectionTimeout="2"
>redirectPort="8443" />
>
> The balancer has the following configuration:
> Server version: Apache/2.4.39 (codeit)
> Server built:   Apr  3 2019 18:54:14
> Architecture:   64-bit
> Server MPM: event
>   threaded: yes (fixed thread count)
> forked: yes (variable process count)
>
>
> Thanks.
> Best regards.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org


Re: http://localhost:8080/manager/

2019-12-23 Thread Zahid Rahman
In that case there is more bad news for the person(s) who development the
"command line" method  of deployment, when there are two other competing
methods as GUIs. Especially the GUI you are presented with when you open
the build.properties file in Eclipse.



On Mon, 23 Dec 2019, 14:52 Christopher Schultz, <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 12/21/19 15:22, Zahid Rahman wrote:
> > Yes thank you. I was just about to send message to with draw my
> > message as I found the answer as I read on.
> > http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html It seems
> > I was a but *impatient* :)
>
> You're in luck: "impatience" is one of the three great virtues of
> programmers!
>
> http://threevirtues.com/
>
> - -chris
>
> > On Sat, 21 Dec 2019, 19:46 Mark Thomas,  wrote:
> >
> >> On 21/12/2019 19:27, Zahid Rahman wrote:
> >>> I am on
> >>> http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html
> >>> Tomcat Web Application Manager This same page is  produced by
> >>> http://localhost:8080/manager/html
> >>> http://localhost:8080/manager/ but
> >>> http://localhost:8080/manager/text produces
> >>>
> >>> FAIL - Unknown command [/text]
> >>>
> >>> I thought that was a valid  url, it is in my ant
> >>> configuration,
> >> build.xml.
> >>>  >>> value="http://localhost:8080/manager/text
> >> "/>
> >>
> >> That URL doesn't contain a command. Hence the error message.
> >>
> >> See
> >>
> >> http://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Supported_
> Manager_Commands
> >>
> >>
> >>
> Mark
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl4A1KoACgkQHPApP6U8
> pFg4/Q/9H3U4Y2f7S03eAvfWnBwPBSbs8iVpKPsxDeVpRcdGnJeNuLS4rJzjuihP
> L8D5m1R3Mz60LyoiC9FNKTIgKRLsQVki2UQAPDazNWf9AZ6g7lai6Sq7VnG4mCtX
> sDbNf4UUewoqCGfIfb7vUHslKPJy6rjA0pmCcIoSyuZr4qQqne4ApXKZsO0HkRsC
> H3pUt2atZKQhM6xbTbg1k0ZHKcEU32GfzUf+jP19kIZ0WN24ht+drQF/a1isukHY
> VoIe0CynaqoE3bu8hhxNcESJKRseaUg4XmKQ/sdW3MzMNV6dqj+dN/a7pgflSesz
> F8WHCMYVymWT82wVykJYP5dAWi0CWLz7YjDoZQohjN+FRjZWCs0B/+483u2Tzds4
> 5/Ny6R8+ARquJcdicFHQj7GvSpOYtsxEEQL+tcnAmorhqR5/kpZX5mNoZ7xXS5pd
> 1NP4b0AAvXHegWhC3QCzzHBNqArSLExkOLgNnTGnV383uIlmVbsQbs+6ZRj4/pG4
> ZlQL/X3j9TKJPZkxRb1ogGfu3bv5o1GteTHZqwWa5cxJeTObNHUKVbpsEWQvKW+r
> JCEyKbJo8vkfcjc9KjoyIyx9ZyA132DCLO/xMCe04ngpRa162WStHcbX9gN1eQkf
> kwkwn07uT+XDqLwWWEnqC/DPNQ8Hp9I/EdZaYkbZPtBL+zsAqq8=
> =DYFR
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: http://localhost:8080/manager/

2019-12-21 Thread Zahid Rahman
Yes thank you.
I was just about to send message to with draw my message as I found the
answer as I read on.
http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html
It seems I was a but *impatient* :)


On Sat, 21 Dec 2019, 19:46 Mark Thomas,  wrote:

> On 21/12/2019 19:27, Zahid Rahman wrote:
> > I am on http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html
> > Tomcat Web Application Manager
> > This same page is  produced by
> > http://localhost:8080/manager/html
> > http://localhost:8080/manager/
> > but http://localhost:8080/manager/text
> > produces
> >
> > FAIL - Unknown command [/text]
> >
> > I thought that was a valid  url, it is in my ant configuration,
> build.xml.
> > http://localhost:8080/manager/text
> "/>
>
> That URL doesn't contain a command. Hence the error message.
>
> See
>
> http://tomcat.apache.org/tomcat-9.0-doc/manager-howto.html#Supported_Manager_Commands
>
> Mark
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


http://localhost:8080/manager/

2019-12-21 Thread Zahid Rahman
I am on http://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html
Tomcat Web Application Manager
This same page is  produced by
http://localhost:8080/manager/html
http://localhost:8080/manager/
but http://localhost:8080/manager/text
produces

FAIL - Unknown command [/text]

I thought that was a valid  url, it is in my ant configuration, build.xml.
http://localhost:8080/manager/text"/>


Re: ant install build.xml:372: java.net.ProtocolException: Server redirected too many times (20)

2019-12-20 Thread Zahid Rahman
>any suggestions would be welcome.
Thank you.

I have dome some play around and I found
if the tomcat-user.xml has

**


**
Then with url http://localhost:8080/manager gives 403 Access Denied error
page.

if the tomcat-user.xml only has


**

then url http://localhost:8080/manager shows the Tomcat Web Application
Manager
page without asking me to login.

As you know syntax is unforgiving It must be exact. The change I would
suggest is this :-
At the url http://localhost:8080/manager initially a 403 access denied page
was displayed
with instructions on how to rectify it. So I did.
BUT  with url http://localhost:8080/manager/text
the 403 access denied page does not  show how to add a second  element,
manager-script to manager-gui.
  
  **
  

So first I made some guesses which didn't work based my common sense, my
common sense was doing it.
then I had to google to find  the syntax for adding second  , third , so
elements.
CHANGE@I believe the 403 page should show how to add a second element
syntax.














On Fri, 20 Dec 2019 at 14:21, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 12/19/19 16:36, Zahid Rahman wrote:
> > *SUCCESSS...*
> >
> > Buildfile: /home/kub18/myapp/build.xml Trying to override old
> > definition of task javac Trying to override old definition of
> > datatype resources
> >
> > prepare:
> >
> > compile:
> >
> > install: [deploy] OK - Deployed application at context path
> > [/myapp]
> >
> > BUILD SUCCESSFUL Total time: 0 seconds
>
> Glad you got it working. If you think there are some changes to the
> documentation that would be helpful, any suggestions would be welcome.
>
> > with these changes  in tomcat-users.xml  > rolename="manager-gui"/>   > rolename="manager-jmx"/>   > rolename="admin-gui"/>   > username="admin" password="admin"
> > roles="manager-gui,manager-script,manager-jmx,manager-status,admin-gui
> ,admin-script"/>
>
> That's
> >
> all of the privileges, which may be considered more than
> necessary. Only the "manager-script" role should be necessary for the
> ant task.
>
> The manager-gui would be necessary to login to /manager and not just
> to use the services provided by /manager/text
>
> - -chris
>
> > On Thu, 19 Dec 2019 at 20:20, Zahid Rahman  > <mailto:zahidr1...@gmail.com>> wrote:
> >
> > I updated tomcat-users.xml  and I am able to login at
> > http://localhost:8080/manager with tomcat & s3cret but at the url
> > http://localhost:8080/manager/text
> >
> >
> > 403 Access Denied
> >
> > You are not authorized to view this page.
> >
> > By default the Manager is only accessible from a browser running
> > on the same machine as Tomcat. If you wish to modify this
> > restriction, you'll need to edit the Manager's context.xml file.
> >
> > If you have already configured the Manager application to allow
> > access and you have used your browsers back button, used a saved
> > book-mark or similar then you may have triggered the cross-site
> > request forgery (CSRF) protection that has been enabled for the
> > HTML interface of the Manager application. You will need to reset
> > this protection by returning to the main Manager page
> > <http://localhost:8080/manager/html>. Once you return to this
> > page, you will be able to continue using the Manager application's
> > HTML interface normally. If you continue to see this access denied
> > message, check that you have the necessary permissions to access
> > this application.
> >
> > If you have not changed any configuration files, please examine
> > the file conf/tomcat-users.xml in your installation. That file
> > must contain the credentials to let you use this webapp.
> >
> > For example, to add the manager-gui role to a user named tomcat
> > with a password of s3cret, add the following to the config file
> > listed above.
> >
> >   > password="s3cret" roles="manager-gui"/>
> >
> > Note that for Tomcat 7 onwards, the roles required to use the
> > manager application were changed from the single manager role to
> > the following four roles. You will need to assign the role(s)
> > required for the functionality you wish to access.
> >
> > * manager-gui - allows access to the HTML GUI and the status pages
> > * manager-script - allows access to the text interface and the
> > status pages * manager-jmx - allows access to the JMX proxy and th

Re: ant install build.xml:372: java.net.ProtocolException: Server redirected too many times (20)

2019-12-19 Thread Zahid Rahman
*SUCCESSS...*

Buildfile: /home/kub18/myapp/build.xml
Trying to override old definition of task javac
Trying to override old definition of datatype resources

prepare:

compile:

install:
   [deploy] OK - Deployed application at context path [/myapp]

BUILD SUCCESSFUL
Total time: 0 seconds

with these changes  in tomcat-users.xml
  
  
  
  
  
  
  




On Thu, 19 Dec 2019 at 20:20, Zahid Rahman  wrote:

> I updated tomcat-users.xml  and I am able to login at
> http://localhost:8080/manager
> with tomcat & s3cret
> but at the url http://localhost:8080/manager/text
> 403 Access Denied
>
> You are not authorized to view this page.
>
> By default the Manager is only accessible from a browser running on the
> same machine as Tomcat. If you wish to modify this restriction, you'll need
> to edit the Manager's context.xml file.
>
> If you have already configured the Manager application to allow access and
> you have used your browsers back button, used a saved book-mark or similar
> then you may have triggered the cross-site request forgery (CSRF)
> protection that has been enabled for the HTML interface of the Manager
> application. You will need to reset this protection by returning to the main
> Manager page <http://localhost:8080/manager/html>. Once you return to
> this page, you will be able to continue using the Manager application's
> HTML interface normally. If you continue to see this access denied message,
> check that you have the necessary permissions to access this application.
>
> If you have not changed any configuration files, please examine the file
> conf/tomcat-users.xml in your installation. That file must contain the
> credentials to let you use this webapp.
>
> For example, to add the manager-gui role to a user named tomcat with a
> password of s3cret, add the following to the config file listed above.
>
> 
> 
>
> Note that for Tomcat 7 onwards, the roles required to use the manager
> application were changed from the single manager role to the following
> four roles. You will need to assign the role(s) required for the
> functionality you wish to access.
>
>- manager-gui - allows access to the HTML GUI and the status pages
>- manager-script - allows access to the text interface and the status
>pages
>- manager-jmx - allows access to the JMX proxy and the status pages
>- manager-status - allows access to the status pages only
>
> The HTML interface is protected against CSRF but the text and JMX
> interfaces are not. To maintain the CSRF protection:
>
>- Users with the manager-gui role should not be granted either the
>manager-script or manager-jmx roles.
>- If the text or jmx interfaces are accessed through a browser (e.g.
>for testing since these interfaces are intended for tools not humans) then
>the browser must be closed afterwards to terminate the session.
>
> For more information - please see the Manager App How-To
> <http://localhost:8080/docs/manager-howto.html>.
>
>
> On Thu, 19 Dec 2019 at 19:51, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA256
>>
>> Zahid,
>>
>> On 12/19/19 14:47, Zahid Rahman wrote:
>> > CVS is working fine.
>>
>> LOL okay
>>
>> > build.properties # Context path to install this application on
>> > app.path=/myapp
>> >
>> > # Tomcat installation directory
>> > catalina.home=/home/kub18/apache-tomcat-9.0.30
>> >
>> > # Manager webapp username and password manager.username=myusername
>> > manager.password=mypassword
>>
>> Is your manager available at this URL:
>>
>> http://localhost:8080/manager/text
>>
>> ??
>>
>> Try using your web browser to see if it works.
>>
>> - -chris
>>
>> > On Thu, 19 Dec 2019 at 18:48, Christopher Schultz
>> > > > <mailto:ch...@christopherschultz.net>> wrote:
>> >
>> > Zahid,
>> >
>> > On 12/19/19 12:57, Zahid Rahman wrote:
>> >> I'm religiously following  the instructions.
>> >
>> > :) Are you using CVS as your revision-control system?
>> >
>> > Someone brought that to our attention recently; that page is
>> > sorely out of date, unfortunately.
>> >
>> >> The build script is the template provided. I have  made only one
>> >> change. Added one tag following  warning. warning:
>> >>> 'includeantruntime' was not set, defaulting to
>> >
>> >> There is only one jsp in the application.
>> >
>> >> I am trying to go through al

Re: ant install build.xml:372: java.net.ProtocolException: Server redirected too many times (20)

2019-12-19 Thread Zahid Rahman
CVS is working fine.

build.properties
# Context path to install this application on
app.path=/myapp

# Tomcat installation directory
catalina.home=/home/kub18/apache-tomcat-9.0.30

# Manager webapp username and password
manager.username=myusername
manager.password=mypassword


On Thu, 19 Dec 2019 at 18:48, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 12/19/19 12:57, Zahid Rahman wrote:
> > I'm religiously following  the instructions.
>
> :) Are you using CVS as your revision-control system?
>
> Someone brought that to our attention recently; that page is sorely
> out of date, unfortunately.
>
> > The build script is the template provided. I have  made only one
> > change. Added one tag following  warning. warning:
> >> 'includeantruntime' was not set, defaulting to
> >
> > There is only one jsp in the application.
> >
> > I am trying to go through all the documents  step by step.
>
> What do you have in your build.properties file? Please remember to
> remove all secrets.
>
> - -chris
>
> > On Thu, 19 Dec 2019, 17:32 Christopher Schultz, <
> > ch...@christopherschultz.net> wrote:
> >
> > Zahid,
> >
> > On 12/19/19 10:09, Zahid Rahman wrote:
> >>>> tomcat document page:
> >>>> https://tomcat.apache.org/tomcat-8.5-doc/appdev/processes.html
> >>>>
> >>>>
> >>>>
> BEFORE TOMCAT STARTED
> >>>>
> >>>> KONSOLE OUTPUT
> >>>>
> >>>> kub18@UB18:~/myapp$ ant install Buildfile:
> >>>> /home/kub18/myapp/build.xml Trying to override old definition
> >>>> of datatype resources
> >>>>
> >>>>
> >>>> prepare:
> >>>>
> >>>>
> >>>> compile: [javac] /home/kub18/myapp/build.xml:293: warning:
> >>>> 'includeantruntime' was not set, defaulting to
> >>>> build.sysclasspath=last; set to false for repeatable builds
> >>>>
> >>>> install:
> >>>>
> >>>> BUILD FAILED /home/kub18/myapp/build.xml:369:
> >>>> java.net.ConnectException: Connection refused (Connection
> >>>> refused) at java.net.PlainSocketImpl.socketConnect(Native
> >>>> Method)
> >>>>
> >>>> AFTER TOMCAT STARTED kub18@UB18:~/apache-tomcat-9.0.30/bin$
> >>>> ./startup.sh Using CATALINA_BASE:
> >>>> /home/kub18/apache-tomcat-9.0.30 Using CATALINA_HOME:
> >>>> /home/kub18/apache-tomcat-9.0.30 Using CATALINA_TMPDIR:
> >>>> /home/kub18/apache-tomcat-9.0.30/temp Using JRE_HOME:
> >>>> /usr Using CLASSPATH:
> >>>> /home/kub18/apache-tomcat-9.0.30/bin/bootstrap.jar:/home/kub18/apac
> he-
> >
> >>>>
> tomcat-9.0.30/bin/tomcat-juli.jar
> >>>>
> >>>>
> >>>>
> >>>> Tomcat started.
> >>>>
> >>>> KONSOLE OUTPUT kub18@UB18:~/myapp$ ant install Buildfile:
> >>>> /home/kub18/myapp/build.xml Trying to override old definition
> >>>> of datatype resources
> >>>>
> >>>> prepare:
> >>>>
> >>>> compile: [javac] /home/kub18/myapp/build.xml:293: warning:
> >>>> 'includeantruntime' was not set, defaulting to
> >>>> build.sysclasspath=last; set to false for repeatable builds
> >>>>
> >>>> install:
> >>>>
> >>>> BUILD FAILED /home/kub18/myapp/build.xml:369:
> >>>> java.net.ProtocolException: Server redirected too many  times
> >>>> (20) at
> >>>> sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURL
> Con
> >
> >>>>
> nection.java:1908)
> >>>>
> >>>> After  inserting
> >>>>
> >>>>  
> >>>> 
> >>>>
> >>>> KONSOLE OUTPUT
> >>>>
> >>>> ant install Buildfile: /home/kub18/myapp/build.xml Trying to
> >>>> override old definition of task javac Trying to override old
> >>>> definition of datatype resources
> >>>>
> >>>> prepare:
> >>>>
> >>>> compile:
> >>>>
> >>>> install:
> >>>>
> >>>> BUILD FAILED /home/kub18/myapp/build.xml:372:
> >>>> java.net.ProtocolException: Server redirected too many  

Re: ant install build.xml:372: java.net.ProtocolException: Server redirected too many times (20)

2019-12-19 Thread Zahid Rahman
I'm religiously following  the instructions.
The build script is the template provided. I have  made only one change.
Added one tag following  warning.
warning:
> 'includeantruntime' was not set, defaulting to

There is only one jsp in the application.

I am trying to go through all the documents  step by step.


On Thu, 19 Dec 2019, 17:32 Christopher Schultz, <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Zahid,
>
> On 12/19/19 10:09, Zahid Rahman wrote:
> > tomcat document page:
> > https://tomcat.apache.org/tomcat-8.5-doc/appdev/processes.html
> >
> > BEFORE TOMCAT STARTED
> >
> > KONSOLE OUTPUT
> >
> > kub18@UB18:~/myapp$ ant install Buildfile:
> > /home/kub18/myapp/build.xml Trying to override old definition of
> > datatype resources
> >
> >
> > prepare:
> >
> >
> > compile: [javac] /home/kub18/myapp/build.xml:293: warning:
> > 'includeantruntime' was not set, defaulting to
> > build.sysclasspath=last; set to false for repeatable builds
> >
> > install:
> >
> > BUILD FAILED /home/kub18/myapp/build.xml:369:
> > java.net.ConnectException: Connection refused (Connection refused)
> > at java.net.PlainSocketImpl.socketConnect(Native Method)
> >
> > AFTER TOMCAT STARTED kub18@UB18:~/apache-tomcat-9.0.30/bin$
> > ./startup.sh Using CATALINA_BASE:
> > /home/kub18/apache-tomcat-9.0.30 Using CATALINA_HOME:
> > /home/kub18/apache-tomcat-9.0.30 Using CATALINA_TMPDIR:
> > /home/kub18/apache-tomcat-9.0.30/temp Using JRE_HOME:/usr
> > Using CLASSPATH:
> > /home/kub18/apache-tomcat-9.0.30/bin/bootstrap.jar:/home/kub18/apache-
> tomcat-9.0.30/bin/tomcat-juli.jar
> >
> >
> >
> > Tomcat started.
> >
> > KONSOLE OUTPUT kub18@UB18:~/myapp$ ant install Buildfile:
> > /home/kub18/myapp/build.xml Trying to override old definition of
> > datatype resources
> >
> > prepare:
> >
> > compile: [javac] /home/kub18/myapp/build.xml:293: warning:
> > 'includeantruntime' was not set, defaulting to
> > build.sysclasspath=last; set to false for repeatable builds
> >
> > install:
> >
> > BUILD FAILED /home/kub18/myapp/build.xml:369:
> > java.net.ProtocolException: Server redirected too many  times (20)
> > at
> > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLCon
> nection.java:1908)
> >
> >  After  inserting
> >
> >  
> > 
> >
> > KONSOLE OUTPUT
> >
> > ant install Buildfile: /home/kub18/myapp/build.xml Trying to
> > override old definition of task javac Trying to override old
> > definition of datatype resources
> >
> > prepare:
> >
> > compile:
> >
> > install:
> >
> > BUILD FAILED /home/kub18/myapp/build.xml:372:
> > java.net.ProtocolException: Server redirected too many  times (20)
> > at
> > sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLCon
> nection.java:1908)
>
> It
> >
> looks like something isn't working with your ant build script, or
> with your application.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl37tDYACgkQHPApP6U8
> pFg6eRAAwZ3a3lERuleFbMQKPUqSCMK+CzEVi5O/9DIqdejvvfSFzYVkTUBhxkRo
> /UkeAw3WgHCAzJ9R9+E1vACiqCsh5dyQIdzQtwXXzDPZUcQzvHwsXcYpaGXVva0D
> uC6wfKG5m2uWto/UZ7RWqdA0pAdOnVexrY8jKR9c027xW+WJ3DU1uLdld4/4VmUO
> 8+irLDDpZheAQcGv8g/GB79uRUZQ6T20EYo01AWCn8S29MeEppsW7+1AbZl8HNuM
> +reb8+1fQPbeSogny4m5R1Zt5/ulKxfCehBJpnsM/ubDGzLLFgKVIcWrbZL0ayGh
> tU1jswDFW6x3lJxM6i6+OMMipAplR9jt7scQx40W8HqMsFCZO7syp1L9feHityem
> xN6CsKL2alkw325Zwq0O43vkqve347JPHs6C4/DIX/B7ydwoWqaV7V6QzZuXZzmK
> hj5GjnoUAhOqBfO+k3y71DFkbxIMa5WAUJARxyAo8Os8EleBApFLH1qoUR9Ov+KV
> sQQRxyYbH+Jt34JVZayZ/mQIlO8A+YYU1U6XgTo73hlwcu1Dnc1z9ldwXEymsAoL
> 3IfBwor7fs66QvPG3DtQMNmzJAsYsubibMRo7I2Yzyz3vVNGPZC0F78aBs9OZ9Gd
> rNl2pznD0wsJMPyUgqErg0qenR5qfJ13AYvRw28yc7Zp3okLmjo=
> =mu23
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


ant install build.xml:372: java.net.ProtocolException: Server redirected too many times (20)

2019-12-19 Thread Zahid Rahman
tomcat document page:
https://tomcat.apache.org/tomcat-8.5-doc/appdev/processes.html

BEFORE TOMCAT STARTED

KONSOLE OUTPUT

kub18@UB18:~/myapp$ ant install
Buildfile: /home/kub18/myapp/build.xml
Trying to override old definition of datatype resources


prepare:


compile:
[javac] /home/kub18/myapp/build.xml:293: warning: 'includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds

install:

BUILD FAILED
/home/kub18/myapp/build.xml:369: java.net.ConnectException: Connection
refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)

AFTER TOMCAT STARTED
kub18@UB18:~/apache-tomcat-9.0.30/bin$ ./startup.sh
Using CATALINA_BASE:   /home/kub18/apache-tomcat-9.0.30
Using CATALINA_HOME:   /home/kub18/apache-tomcat-9.0.30
Using CATALINA_TMPDIR: /home/kub18/apache-tomcat-9.0.30/temp
Using JRE_HOME:/usr
Using CLASSPATH:
/home/kub18/apache-tomcat-9.0.30/bin/bootstrap.jar:/home/kub18/apache-tomcat-9.0.30/bin/tomcat-juli.jar


Tomcat started.

KONSOLE OUTPUT
kub18@UB18:~/myapp$ ant install
Buildfile: /home/kub18/myapp/build.xml
Trying to override old definition of datatype resources

prepare:

compile:
[javac] /home/kub18/myapp/build.xml:293: warning: 'includeantruntime'
was not set, defaulting to build.sysclasspath=last; set to false for
repeatable builds

install:

BUILD FAILED
/home/kub18/myapp/build.xml:369: java.net.ProtocolException: Server
redirected too many  times (20)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1908)

After  inserting



  

KONSOLE OUTPUT

ant install
Buildfile: /home/kub18/myapp/build.xml
Trying to override old definition of task javac
Trying to override old definition of datatype resources

prepare:

compile:

install:

BUILD FAILED
/home/kub18/myapp/build.xml:372: java.net.ProtocolException: Server
redirected too many  times (20)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1908)