Probs on Win/Tomcat conflict w IIS/cannot Bind

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Probs on Win/Tomcat conflict w IIS/cannot Bind

Post by Jaymer »

Windows Upcloud Server with MUTLIPLE IPs

IIS (which is running other sites on the server) binds to ALL IPs, but there are ways to override this
Tomcat wants to ALSO bind to ALL IPs, UNLESS you specify an address in the server.xml <CONNECTOR> tag

Have tried this.
Using port 8080, Tomcat will boot just fine - nothing else on the server wants 8080

BUT, try to specify a single address and Tomcat will not boot - even when netstat and currports.exe show nothing is listening on that address at 8080
(a few netbios ports 135-139 are being monitored by system)

AND try to change 8080 to 80 and the dreaded "cannot bind" - which, makes sense because Tomcat is trying to bind ALL IPs - and some are actively in use by IIS, so "cannot bind" makes sense

When Tomcat is running on 8080, see this:
Screen Shot 2020-01-15 at 2.15.33 AM.png
Screen Shot 2020-01-15 at 2.15.33 AM.png (12.24 KiB) Viewed 2194 times
Again, this confirms its binding to ALL Addresses - and why I cannot get it to do 80.
BUT I SHOULD BE ABLE to specify a single address - which, after testing, I feel that possibly there's a bug in Aware's boot sequence.
We usually look for "the green box" when starting aware [on Windows] ... all is good. But when I specify an address, I never get the green box. The server DOES however work for several minutes - log into aware - all is good - and then the control panel will barf and say "Tomcat could not start" - which, of course it DID cause I logged in - but maybe something is incorrect in the script and it times out and then barfs.
Look here, I had MANY connections to the server from my desktop - the only IP port 8080 is bound to is my correct IP ...42.42
Screen Shot 2020-01-15 at 2.28.54 AM.png
Screen Shot 2020-01-15 at 2.28.54 AM.png (36.63 KiB) Viewed 2194 times
Here it is before I ever logged in - see the diff from the 1st image? Java/Tomcat is only bound to that single IP, not ALL server-wide IPs... yet, Aware's boot script will fail.
Screen Shot 2020-01-15 at 2.32.38 AM.png
Screen Shot 2020-01-15 at 2.32.38 AM.png (11.31 KiB) Viewed 2194 times
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Jaymer
Posts: 2430
Joined: Tue Jan 13, 2015 10:58 am
Location: Tampa, FL
Contact:

Oh...

Post by Jaymer »

And BTW, it COULD attach to port 80, so its not a IIS issue (once you've made sure to not have IIS hog all IPs).
Here you can see that TOMCAT IS CONNECTED TO PORT 80
Screen Shot 2020-01-15 at 2.38.23 AM.png
Screen Shot 2020-01-15 at 2.38.23 AM.png (8.44 KiB) Viewed 2192 times
But because no "address" was specified, it couldn't bind to "All 80s", so the "bind" error comes up.
Of course, this only lasts a few mins until the boot script times out.
Click Here to see a collection of my tips & hacks on this forum. Or search for "JaymerTip" in the search bar at the top.

Jaymer
Aware Programming & Consulting - Tampa FL
Post Reply