社区
Java EE
帖子详情
spring boot内置tomcat启动失败
qq_36996027
2019-01-10 09:40:06
新手学spring boot,改过端口,一直不行
...全文
1401
3
打赏
收藏
spring boot内置tomcat启动失败
新手学spring boot,改过端口,一直不行
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
十八道胡同
2019-01-11
打赏
举报
回复
An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14
你安装的是1.1.29 ,但是他需要1.2.14
stacksoverflow
2019-01-11
打赏
举报
回复
JDK版本和tomcat版本冲突。
qq_36996027
2019-01-10
打赏
举报
回复
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.0.0.RELEASE) 2019-01-10 21:24:48.517 INFO 3452 --- [ main] c.itmayiedu.controller.HelloController : Starting HelloController on PC-20170302UDHC with PID 3452 (F:\workspaces\helloworld\target\classes started by Administrator in F:\workspaces\helloworld) 2019-01-10 21:24:48.528 INFO 3452 --- [ main] c.itmayiedu.controller.HelloController : No active profile set, falling back to default profiles: default 2019-01-10 21:24:48.681 INFO 3452 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b7e5df: startup date [Thu Jan 10 21:24:48 CST 2019]; root of context hierarchy 2019-01-10 21:24:50.133 ERROR 3452 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2019-01-10 21:24:50.248 INFO 3452 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2019-01-10 21:24:50.266 ERROR 3452 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2019-01-10 21:24:50.284 INFO 3452 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-01-10 21:24:50.284 INFO 3452 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.28 2019-01-10 21:24:50.296 ERROR 3452 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2019-01-10 21:24:50.422 INFO 3452 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2019-01-10 21:24:50.423 INFO 3452 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 1744 ms 2019-01-10 21:24:50.628 INFO 3452 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/] 2019-01-10 21:24:50.633 INFO 3452 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*] 2019-01-10 21:24:50.633 INFO 3452 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2019-01-10 21:24:50.633 INFO 3452 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*] 2019-01-10 21:24:50.633 INFO 3452 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*] 2019-01-10 21:24:50.971 INFO 3452 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1b7e5df: startup date [Thu Jan 10 21:24:48 CST 2019]; root of context hierarchy 2019-01-10 21:24:51.049 INFO 3452 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/hello]}" onto public java.lang.String com.itmayiedu.controller.HelloController.index() 2019-01-10 21:24:51.055 INFO 3452 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) 2019-01-10 21:24:51.056 INFO 3452 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController.error(javax.servlet.http.HttpServletRequest) 2019-01-10 21:24:51.101 INFO 3452 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-01-10 21:24:51.101 INFO 3452 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-01-10 21:24:51.143 INFO 3452 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler] 2019-01-10 21:24:51.314 INFO 3452 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup 2019-01-10 21:25:12.341 ERROR 3452 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2019-01-10 21:25:12.342 ERROR 3452 --- [ main] o.a.catalina.core.AprLifecycleListener : An incompatible version [1.1.29] of the APR based Apache Tomcat Native library is installed, while Tomcat requires version [1.2.14] 2019-01-10 21:25:12.359 ERROR 3452 --- [ main] o.apache.catalina.core.StandardService : Failed to start connector [Connector[HTTP/1.1-8080]] org.apache.catalina.LifecycleException: Failed to start component [Connector[HTTP/1.1-8080]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.catalina.core.StandardService.addConnector(StandardService.java:225) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.addPreviouslyRemovedConnectors(TomcatWebServer.java:255) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.start(TomcatWebServer.java:197) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.startWebServer(ServletWebServerApplicationContext.java:300) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.finishRefresh(ServletWebServerApplicationContext.java:162) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:552) [spring-context-5.0.4.RELEASE.jar:5.0.4.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:140) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:752) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:388) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:327) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1246) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1234) [spring-boot-2.0.0.RELEASE.jar:2.0.0.RELEASE] at com.itmayiedu.controller.HelloController.main(HelloController.java:17) [classes/:na] Caused by: org.apache.catalina.LifecycleException: Protocol handler start failed at org.apache.catalina.connector.Connector.startInternal(Connector.java:1021) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ~[tomcat-embed-core-8.5.28.jar:8.5.28] ... 13 common frames omitted Caused by: java.io.IOException: Unable to establish loopback connection at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.PipeImpl$Initializer.run(Unknown Source) ~[na:1.8.0_91] at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_91] at sun.nio.ch.PipeImpl.<init>(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.SelectorProviderImpl.openPipe(Unknown Source) ~[na:1.8.0_91] at java.nio.channels.Pipe.open(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.WindowsSelectorImpl.<init>(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.WindowsSelectorProvider.openSelector(Unknown Source) ~[na:1.8.0_91] at java.nio.channels.Selector.open(Unknown Source) ~[na:1.8.0_91] at org.apache.tomcat.util.net.NioSelectorPool.getSharedSelector(NioSelectorPool.java:66) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.tomcat.util.net.NioSelectorPool.open(NioSelectorPool.java:130) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:227) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:1150) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:591) ~[tomcat-embed-core-8.5.28.jar:8.5.28] at org.apache.catalina.connector.Connector.startInternal(Connector.java:1018) ~[tomcat-embed-core-8.5.28.jar:8.5.28] ... 14 common frames omitted Caused by: java.net.ConnectException: Connection timed out: connect at sun.nio.ch.Net.connect0(Native Method) ~[na:1.8.0_91] at sun.nio.ch.Net.connect(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.Net.connect(Unknown Source) ~[na:1.8.0_91] at sun.nio.ch.SocketChannelImpl.connect(Unknown
jetty 无法编译java_
spring
boot
使用jetty无法启动
项目使用
Spring
Boot
1.5.8.RELEASE版本,尝试替换
内置
Tomcat
为Jetty,但在启动过程中遇到异常,涉及到
Spring
Boot
ServletInitializer类解析失败。
gateway 与
spring
-
boot
-starter-web 冲突问题
本文介绍了在将Zuul替换为
Spring
Cloud Gateway时遇到的启动冲突问题。由于Gateway基于
Spring
5和
Spring
Boot
2.x的响应式非阻塞API,与
Spring
Boot
的
内置
Tomcat
容器不兼容,导致
启动失败
。解决方案包括排除
Spring
Boot
的
内置
Tomcat
容器或者引入
Spring
Boot
的
spring
-
boot
-starter-webflux模块。通过这两种方式,可以成功启动并运行
Spring
Cloud Gateway。
nacos注册服务失败_
Spring
Boot
项目部署到
tomcat
下无法Nacos中注册服务
本文介绍了当
Spring
Boot
项目以war包形式部署到
Tomcat
并尝试使用Nacos作为注册中心时,由于无法监听到
内置
容器启动事件导致服务注册失败的问题。通过分析源码,找到问题在于
Spring
Boot
的ApplicationRunner接口,实现了在应用启动后手动注册服务。提供了一个具体的解决方案,包括自定义配置类和获取
Tomcat
端口的方法。此外,还提醒注意
Spring
Boot
和
Tomcat
的版本匹配问题,以免出现启动错误。
ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to start component [S...
本文介绍了解决
Tomcat
启动失败
的具体步骤,包括清理缓存、重新安装配置
Tomcat
等方法。同时详细解释了如何正确配置
tomcat
-embed-jasper依赖以支持JSP页面,并探讨了
Spring
Boot
内置
Tomcat
与该依赖的关系。
Spring
Boot
项目修改
内置
tomcat
版本
本文介绍了如何在
Spring
Boot
应用中覆盖
内置
Tomcat
版本,并解决因jar包冲突导致的
启动失败
问题,通过排除
内置
tomcat
依赖并指定外部版本来确保项目的正常运行。
Java EE
67,535
社区成员
225,844
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章