Server 'active' but not loading on port 80. authbind possibly not working?

771 views
Skip to first unread message

Joseph

unread,
Jun 23, 2017, 8:12:36 AM6/23/17
to webanno-user
Quick question. I have simply changed the '18080' to '80' in the init.d file and conf/server.xml  files. When i run the command 'service webanno status' it says my server is active (displays it in the same way as when it is working on port 18080), however, it doesn't show up in my browser when using: http://localhost/webanno

My catalina.out file says:
SEVERE: Failed to initialize connector [Connector[HTTP/1.1-80]]
org.apache.catalina.LifecycleException: Failed to initialize component [Connector[HTTP/1.1-80]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:106)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:567)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:842)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:576)
at org.apache.catalina.startup.Catalina.load(Catalina.java:599)
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.load(Bootstrap.java:310)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:484)
Caused by: org.apache.catalina.LifecycleException: Protocol handler initialization failed
at org.apache.catalina.connector.Connector.initInternal(Connector.java:962)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
... 12 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:730)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:456)
at org.apache.coyote.http11.AbstractHttp11JsseProtocol.init(AbstractHttp11JsseProtocol.java:120)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:960)
... 13 more

At the bottom of the log file it says 'webanno.war has finished in XXXXms', and 'INFO: server startup in XXXXms', suggesting it has loaded. I assume it is working behind the scenes, but can't be accessed via a port. Is it possible authbind isn't working properly? It also says 'address already in use' but I have no other servers running....

Thanks,
J

Richard Eckart de Castilho

unread,
Jun 23, 2017, 11:36:26 AM6/23/17
to Joseph, webanno-user

> On 23.06.2017, at 14:12, Joseph <josephw...@gmail.com> wrote:
>
> Quick question. I have simply changed the '18080' to '80' in the init.d file and conf/server.xml files. When i run the command 'service webanno status' it says my server is active (displays it in the same way as when it is working on port 18080), however, it doesn't show up in my browser when using: http://localhost/webanno.
>
> My catalina.out file says:
> Caused by: java.net.BindException: Address already in use
>
> At the bottom of the log file it says 'webanno.war has finished in XXXXms', and 'INFO: server startup in XXXXms', suggesting it has loaded. I assume it is working behind the scenes, but can't be accessed via a port. Is it possible authbind isn't working properly? It also says 'address already in use' but I have no other servers running....

Well, apparently you have. Try running "netstat -tnlp" as root to see which processes are running on which ports. That should help you finding out why port 80 is blocked.

-- Richard

Reply all
Reply to author
Forward
0 new messages