Re: Fwd: tomcat automatically binds it to 0.0.0.0 from 127.0.0.1

2017-06-20 Thread Rakesh Java
Yes, It doesnt happens everytime and cannot reproducable

Any guess why this is happening ?

On Tue, Jun 20, 2017 at 7:01 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Rakesh,
>
> On 6/19/17 12:43 AM, Rakesh Java wrote:
> > Below is my netstat showing port bindings tcp 0 0 0.0.0.0:1234
> > 0.0.0.0:* LISTEN
>
> That doesn't show the pid or binary bound to port 1234.
>
> With this configuration:
>
> protocol="org.apache.coyote.http11.Http11NioProtocol"
> address="127.0.0.1"
>  secure="false"
> URIEncoding="UTF-8"
>executor="tomcatThreadPool" />
>
> I get a socket bound to 127.0.0.1:8216:
>
> > tcp6   0  0 127.0.0.1:8217  :::*   LISTEN
> > 8183/java
>
> ... but when I use this:
>
> protocol="org.apache.coyote.http11.Http11NioProtocol"
>  secure="false"
> URIEncoding="UTF-8"
>executor="tomcatThreadPool" />
>
> > tcp6   0  0 :::8217 :::*   LISTEN
> > 20591/java
>
> Environment:
> Tomcat 8.5.15
> Oracle Java 1.8.0_101 (most important factor)
> Linux kernel 2.6.32
>
> I'm not sure why it's not working for you. The Tomcat version
> shouldn't matter very much, since everything goes down to the JVM.
>
> - -chris
>
> > On Fri, Jun 16, 2017 at 9:55 PM, Christopher Schultz <
> > ch...@christopherschultz.net> wrote:
> >
> > Rakesh,
> >
> > On 6/16/17 5:48 AM, Rakesh Java wrote:
> >>>> I have made a port( example 1234) to be bound to the local
> >>>> host 127.0.0.1 .But when i restart tomcat automatically binds
> >>>> it to 0.0.0.0 .
> >>>>
> >>>>
> >>>> And my connector in server.xml contains 127.0.0.1 as address
> >>>> .
> >>>>
> >>>>  >>>> address="127.0.0.1" protocol="HTTP ...>
> >>>>
> >>>> My Tomcat Version
> >>>>
> >>>> Server version: Apache Tomcat/6.0.48 Server built:   Dec 12
> >>>> 2016 14:06:06 UTC Server number:  6.0.48.0 OS Name:
> >>>> Linux JVM Version:1.8.0_111-b15 JVM Vendor: Oracle
> >>>> Corporation
> >>>>
> >>>>
> >>>>
> >>>> Logs in Tomcat
> >>>>
> >>>> May 03, 2017 1:58:19 PM
> >>>> org.apache.coyote.http11.Http11AprProtocol destroy INFO:
> >>>> Stopping Coyote HTTP/1.1 on http-127.0.0.1-1234 ...
> >>>> ... May 03, 2017 1:58:49 PM
> >>>> org.apache.coyote.http11.Http11AprProtocol init INFO:
> >>>> Initializing Coyote HTTP/1.1 on http-0.0.0.0-1234
> >>>>
> >>>> Can some one say why this issue is happening ? Best Regards,
> >>>> Rakesh :-)
> >
> > Please show the netstat showing your port bindings.
> >
> > -chris
> >>
> >> -
> >>
> >>
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> >> For additional commands, e-mail: users-h...@tomcat.apache.org
> >>
> >>
> >
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllJI8oACgkQHPApP6U8
> pFgLwQ/9H1GT8TKCfrQtyiDJTxYqzEv6u6O/ZFvub1pqgFGuzPN61qUD+QB8Kl2R
> iTM3VoxTYqlH15ZgSV5Roms6l6O9Hw6yZnFG9ooIp7Aerbc7uFJq6y57hmDVf3hd
> t8661gYajju4Z00WJ7y7o6SGTWVox6PUz6yyBHKSOpPmGJkN0Nauxiumh2dk9Mcv
> xPVAmVyzmIwiU8lb4EehCuYRBhviNxC9YvXjlBQ8sf8lswpEq7D6uH++Ye3LfgW9
> GecW0POSU3CpJM5bk6Rm/Dm9f3UBR9VgnGRxb9v5YGJE2JKZ7/n7p0yHr24I81RE
> rTGmA6AThP/nndCFKkc4tOFxDTTNSqXdSCyVrYP21Mgd/Ezx+vZNIN1hDJk3nMlM
> S3e95zQHfaZtrfXscSkBhRKq5bUMxK367vv+t649UWlfk+kY1cp93NIWxaTTES1q
> 7BU2bl67E0hfTj9XtKcFlUJ9e5BCpB8KXXUai1h9/ZCPW9fGdaOrVIhTrC6cPYPW
> 965dxjA+8i+O9suzLSVk/6R185WpKuiRSCsJdRwZt+4buS/8mQ/GmNJwa3mWBRgY
> CNBY9JocEagXvMw1j0VGghcs6pJYd3DISur9Q+zRLInkA8cIWWAK+cai8CxmhpO3
> jYiv6j8NmnVOjKlu4XDflOg3jL5D1DCO6QlgQRtlY6uh7Psym7Y=
> =KCBo
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Fwd: tomcat automatically binds it to 0.0.0.0 from 127.0.0.1

