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 gael.reyno...@lafon.fr - www.lafon.fr Le mer. 3 oct. 2018 à 17:20, Gael REYNOARD <gael.reyno...@lafon.fr> a écrit : > 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 > gael.reyno...@lafon.fr - www.lafon.fr > > > Le mer. 3 oct. 2018 à 17:06, M. Manna <manme...@gmail.com> a écrit : > >> 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. >> >> >> On Wed, 3 Oct 2018 at 15:57, Gael REYNOARD <gael.reyno...@lafon.fr> >> wrote: >> >> > 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 >> > gael.reyno...@lafon.fr - www.lafon.fr >> > >> > >> > Le mer. 3 oct. 2018 à 16:17, Mark Thomas <ma...@apache.org> a écrit : >> > >> >> On 03/10/18 14:54, Gael REYNOARD wrote: >> >> > 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 >> >> >> >> >> >> > >> >> > 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 >> >> > gael.reyno...@lafon.fr - www.lafon.fr >> >> > >> >> > >> >> > Le mer. 3 oct. 2018 à 15:40, Mark Thomas <ma...@apache.org> a écrit >> : >> >> > >> >> >> On 03/10/18 12:28, Gael REYNOARD wrote: >> >> >>> 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 >> >> >> >> >> >> >> >> >>> 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 <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) >> >> >>> NETSTAT Result: >> >> >>> >> >> >>> 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) >> >> >>> NETSTAT Result: >> >> >>> >> >> >>> 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 >> >> >>> gael.reyno...@lafon.fr <mailto:gael.reyno...@lafon.fr> - >> >> www.lafon.fr >> >> >>> <http://www.lafon.fr/> >> >> >>> >> >> >>> >> >> >>> >> >> >>> >> --------------------------------------------------------------------- >> >> >>> 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 >> >> >> >> >> >> >> >> > >> >> >> >> >> >> --------------------------------------------------------------------- >> >> 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 >> >