初识docker,试着在docker中安装tomcat(安装的tomcat8.5),并且挂载到宿主机的相关目录下,结果启动的时候报错:

12-May-2020 01:14:34.061 SEVERE [main] org.apache.catalina.core.StandardService.startInternal Failed to start connector [Connector[AJP/1.3-8009]]
org.apache.catalina.LifecycleException: Protocol handler start failed
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1085)
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:766)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:688)
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:343)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:474)
Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid.
at org.apache.coyote.ajp.AbstractAjpProtocol.start(AbstractAjpProtocol.java:274)
at org.apache.catalina.connector.Connector.startInternal(Connector.java:1083)
... 12 more
22-May-2020 01:14:34.062 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 124 ms

  查阅资料,发现了8.5版本的tomcat的sever.xml中有个属性 secretRequired需要给设置值:

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />

设置成""就可以了,也就是下面的设置结果:

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" secretRequired="" />

  然后重新启动docer中的tomcat,发现启动成功了,大功告成!

最新文章

  1. 前端工程师技能之photoshop巧用系列第二篇——测量篇
  2. 记录-div绝对定位针对手机浏览器的区别
  3. HTML5 LocalStorage 本地存储,刷新值还在
  4. 一起入门python3之元组和数列
  5. SQL Server添加MDW性能监控报表
  6. Git基础(二)
  7. hdu 3790 最短路径问题(最短路,Dijsktra)
  8. 如何用eclispe远程调试tomcat--转载
  9. 如何用extjs显示一个已经存在的页面
  10. 在 iPad和 iPhone的浏览器上查看网页源代码
  11. 基于visual Studio2013解决算法导论之030二叉查找树
  12. vector中的find
  13. 【Spark2.0源码学习】-1.概述
  14. ●BZOJ 1042 [HAOI2008]硬币购物
  15. Windows服务的安装卸载及错误查找
  16. 重构&mdash;&mdash;与设计模式的恋情
  17. sorter函数参数设置
  18. mysql where和having的区别
  19. 关于 vue 日期格式的过滤
  20. [LeetCode&amp;Python] Problem 504. Base 7

热门文章

  1. python使用笔记26--多线程、多进程
  2. github在不同电脑上协同开发
  3. Python + Requests 知识点回顾
  4. python基础之面向对象OOP
  5. zookeeper与eureka比较
  6. 微信机器人项目开发--python
  7. 利用docker-compose快速部署测试用数据库服务器
  8. BI商业智能如何在医疗行业中运用?
  9. vsCode开发flutter项目
  10. Spring in Action学习笔记(2)