commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kanaga Ganesan (kanagane)" <kanag...@cisco.com>
Subject Re: Commons Daemon (jsvc) fails to bind on port 443 on JRE11
Date Mon, 15 Jul 2019 11:31:16 GMT
No. Also as you can see the stack trace,

Caused by: java.net.SocketException<http://java.net.socketexception/>: Permission denied
    >     >         at sun.nio.ch.Net.bind0(Native<http://sun.nio.ch.net.bind0(native/>Method)
    >     >         at sun.nio.ch.Net.bind(Net.java:433<http://sun.nio.ch.net.bind(net.java:433/>)
    >     >         at sun.nio.ch.Net.bind(Net.java:425<http://sun.nio.ch.net.bind(net.java:425/>)

It says "permission denied" to bind to port 443.

Regards,
Kanaga.


´╗┐On 15/07/19, 4:52 PM, "Maxim Solodovnik" <solomax666@gmail.com> wrote:

    Is it possible port 443 is already being used by some other service?
    
    On Mon, 15 Jul 2019 at 18:05, Kanaga Ganesan (kanagane)
    <kanagane@cisco.com> wrote:
    >
    > Hi Maxim,
    >
    > Thanks for the quick response.
    >         "You need to be `root` to use ports below 1000" - Though commons daemon(jsvc)
is used to get the root privilege, start the server and downgrade the privilege at later point
of time, binding on port 443 fails. Also, exception is not seen for port 80 which is also
a reserved port.
    >
    > Regards,
    > Kanaga.
    >
    > On 15/07/19, 4:10 PM, "Maxim Solodovnik" <solomax666@gmail.com> wrote:
    >
    >     You need to be `root` to use ports below 1000 ....
    >
    >     On Mon, 15 Jul 2019 at 17:38, Krishna Chaitanya Koppisetty (kchaitan)
    >     <kchaitan@cisco.com> wrote:
    >     >
    >     > Hi,
    >     >
    >     > I tried compiling the commons daemon 1.2.0 source with jdk 11.  When configured
on apache tomcat version 9.0.16 with JRE11, the tomcat server fails to come up.  It fails
to bind on port 443 with java.net.SocketException.
    >     >
    >     > Can you please help use resolve this.
    >     >
    >     > 12-Jul-2019 07:10:08.994 INFO [main] org.apache.coyote.AbstractProtocol.start
Starting ProtocolHandler ["http-nio-80"]
    >     > 12-Jul-2019 07:10:09.001 INFO [main] org.apache.coyote.AbstractProtocol.start
Starting ProtocolHandler ["https-jsse-nio-443"]
    >     > 12-Jul-2019 07:10:09.002 SEVERE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException
Failed to start component [Connector[HTTP/1.1-443]]
    >     > at org.apache.catalina.connector.Connector.startInternal(Connector.java:1008)
    >     >         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    >     >         at org.apache.catalina.core.StandardService.startInternal(StandardService.java:440)
    >     >         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    >     >         at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:928)
    >     >         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
    >     >         at org.apache.catalina.startup.Catalina.start(Catalina.java:638)
    >     >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >     >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    >     >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    >     >         at java.lang.reflect.Method.invoke(Method.java:498)
    >     >         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
    >     >         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    >     >         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    >     >         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    >     >         at java.lang.reflect.Method.invoke(Method.java:498)
    >     >         at org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java:241)
    >     > Caused by: java.net.SocketException<http://java.net.socketexception/>:
Permission denied
    >     >         at sun.nio.ch.Net.bind0(Native<http://sun.nio.ch.net.bind0(native/>Method)
    >     >         at sun.nio.ch.Net.bind(Net.java:433<http://sun.nio.ch.net.bind(net.java:433/>)
    >     >         at sun.nio.ch.Net.bind(Net.java:425<http://sun.nio.ch.net.bind(net.java:425/>)
    >     >         at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223<http://sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:223/>)
    >     >         at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74<http://sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:74/>)
    >     >         at org.apache.tomcat.util.net.NioEndpoint.initServerSocket(NioEndpoint.java:236<http://org.apache.tomcat.util.net.nioendpoint.initserversocket(nioendpoint.java:236/>)
    >     >         at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:210<http://org.apache.tomcat.util.net.nioendpoint.bind(nioendpoint.java:210/>)
    >     >         at org.apache.tomcat.util.net.AbstractEndpoint.bindWithCleanup(AbstractEndpoint.java:1085<http://org.apache.tomcat.util.net.abstractendpoint.bindwithcleanup(abstractendpoint.java:1085/>)
    >     >         at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1171<http://org.apache.tomcat.util.net.abstractendpoint.start(abstractendpoint.java:1171/>)
    >     >         at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:568)
    >     >         at org.apache.catalina.connector.Connector.startInternal(Connector.java:1005)
    >     >         ... 16 more
    >     >
    >     >
    >     > Regards,
    >     > Krishna Chaitanya.
    >
    >
    >
    >     --
    >     WBR
    >     Maxim aka solomax
    >
    >
    
    
    -- 
    WBR
    Maxim aka solomax
    


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org

Mime
View raw message