I run jenkins.war and create a JNLP slave. I click Launch and download the slave-agent.jnlp file. From a shell, I run javaws slave-agent.jnlp. (Starting it from the browser does not work in my case, perhaps due to the browser not finding the right version of javaws.) The slave agent starts up fine and is connected.
Now I restart Jenkins. Suddenly the regular slave window closed, to be replaced by a Web Start dialog
Unable to launch the application.
The (wrapped) exception is as follows:
I am not sure what this means; the JNLP process was already launched before, so it should not be trying to launch it again, just make a new connection. Perhaps the slave agent (this is Remoting 2.47) is attempting to restart the entire JVM? Via UnixSlaveRestarter?
The same problem occurs if I use
without using the browser, so it is not simply a problem of the browser discarding a temporary file. But
works fine: the agent retries the connection after ten seconds as expected.