I'm trying to run the Kubernetes Plugin using "mvn hpi:run". Jenkins starts 
fine, but when I try to run a job in a JNLP slave, I get the error below. 
If I use "mvn package", install the generated hpi in a local Jenkins 
instance and run an identical job using the same slave (same JAR using 
JNLP), it works fine. Has anyone seen this?

java.io.IOException: Remote call on jnlp-slave-8a3bba03aa86 failed
    at hudson.remoting.Channel.call(Channel.java:789)
    at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:536)
    at 
jenkins.slaves.JnlpSlaveAgentProtocol$Handler.jnlpConnect(JnlpSlaveAgentProtocol.java:127)
    at 
jenkins.slaves.DefaultJnlpSlaveReceiver.handle(DefaultJnlpSlaveReceiver.java:69)
    at 
jenkins.slaves.JnlpSlaveAgentProtocol2$Handler2.run(JnlpSlaveAgentProtocol2.java:60)
    at 
jenkins.slaves.JnlpSlaveAgentProtocol2.handle(JnlpSlaveAgentProtocol2.java:32)
    at 
hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:182)
Caused by: java.lang.LinkageError: Failed to load 
jenkins.util.SystemProperties
    at 
hudson.remoting.RemoteClassLoader.loadClassFile(RemoteClassLoader.java:377)
    at 
hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:285)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at 
hudson.util.RingBufferLogHandler.<clinit>(RingBufferLogHandler.java:39)
    at 
hudson.slaves.SlaveComputer$LogHolder.<clinit>(SlaveComputer.java:799)
    at 
hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:808)
    at 
hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:802)
    at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    at hudson.remoting.Request$2.run(Request.java:332)
    at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at hudson.remoting.Engine$1$1.run(Engine.java:88)
    at java.lang.Thread.run(Thread.java:745)
    at ......remote call to jnlp-slave-8a3bba03aa86(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1416)
    at hudson.remoting.UserResponse.retrieve(UserRequest.java:253)
    at hudson.remoting.Channel.call(Channel.java:781)
    ... 6 more
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:373)
    at 
hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:285)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at 
hudson.util.RingBufferLogHandler.<clinit>(RingBufferLogHandler.java:39)
    at 
hudson.slaves.SlaveComputer$LogHolder.<clinit>(SlaveComputer.java:799)
    at 
hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:808)
    at 
hudson.slaves.SlaveComputer$SlaveInitializer.call(SlaveComputer.java:802)
    at hudson.remoting.UserRequest.perform(UserRequest.java:153)
    at hudson.remoting.UserRequest.perform(UserRequest.java:50)
    at hudson.remoting.Request$2.run(Request.java:332)
    at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at hudson.remoting.Engine$1$1.run(Engine.java:88)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: 
javax.servlet.ServletContextListener
    at 
hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch(RemoteClassLoader.java:724)
    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 
hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:884)
    at hudson.remoting.Request$2.run(Request.java:332)
    at 
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
    at 
org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
    at 
hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
    at 
jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
    at ......remote call to channel(Native Method)
    at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1433)
    at hudson.remoting.Request.call(Request.java:172)
    at 
hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:255)
    at com.sun.proxy.$Proxy5.fetch(Unknown Source)
    at 
hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:293)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 20 more

Thanks in advance,
Daniel Serodio

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/09ef7452-7941-4f60-8831-b5aac55e1818%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to