2017-06-18 Thread Rakesh Java
Hi Chris,

Below is my netstat showing port bindings
tcp 0 0 0.0.0.0:1234 0.0.0.0:* LISTEN

On Fri, Jun 16, 2017 at 9:55 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Rakesh,
>
> On 6/16/17 5:48 AM, Rakesh Java wrote:
> > I have made a port( example 1234) to be bound to the local host
> > 127.0.0.1 .But when i restart tomcat automatically binds it to
> > 0.0.0.0 .
> >
> >
> > And my connector in server.xml contains 127.0.0.1 as address .
> >
> >  > address="127.0.0.1" protocol="HTTP ...>
> >
> > My Tomcat Version
> >
> > Server version: Apache Tomcat/6.0.48 Server built:   Dec 12 2016
> > 14:06:06 UTC Server number:  6.0.48.0 OS Name:Linux JVM
> > Version:1.8.0_111-b15 JVM Vendor: Oracle Corporation
> >
> >
> >
> > Logs in Tomcat
> >
> > May 03, 2017 1:58:19 PM org.apache.coyote.http11.Http11AprProtocol
> > destroy INFO: Stopping Coyote HTTP/1.1 on http-127.0.0.1-1234
> > ... ... May 03, 2017 1:58:49 PM
> > org.apache.coyote.http11.Http11AprProtocol init INFO: Initializing
> > Coyote HTTP/1.1 on http-0.0.0.0-1234
> >
> > Can some one say why this issue is happening ? Best Regards, Rakesh
> > :-)
>
> Please show the netstat showing your port bindings.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllEBnMACgkQHPApP6U8
> pFhIVBAAudSGcWGtW1Dld625XlC+r3qnP+uis4xPlHrV5dOtADZ3ITNdVSmLAhEV
> bR6E/Hi5JhOBx3P5bjcZwSmvI1717eFVZIqBzQDncXaBQNRjcZ7oEQ4nFCA2f+Y/
> lXKxivugy6Rl+a5XcbY7eJQ7JcUD9rL7takxlrV3Va490P9CTOLZzcGnlt7aeWzS
> Wf73tln7xqLxY8II5e5CutbrzT0+HAej/ItZEE5tOZNcq9QADvVjJYuaO0hq1j5r
> mkNb9//EfehD0aGJBoZ47OP1UympkBuR/jJ86zaCWsUkvjovX922iw8VEr/8oZSG
> K2hvHHkJpu4ITliRA2iWzw5p9EYsx8orqqKEbfRsfWG5Fep9w4Y+bz7hvx6w+NUt
> yE21zBjrxh5nipBFwmopoYkHO8ZyH7hoCqNkOtpV2zCcngW4IJxS2nOCyQQKz/MM
> d48+vWbDi6xMrb79l+mpGookMSA3Eie+sxmvS5/pKHY2G1r+QtJzGoR3UemPzzVr
> gzbEJ/AKyYhNrpDObWw3GlNZGCXjsgnDnvRGnDmZXQ1Ajj+7kv0TUirltMzJnGUO
> iagg9AcoAWa5VXkAcZBIecn2CK/klDIPgcassq9cb5PoJwIA2rh9/iSSsvBuh6sQ
> ne/bWQxBbaQAjzqCjncijqvPziR7vW/soIray4e3fiix9pgC3Fs=
> =x5df
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Fwd: tomcat automatically binds it to 0.0.0.0 from 127.0.0.1

