java - Cant start tomcat with spring boot on linux -



java - Cant start tomcat with spring boot on linux -

suddenly cant start embedded tomcat.

i get:

[main] error o.a.coyote.http11.http11nioprotocol - failed start end point associated protocolhandler ["http-nio-86"] java.net.socketexception: permission denied

i tried changing tomcat port, tried setting permissions: chmod 777 src/ -r

i utilize linux mint 17

i have no thought do...

this stacktrace:

[main] error o.a.coyote.http11.http11nioprotocol - failed start end point associated protocolhandler ["http-nio-86"] java.net.socketexception: permission denied @ sun.nio.ch.net.bind0(native method) ~[na:1.7.0_67] @ sun.nio.ch.net.bind(net.java:444) ~[na:1.7.0_67] @ sun.nio.ch.net.bind(net.java:436) ~[na:1.7.0_67] @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:214) ~[na:1.7.0_67] @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:74) ~[na:1.7.0_67] @ org.apache.tomcat.util.net.nioendpoint.bind(nioendpoint.java:473) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.tomcat.util.net.abstractendpoint.start(abstractendpoint.java:647) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.coyote.abstractprotocol.start(abstractprotocol.java:449) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.connector.connector.startinternal(connector.java:1007) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:459) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:731) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.startup.tomcat.start(tomcat.java:341) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.initialize(tomcatembeddedservletcontainer.java:79) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.<init>(tomcatembeddedservletcontainer.java:69) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.gettomcatembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:270) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.getembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:145) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:159) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:132) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:476) [spring-context-4.0.3.release.jar:4.0.3.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:120) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.refresh(springapplication.java:648) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:311) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:909) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:898) [spring-boot-1.0.2.release.jar:1.0.2.release] @ com.company.webapplication.main(webapplication.java:23) [classes/:na] - 2014-10-30 10:30:51,609 [main] error o.a.catalina.core.standardservice - failed start connector [connector[org.apache.coyote.http11.http11nioprotocol-86]] org.apache.catalina.lifecycleexception: failed start component [connector[org.apache.coyote.http11.http11nioprotocol-86]] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:154) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.core.standardservice.startinternal(standardservice.java:459) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.core.standardserver.startinternal(standardserver.java:731) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.startup.tomcat.start(tomcat.java:341) [tomcat-embed-core-7.0.52.jar:7.0.52] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.initialize(tomcatembeddedservletcontainer.java:79) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.<init>(tomcatembeddedservletcontainer.java:69) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.gettomcatembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:270) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.getembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:145) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:159) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:132) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:476) [spring-context-4.0.3.release.jar:4.0.3.release] @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:120) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.refresh(springapplication.java:648) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:311) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:909) [spring-boot-1.0.2.release.jar:1.0.2.release] @ org.springframework.boot.springapplication.run(springapplication.java:898) [spring-boot-1.0.2.release.jar:1.0.2.release] @ com.company.webapplication.main(webapplication.java:23) [classes/:na] caused by: org.apache.catalina.lifecycleexception: service.getname(): "tomcat"; protocol handler start failed @ org.apache.catalina.connector.connector.startinternal(connector.java:1014) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150) [tomcat-embed-core-7.0.52.jar:7.0.52] ... 18 mutual frames omitted caused by: java.net.socketexception: permission denied @ sun.nio.ch.net.bind0(native method) ~[na:1.7.0_67] @ sun.nio.ch.net.bind(net.java:444) ~[na:1.7.0_67] @ sun.nio.ch.net.bind(net.java:436) ~[na:1.7.0_67] @ sun.nio.ch.serversocketchannelimpl.bind(serversocketchannelimpl.java:214) ~[na:1.7.0_67] @ sun.nio.ch.serversocketadaptor.bind(serversocketadaptor.java:74) ~[na:1.7.0_67] @ org.apache.tomcat.util.net.nioendpoint.bind(nioendpoint.java:473) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.tomcat.util.net.abstractendpoint.start(abstractendpoint.java:647) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.coyote.abstractprotocol.start(abstractprotocol.java:449) ~[tomcat-embed-core-7.0.52.jar:7.0.52] @ org.apache.catalina.connector.connector.startinternal(connector.java:1007) ~[tomcat-embed-core-7.0.52.jar:7.0.52] ... 19 mutual frames omitted - 2014-10-30 10:30:51,609 [main] info o.a.coyote.http11.http11nioprotocol - stopping protocolhandler ["http-nio-86"] - 2014-10-30 10:30:51,609 [main] info o.a.coyote.http11.http11nioprotocol - pausing protocolhandler ["http-nio-86"] - 2014-10-30 10:30:51,609 [main] info o.a.catalina.core.standardservice - stopping service tomcat - 2014-10-30 10:30:51,612 [localhost-startstop-1] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [timer-0] has failed stop it. create memory leak. - 2014-10-30 10:30:51,612 [localhost-startstop-1] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [com.mchange.v2.async.threadpoolasynchronousrunner$poolthread-#0] has failed stop it. create memory leak. - 2014-10-30 10:30:51,612 [localhost-startstop-1] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [com.mchange.v2.async.threadpoolasynchronousrunner$poolthread-#1] has failed stop it. create memory leak. - 2014-10-30 10:30:51,613 [localhost-startstop-1] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [com.mchange.v2.async.threadpoolasynchronousrunner$poolthread-#2] has failed stop it. create memory leak. - 2014-10-30 10:30:51,613 [localhost-startstop-1] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [abandoned connection cleanup thread] has failed stop it. create memory leak. exception in thread "main" org.springframework.context.applicationcontextexception: unable start embedded container; nested exception org.springframework.boot.context.embedded.embeddedservletcontainerexception: unable start embedded tomcat @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:135) @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:476) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:120) @ org.springframework.boot.springapplication.refresh(springapplication.java:648) @ org.springframework.boot.springapplication.run(springapplication.java:311) @ org.springframework.boot.springapplication.run(springapplication.java:909) @ org.springframework.boot.springapplication.run(springapplication.java:898) @ com.company.webapplication.main(webapplication.java:23) caused by: org.springframework.boot.context.embedded.embeddedservletcontainerexception: unable start embedded tomcat @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.initialize(tomcatembeddedservletcontainer.java:106) @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.<init>(tomcatembeddedservletcontainer.java:69) @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.gettomcatembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:270) @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainerfactory.getembeddedservletcontainer(tomcatembeddedservletcontainerfactory.java:145) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:159) @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:132) ... 7 more caused by: java.lang.illegalstateexception: tomcat connector in failed state @ org.springframework.boot.context.embedded.tomcat.tomcatembeddedservletcontainer.initialize(tomcatembeddedservletcontainer.java:102) ... 12 more

please help me.

linux doesn't allow normal user bind tcp port that's <= 1024. there's give-and-take of reasons here. you're attempting bind 86 and, therefore, it's failing "permission denied". quickest , safest solution configure port value that's > 1024.

as you're using boot's embedded tomcat instance, port's configured in application.properties using server.port property.

java spring-boot

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -