Discussion:
Apache failed to initialize connector
Gael REYNOARD
2018-10-03 11:28:52 UTC
Permalink
Hello everybody,

OS : Windows 7 Pro x64
Tomcat : 8.5.31

On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.

I check with the NETSTAT -atonb -p TCP command and I have Tomcat that is
listening to port 8080 (or 9999) and port 8009.

Attached file catalina log

In the log the problem occurred on:
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
NETSTAT Result:

TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 2640
[Tomcat8.exe]

- 02-Oct-2018 10:27:16.722 (port 8080)
NETSTAT Result:

TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 2828
[Tomcat8.exe]

- 02-Oct-2018 12:20:38.289 (port 9999)
NETSTAT Result:

TCP 0.0.0.0:8009 0.0.0.0:0 LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 0.0.0.0:0 LISTENING 2780
[Tomcat8.exe]


Thank you in advance for your help.

Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
***@lafon.fr - www.lafon.fr
Mark Thomas
2018-10-03 13:40:45 UTC
Permalink
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?

Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat that is
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
 
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
*  Gaël REYNOARD* - Ingénieur Recherche & Développement
  Service *Bureau d'étude informatique*
  44 avenue Victor Meunier - 33530 BASSENS
  Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Gael REYNOARD
2018-10-03 13:54:37 UTC
Permalink
Tomcat is installed as a service in Windows with a dependency with the SQL
Server service.

I can also add when I have this problem, if I manually restart the Tomcat8
service, it restarts correctly.

Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat that is
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
Mark Thomas
2018-10-03 14:16:59 UTC
Permalink
Post by Gael REYNOARD
Tomcat is installed as a service in Windows with a dependency with the SQL
Server service.
I can also add when I have this problem, if I manually restart the Tomcat8
service, it restarts correctly.
How are you *starting* Tomcat? Manually starting the service?
Automatically when the OS starts?

Also, what are the contents of the service wrapper logs?

It looks like the service is being started twice and failing (as
expected) the second time. Or you have two Tomcat services trying to use
the same ports. Or ...

Mark
Post by Gael REYNOARD
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat that is
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <http://0.0.0.0:0>
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-mail: users-***@tomcat.apache.org
Gael REYNOARD
2018-10-03 14:56:54 UTC
Permalink
Sorry for my previous answer, I did not give enough details.

So, yes Tomcat start automatically when the OS starts and I only installed
one instance of the Tomcat service.

I thought about this idea of the service that starts twice, but I did not
see anything in the log (commons-daemon.2018-10-02.log) that would indicate
several start of the service.

I just checked the Windows events and I only have one Tomcat service run
every time Windows starts.
This problem does not seem to happen very often because with 102 Windows
starts I only had the problem 3 times.

Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Gael REYNOARD
Post by Gael REYNOARD
Tomcat is installed as a service in Windows with a dependency with the
SQL
Post by Gael REYNOARD
Server service.
I can also add when I have this problem, if I manually restart the
Tomcat8
Post by Gael REYNOARD
service, it restarts correctly.
How are you *starting* Tomcat? Manually starting the service?
Automatically when the OS starts?
Also, what are the contents of the service wrapper logs?
It looks like the service is being started twice and failing (as
expected) the second time. Or you have two Tomcat services trying to use
the same ports. Or ...
Mark
Post by Gael REYNOARD
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat that
is
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <http://0.0.0.0:0
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
www.lafon.fr
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
M. Manna
2018-10-03 15:05:48 UTC
Permalink
it looks like you've bound your port 8009 and 8080 with something else
temporarily during windows startup.It may be some port scanning service or
some firewall/ prevention service is blocking all the ports until some
checks are done. And that is why you have this issue intermittently.

