Jenkins報錯:AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP

Jenkins升級報錯:AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP 解決方法

           升級Jenkins,替換完/usr/lib/jenkins目錄下jenkins.war 包後,啓動 Jenkins 日誌/var/log/jenkins/jenkins.log 報錯如下:

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:498)
        at Main._main(Main.java:293)
        at Main.main(Main.java:132)
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:32)
        at winstone.Launcher.spawnListener(Launcher.java:205)
        ... 8 more
解決方法:

修改文件 /etc/sysconfig/jenkins:

          將 “JENKINS_AJP_PORT” 修改成:   JENKINS_AJP_PORT="-1" 

 重啓 Jenkins問題解決了。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章