gpt4 book ai didi

jenkins - 迁移到 Jenkins 2.1- 由于 Jetty 9 不支持 AJP,Winstone 3.0 中删除了 AJP 支持

转载 作者:行者123 更新时间:2023-12-04 16:33:27 26 4
gpt4 key购买 nike

我正在从 Jenkins 1.6.x 安装转移到 2.x。以下错误阻止 Jenkins 启动

Jul 02, 2016 12:51:42 PM org.eclipse.jetty.util.log.JavaUtilLog warn
WARNING: Empty contextPath
Jul 02, 2016 12:51:42 PM winstone.Logger logInternal
INFO: Winstone shutdown successfully
Jul 02, 2016 12:51:42 PM winstone.Logger logInternal
SEVERE: Container startup failed
java.io.IOException: Failed to start a listener: winstone.Ajp13ConnectorFactory
at winstone.Launcher.spawnListener(Launcher.java:207)
at winstone.Launcher.<init>(Launcher.java:148)
at winstone.Launcher.main(Launcher.java:352)
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:497)
at Main._main(Main.java:246)
at Main.main(Main.java:91)
Caused by: java.lang.UnsupportedOperationException: AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP. For reverse proxying, please use HTTP instead of AJP.
at winstone.Ajp13ConnectorFactory.start(Ajp13ConnectorFactory.java:31)
at winstone.Launcher.spawnListener(Launcher.java:205)
... 8 more

Running from: /usr/lib/jenkins/jenkins.war

我怎样才能提出来?

最佳答案

这是在 Jenkins 2.0 Overview :

Jenkins 2 no longer supports AJP with the embedded Winstone-Jetty container



解决方案是禁用AJP。引用 bugtracker :

Setting JENKINS_AJP_PORT="-1" in /etc/sysconfig/jenkins solved problem

关于jenkins - 迁移到 Jenkins 2.1- 由于 Jetty 9 不支持 AJP,Winstone 3.0 中删除了 AJP 支持,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38157686/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com