As a verification, you can disable auto startup of tomcat service upon
window start. Upon startup, you can start tomcat manually (repeat it 2-3
times) to confirm that there is no problem.
Post by Gael REYNOARD
Sorry for my previous answer, I did not give enough details.
So, yes Tomcat start automatically when the OS starts and I only installed
one instance of the Tomcat service.
I thought about this idea of the service that starts twice, but I did not
see anything in the log (commons-daemon.2018-10-02.log) that would indicate
several start of the service.
I just checked the Windows events and I only have one Tomcat service run
every time Windows starts.
This problem does not seem to happen very often because with 102 Windows
starts I only had the problem 3 times.
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Gael REYNOARD
Post by Gael REYNOARD
Tomcat is installed as a service in Windows with a dependency with the
SQL
Post by Gael REYNOARD
Server service.
I can also add when I have this problem, if I manually restart the
Tomcat8
Post by Gael REYNOARD
service, it restarts correctly.
How are you *starting* Tomcat? Manually starting the service?
Automatically when the OS starts?
Also, what are the contents of the service wrapper logs?
It looks like the service is being started twice and failing (as
expected) the second time. Or you have two Tomcat services trying to use
the same ports. Or ...
Mark
Post by Gael REYNOARD
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C# applications.
Sometimes after starting the OS, my Tomcat server fails to initialize
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error after
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat that
is
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
www.lafon.fr
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Gael REYNOARD
2018-10-03 15:20:35 UTC
Permalink
Thank you for that answer
The Windows firewall is disabled on my machine, but I will try this method
and I will come back to you if it corrects my problem.

Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by M. Manna
it looks like you've bound your port 8009 and 8080 with something else
temporarily during windows startup.It may be some port scanning service or
some firewall/ prevention service is blocking all the ports until some
checks are done. And that is why you have this issue intermittently.
As a verification, you can disable auto startup of tomcat service upon
window start. Upon startup, you can start tomcat manually (repeat it 2-3
times) to confirm that there is no problem.
Post by Gael REYNOARD
Sorry for my previous answer, I did not give enough details.
So, yes Tomcat start automatically when the OS starts and I only
installed
Post by Gael REYNOARD
one instance of the Tomcat service.
I thought about this idea of the service that starts twice, but I did not
see anything in the log (commons-daemon.2018-10-02.log) that would
indicate
Post by Gael REYNOARD
several start of the service.
I just checked the Windows events and I only have one Tomcat service run
every time Windows starts.
This problem does not seem to happen very often because with 102 Windows
starts I only had the problem 3 times.
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Gael REYNOARD
Post by Gael REYNOARD
Tomcat is installed as a service in Windows with a dependency with the
SQL
Post by Gael REYNOARD
Server service.
I can also add when I have this problem, if I manually restart the
Tomcat8
Post by Gael REYNOARD
service, it restarts correctly.
How are you *starting* Tomcat? Manually starting the service?
Automatically when the OS starts?
Also, what are the contents of the service wrapper logs?
It looks like the service is being started twice and failing (as
expected) the second time. Or you have two Tomcat services trying to use
the same ports. Or ...
Mark
Post by Gael REYNOARD
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C#
applications.
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
Sometimes after starting the OS, my Tomcat server fails to
initialize
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error
after
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat
that
Post by Gael REYNOARD
Post by Gael REYNOARD
is
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
www.lafon.fr
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
<http://www.lafon.fr/>
---------------------------------------------------------------------
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
Gael REYNOARD
2018-10-04 12:45:21 UTC
Permalink
Thank you so much,

I disabled the automatic start of Tomcat service, it is launched a little
later by my program in C #.
After 314 startups of the OS, I did not have any exceptions.

