Re: Under system account, Tomcat starts even with shutdown port conflict

2017-06-09 Thread Tou Vue
Found out this is working as designed.

You can follow the link to where I answered my own question...
https://stackoverflow.com/questions/44400047/starting-
tomcat-with-local-user-causes-jvm-bind-exception/2109#2109

According to https://msdn.microsoft.com/en-us/library/windows/desktop/
ms740621(v=vs.85).aspx

If both application are in the same user context then both can bind to the
same port if one of the application is using the invalid address. (0.0.0.0)

If both application are in different user context then we get the exception.
Thank You,

*Tou Vue*


Re: Under system account, Tomcat starts even with shutdown port conflict

2017-06-08 Thread Tou Vue
Tomcat was able to access the same port if I turned off the other service.
So I don't think it's protected.

Thank You,
Tou Vue

On Thu, Jun 8, 2017 at 10:26 AM, Coty Sutherland <csuth...@redhat.com>
wrote:

> On Thu, Jun 8, 2017 at 11:21 AM, Tou Vue <tvue0...@gmail.com> wrote:
> > Hello,
> >
> > I have a question regarding how Tomcat starts up under the system account
> > and local user account in Windows. I had a Tomcat service that would
> start
> > fine under the system account, but once I configured it to start under
> the
> > local user account, I received a JVM_Bind exception. I looks like the
> > Tomcat was not able to access the shutdown port configured.
> >
> > I figured it was a port conflict, another service was using the same
> port.
> > So, I changed the port so there was no conflict, and Tomcat started up
> okay
> > again. But I'm still wondering why Tomcat was able to start up with the
> > system account even with the same port conflict.
>
> Are you sure it was a port conflict and that the port wasn't somehow
> protected by the OS?
>
> > Any suggestions would be appreciated.
> >
> > Thank You,
> > Tou Vue
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Under system account, Tomcat starts even with shutdown port conflict

2017-06-08 Thread Tou Vue
Hello,

I have a question regarding how Tomcat starts up under the system account
and local user account in Windows. I had a Tomcat service that would start
fine under the system account, but once I configured it to start under the
local user account, I received a JVM_Bind exception. I looks like the
Tomcat was not able to access the shutdown port configured.

I figured it was a port conflict, another service was using the same port.
So, I changed the port so there was no conflict, and Tomcat started up okay
again. But I'm still wondering why Tomcat was able to start up with the
system account even with the same port conflict.

Any suggestions would be appreciated.

Thank You,
Tou Vue