一尘不染

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

jenkins

我正在从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

我该如何提出?


阅读 326

收藏
2020-07-25

共1个答案

一尘不染

这在Jenkins 2.0概述中

Jenkins 2不再通过嵌入式Winstone-Jetty容器支持AJP

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

设置JENKINS_AJP_PORT="-1"/etc/sysconfig/jenkins解决问题

2020-07-25