2017-06-16 Thread Rakesh Java
Hi

I have made a port( example 1234) to be bound to the local host
127.0.0.1 .But when i restart tomcat automatically binds it to 0.0.0.0
.


And my connector in server.xml contains 127.0.0.1 as address .


Fwd: tomcat automatically binds it to 0.0.0.0 from 127.0.0.1

2017-06-16 Thread Rakesh Java
Hi

I have made a port( example 1234) to be bound to the local host
127.0.0.1 .But when i restart tomcat automatically binds it to 0.0.0.0
.


And my connector in server.xml contains 127.0.0.1 as address .


Tomcat 6 lib jars

2013-12-05 Thread Patel, Rakesh (Java)
Hi,

I've come across lots of duplicate jars in the tomcat/lib directory on the 
servers we have been given by our infrastructure people.

The directory looks like this:

-rw-r--r-- 1 root root   15153 Jul 20  2011 annotations-api-6.0.24.jar
lrwxrwxrwx 1 root root  26 Oct 29 17:05 annotations-api.jar - 
annotations-api-6.0.24.jar
-rw-r--r-- 1 root root 1205728 Jul 20  2011 catalina-6.0.24.jar
-rw-r--r-- 1 root root   54149 Jul 20  2011 catalina-ant-6.0.24.jar
lrwxrwxrwx 1 root root  23 Oct 29 17:05 catalina-ant.jar - 
catalina-ant-6.0.24.jar
-rw-r--r-- 1 root root  130751 Jul 20  2011 catalina-ha-6.0.24.jar
lrwxrwxrwx 1 root root  22 Oct 29 17:05 catalina-ha.jar - 
catalina-ha-6.0.24.jar
lrwxrwxrwx 1 root root  19 Oct 29 17:05 catalina.jar - catalina-6.0.24.jar
-rw-r--r-- 1 root root  235744 Jul 20  2011 catalina-tribes-6.0.24.jar
lrwxrwxrwx 1 root root  26 Oct 29 17:05 catalina-tribes.jar - 
catalina-tribes-6.0.24.jar
lrwxrwxrwx 1 root root  39 Oct 29 17:05 commons-collections.jar - 
/usr/share/java/commons-collections.jar
lrwxrwxrwx 1 root root  32 Oct 29 17:05 commons-dbcp.jar - 
/usr/share/java/commons-dbcp.jar
lrwxrwxrwx 1 root root  32 Oct 29 17:05 commons-pool.jar - 
/usr/share/java/commons-pool.jar
-rw-r--r-- 1 root root  533217 Jul 20  2011 jasper-6.0.24.jar
-rw-r--r-- 1 root root  108903 Jul 20  2011 jasper-el-6.0.24.jar
lrwxrwxrwx 1 root root  20 Oct 29 17:05 jasper-el.jar - 
jasper-el-6.0.24.jar
lrwxrwxrwx 1 root root  17 Oct 29 17:05 jasper.jar - jasper-6.0.24.jar
lrwxrwxrwx 1 root root  23 Oct 29 17:05 jasper-jdt.jar - 
/usr/share/java/ecj.jar
lrwxrwxrwx 1 root root  25 Oct 29 17:05 log4j.jar - 
/usr/share/java/log4j.jar
lrwxrwxrwx 1 root root  33 Oct 29 17:05 mx4j-jmx.jar - 
/usr/share/java/mx4j/mx4j-jmx.jar
lrwxrwxrwx 1 root root  36 Oct 29 17:05 mx4j-remote.jar - 
/usr/share/java/mx4j/mx4j-remote.jar
-rw-r--r-- 1 root root  832960 Oct 29 17:07 mysql-connector-java-5.1.22-bin.jar
lrwxrwxrwx 1 root root  59 Oct 29 17:07 mysql-connector-java.jar - 
/usr/share/java/tomcat6/mysql-connector-java-5.1.22-bin.jar
-rw-r--r-- 1 root root   26083 Oct 29 17:07 slf4j-api-1.7.2.jar
lrwxrwxrwx 1 root root  43 Oct 29 17:07 slf4j-api.jar - 
/usr/share/java/tomcat6/slf4j-api-1.7.2.jar
-rw-r--r-- 1 root root8819 Oct 29 17:07 slf4j-log4j12-1.7.2.jar
lrwxrwxrwx 1 root root  47 Oct 29 17:07 slf4j-log4j12.jar - 
/usr/share/java/tomcat6/slf4j-log4j12-1.7.2.jar
lrwxrwxrwx 1 root root  32 Oct 29 17:05 tomcat6-el-2.1-api-6.0.24.jar - 
../tomcat6-el-2.1-api-6.0.24.jar
lrwxrwxrwx 1 root root  33 Oct 29 17:05 tomcat6-jsp-2.1-api-6.0.24.jar - 
../tomcat6-jsp-2.1-api-6.0.24.jar
lrwxrwxrwx 1 root root  37 Oct 29 17:05 tomcat6-servlet-2.5-api-6.0.24.jar 
- ../tomcat6-servlet-2.5-api-6.0.24.jar
-rw-r--r-- 1 root root  768357 Jul 20  2011 tomcat-coyote-6.0.24.jar
lrwxrwxrwx 1 root root  24 Oct 29 17:05 tomcat-coyote.jar - 
tomcat-coyote-6.0.24.jar
-rw-r--r-- 1 root root   69826 Jul 20  2011 tomcat-i18n-es-6.0.24.jar
lrwxrwxrwx 1 root root  25 Oct 29 17:05 tomcat-i18n-es.jar - 
tomcat-i18n-es-6.0.24.jar
-rw-r--r-- 1 root root   51772 Jul 20  2011 tomcat-i18n-fr-6.0.24.jar
lrwxrwxrwx 1 root root  25 Oct 29 17:05 tomcat-i18n-fr.jar - 
tomcat-i18n-fr-6.0.24.jar
-rw-r--r-- 1 root root   54441 Jul 20  2011 tomcat-i18n-ja-6.0.24.jar
lrwxrwxrwx 1 root root  25 Oct 29 17:05 tomcat-i18n-ja.jar - 
tomcat-i18n-ja-6.0.24.jar
lrwxrwxrwx 1 root root  38 Oct 29 17:05 tomcat-juli.jar - 
/usr/share/tomcat6/bin/tomcat-juli.jar

You'll notice generic jar names sum linked to specific jars AND the specific 
jar also in the directory. 

Is this harmless? Or should I ask for a 'cleaner' install from the apache 
website? I believe this installation comes from the central CentOS6 repository.

Thanks

Rakesh
Information in this email including any attachments may be privileged, 
confidential and is intended exclusively for the addressee. The views expressed 
may not be official policy, but the personal views of the originator. If you 
have received it in error, please notify the sender by return e-mail and delete 
it from your system. You should not reproduce, distribute, store, retransmit, 
use or disclose its contents to anyone. Please note we reserve the right to 
monitor all e-mail communication through our internal and external networks. 
SKY and the SKY marks are trademarks of British Sky Broadcasting Group plc and 
Sky International AG and are used under licence. British Sky Broadcasting 
Limited (Registration No. 2906991), Sky-In-Home Service Limited (Registration 
No. 2067075) and Sky Subscribers Services Limited (Registration No. 2340150) 
are direct or indirect subsidiaries of British Sky Broadcasting Group plc 
(Registration No. 2247735). All of the companies mentioned in this paragraph 
are incorporated in England and Wales and share the same registered office at 
Grant Way, Isleworth, Middlesex TW7 5QD.