I did not look well enough on the internet because I found this morning a
post (
https://stackoverflow.com/questions/51666952/address-bind-exception-in-tomcat)
from someone with a similar problem and Microsoft would have provided a
solution since july.

My test bench is no longer on the internet for a while, it is not currently
up to date. I will also check this solution by performing a Windows Update
of my PC.

Sorry for the inconvenience and thanks again for your help.

Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Gael REYNOARD
Thank you for that answer
The Windows firewall is disabled on my machine, but I will try this method
and I will come back to you if it corrects my problem.
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by M. Manna
it looks like you've bound your port 8009 and 8080 with something else
temporarily during windows startup.It may be some port scanning service or
some firewall/ prevention service is blocking all the ports until some
checks are done. And that is why you have this issue intermittently.
As a verification, you can disable auto startup of tomcat service upon
window start. Upon startup, you can start tomcat manually (repeat it 2-3
times) to confirm that there is no problem.
Post by Gael REYNOARD
Sorry for my previous answer, I did not give enough details.
So, yes Tomcat start automatically when the OS starts and I only
installed
Post by Gael REYNOARD
one instance of the Tomcat service.
I thought about this idea of the service that starts twice, but I did
not
Post by Gael REYNOARD
see anything in the log (commons-daemon.2018-10-02.log) that would
indicate
Post by Gael REYNOARD
several start of the service.
I just checked the Windows events and I only have one Tomcat service run
every time Windows starts.
This problem does not seem to happen very often because with 102 Windows
starts I only had the problem 3 times.
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Gael REYNOARD
Post by Gael REYNOARD
Tomcat is installed as a service in Windows with a dependency with
the
Post by Gael REYNOARD
Post by Gael REYNOARD
SQL
Post by Gael REYNOARD
Server service.
I can also add when I have this problem, if I manually restart the
Tomcat8
Post by Gael REYNOARD
service, it restarts correctly.
How are you *starting* Tomcat? Manually starting the service?
Automatically when the OS starts?
Also, what are the contents of the service wrapper logs?
It looks like the service is being started twice and failing (as
expected) the second time. Or you have two Tomcat services trying to
use
Post by Gael REYNOARD
Post by Gael REYNOARD
the same ports. Or ...
Mark
Post by Gael REYNOARD
Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C#
applications.
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
Sometimes after starting the OS, my Tomcat server fails to
initialize
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
Post by Gael REYNOARD
I changed the default port 8080 by 9999 and I had the same error
after
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
several reboots of my OS.
I check with the NETSTAT -atonb -p TCP command and I have Tomcat
that
Post by Gael REYNOARD
Post by Gael REYNOARD
is
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
listening to port 8080 (or 9999) and port 8009.
Attached file catalina log
- 02-Oct-2018 03:16:41.364 (port 8080 and 8009)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2640
[Tomcat8.exe]
- 02-Oct-2018 10:27:16.722 (port 8080)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
TCP 0.0.0.0:8080 <http://0.0.0.0:8080> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2828
[Tomcat8.exe]
- 02-Oct-2018 12:20:38.289 (port 9999)
TCP 0.0.0.0:8009 <http://0.0.0.0:8009> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
TCP 0.0.0.0:9999 <http://0.0.0.0:9999> 0.0.0.0:0 <
http://0.0.0.0:0>
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
LISTENING 2780
[Tomcat8.exe]
Thank you in advance for your help.
Best regards,
------------------------------------------------------------------------
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
www.lafon.fr
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
<http://www.lafon.fr/>
---------------------------------------------------------------------
---------------------------------------------------------------------
Post by Gael REYNOARD
Post by Gael REYNOARD
---------------------------------------------------------------------
---------------------------------------------------------------------
Berneburg, Cris J. - US
2018-10-04 17:37:46 UTC
Permalink
Hi Gael
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C#
applications.
Post by Mark Thomas
Post by Gael REYNOARD
Sometimes after starting the OS, my Tomcat server fails to
initialize
Post by Mark Thomas
Post by Gael REYNOARD
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
gr> I disabled the automatic start of Tomcat service,
gr> it is launched a little later by my program in C #.
gr> After 314 startups of the OS, I did not have any exceptions.

gr> I did not look well enough on the internet
gr> because I found this morning a post
gr> (https://stackoverflow.com/questions/51666952/address-bind-exception-in-tomcat)
gr> from someone with a similar problem and Microsoft
gr> would have provided a solution since july.

I have not tried it myself, but have you considered the "Automatic (Delayed Start)" Startup type in your Windows service properties? It's available on my TC service in Windows Server 2012 R2.

This Stack Overflow article says it waits 2 minutes:

https://stackoverflow.com/questions/11015189/automatic-vs-automatic-delayed-start/11015576#11015576
--
Cris Berneburg, Lead Software Engineer
CACI, IRMA Project
phone: 703-679-5313

-----Original Message-----
From: Gael REYNOARD <***@lafon.fr>
Sent: Thursday, October 4, 2018 8:45 AM
To: ***@tomcat.apache.org
Subject: Re: Apache failed to initialize connector

Thank you so much,

[LARGE SNIP]


---------------------------------------------------------------------
To unsubscribe, e-mail: users-***@tomcat.apache.org
For additional commands, e-m
Gael REYNOARD
2018-10-08 07:12:10 UTC
Permalink
Hi Cris,

I had not thought about it, so I also tested this possible solution and it
also solves the problem.

My other test was not conclusive, I carried out the updates of Windows and
that did not change anything, if the service Tomcat starts automatically I
always have the problem.

But I have 2 possibilities to work around this problem:

- Start service manually after starting Windows
- Start service in "Automatic (Delayed Start)"


Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Berneburg, Cris J. - US
Hi Gael
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C#
applications.
Post by Mark Thomas
Post by Gael REYNOARD
Sometimes after starting the OS, my Tomcat server fails to
initialize
Post by Mark Thomas
Post by Gael REYNOARD
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
gr> I disabled the automatic start of Tomcat service,
gr> it is launched a little later by my program in C #.
gr> After 314 startups of the OS, I did not have any exceptions.
gr> I did not look well enough on the internet
gr> because I found this morning a post
gr> (
https://stackoverflow.com/questions/51666952/address-bind-exception-in-tomcat
)
gr> from someone with a similar problem and Microsoft
gr> would have provided a solution since july.
I have not tried it myself, but have you considered the "Automatic
(Delayed Start)" Startup type in your Windows service properties? It's
available on my TC service in Windows Server 2012 R2.
https://stackoverflow.com/questions/11015189/automatic-vs-automatic-delayed-start/11015576#11015576
--
Cris Berneburg, Lead Software Engineer
CACI, IRMA Project
phone: 703-679-5313
-----Original Message-----
Sent: Thursday, October 4, 2018 8:45 AM
Subject: Re: Apache failed to initialize connector
Thank you so much,
[LARGE SNIP]
---------------------------------------------------------------------
Louis Zipes
2018-10-08 12:07:09 UTC
Permalink
Maybe I missed it but what do the Tomcat logs show when you stop and start it?

Also, to further diagnose or get more of the error message you could create a batch file with this in it and put in a PAUSE to see the error message

net stop "<service name>" && net start "<service name>"
PAUSE

-----Original Message-----
From: Gael REYNOARD [mailto:***@lafon.fr]
Sent: Monday, October 08, 2018 3:12 AM
To: ***@tomcat.apache.org
Subject: Re: Apache failed to initialize connector

- - - external message, proceed with caution - - -


Hi Cris,

I had not thought about it, so I also tested this possible solution and it
also solves the problem.

My other test was not conclusive, I carried out the updates of Windows and
that did not change anything, if the service Tomcat starts automatically I
always have the problem.

But I have 2 possibilities to work around this problem:

- Start service manually after starting Windows
- Start service in "Automatic (Delayed Start)"


Best regards,
------------------------------
* Gaël REYNOARD* - Ingénieur Recherche & Développement
Service *Bureau d'étude informatique*
44 avenue Victor Meunier - 33530 BASSENS
Fixe 05.57.80.80.80 - Fax 05.56.31.61.21 - Poste interne 100 235
Post by Berneburg, Cris J. - US
Hi Gael
Post by Gael REYNOARD
Post by Mark Thomas
Post by Gael REYNOARD
Hello everybody,
OS : Windows 7 Pro x64
Tomcat : 8.5.31
On a test bench, I reboot Windows to test one of our C#
applications.
Post by Mark Thomas
Post by Gael REYNOARD
Sometimes after starting the OS, my Tomcat server fails to
initialize
Post by Mark Thomas
Post by Gael REYNOARD
because the 8080 or 8009 port would be already used.
How are you starting Tomcat?
Mark
gr> I disabled the automatic start of Tomcat service,
gr> it is launched a little later by my program in C #.
gr> After 314 startups of the OS, I did not have any exceptions.
gr> I did not look well enough on the internet
gr> because I found this morning a post
gr> (
https://stackoverflow.com/questions/51666952/address-bind-exception-in-tomcat
)
gr> from someone with a similar problem and Microsoft
gr> would have provided a solution since july.
I have not tried it myself, but have you considered the "Automatic
(Delayed Start)" Startup type in your Windows service properties? It's
available on my TC service in Windows Server 2012 R2.
https://stackoverflow.com/questions/11015189/automatic-vs-automatic-delayed-start/11015576#11015576
--
Cris Berneburg, Lead Software Engineer
CACI, IRMA Project
phone: 703-679-5313
-----Original Message-----
Sent: Thursday, October 4, 2018 8:45 AM
Subject: Re: Apache failed to initialize connector
Thank you so much,
[LARGE SNIP]
---------------------------------------------------------------------
---------------------------------------
CONFIDENTIALITY NOTICE: This message is for intended addressee(s) only and may contain information that is confidential, proprietary or exempt from disclosure. If you are not the intended recipient, please contact the sender immediately. Unauthorized use or distribution is prohibited and may be unlawful.
Т���������������������������������������������������������������������ХF�V�7V'67&�&R�R���âW6W'2�V�7V'67&�&TF��6B�6�R��&pФf�"FF�F����6����G2�R
Loading...