| There is no problem without Tomcat : the provided command works almost well. Despite of this, we don't use the same code to launch the webapp with or without Tomcat :
- with Tomcat the first executed class is hudson.WebAppMain
- without it, the first one is Main.
At this point the problem can be caused by two things (or maybe others I couldn't imagine) :
- Tomcat
- The static code and its usage (hudson.WebAppMain)
Moreover, I did a heapdump (when using the Tomcat instance). In this file we can see the system properties. java.awt.headless appears among them. Thanks to it, we can tell that Tomcat is not the problem : it doesn't alter the system properties. I think the static code should be reviewed. |