Issue
-
Agents sometimes fails to launch due to
LinkageError
s like the following:
Caused by: java.lang.LinkageError: Failed to load jenkins.util.SystemProperties at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:385) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:293) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at hudson.FilePath.<clinit>(FilePath.java:2363) [...] Caused by: java.lang.NoClassDefFoundError: javax/servlet/ServletContextListener at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:763) at java.lang.ClassLoader.defineClass(ClassLoader.java:642) at hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:381) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:293) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at hudson.FilePath.<clinit>(FilePath.java:2363) [...] Caused by: java.lang.ClassNotFoundException: javax.servlet.ServletContextListener
Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Operations Center
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller
-
CloudBees CI (CloudBees Core) on traditional platforms - Operations Center
-
CloudBees Jenkins Enterprise
-
CloudBees Jenkins Enterprise - Managed controller
-
CloudBees Jenkins Enterprise - Operations center
-
Jenkins LTS < 2.107.3
Resolution
This is caused by a known issue JENKINS-46386 fixed in Jenkins LTS 2.107.3 ( 2.113 of Jenkins LTS).
Solution
The solution is to upgrade core to version 2.107.3 or later.