与
中的问题相同Migrating to Jenkins 2.1- AJP support is removed in Winstone 3.0 due to Jetty 9 not supporting AJP
但是在freebsd上。我试图在rc.d脚本中添加-DJENKINS_AJP_PORT =“ - 1”, - ajpPort = -1和--ajp13Port = -1,但没有运气。运行#java -jar /usr/local/share/jenkins/jenkins.war --help显示没有关于ajp的选项。
FreeBSD 10.3-RELEASE-p11,jenkins-2.47 / 2.59,openjdk-7.111.01_3,1 / openjdk-7.111.01_4,
日志:
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:264)
at Main.main(Main.java:112)
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
答案 0 :(得分:-2)
错误发生在jenkins_flags的/etc/rc.conf中,提到了ajp。从jenkins_flsgs中删除关于ajp的所有内容可以解决问题。