As I have described the JBoss ClickStack setup as a complex setup process, you may have noticed that I omitted a major step: I didn't talk about installing JVM to run Tomcat.
CloudBees has a Java ClickStack for general purpose Java applications used to deploy non Servlet-based applications. But the JBoss ClickStack (https://github.com/CloudBees-community/java-clickstack) can't be used in combination with Java ClickStack (two-active GenApp plugins) as both of them will try to create the control/start
script.
As a workaround, JBoss directly embeds the Java ClickStack plugin. Similar to most of the ClickStacks, this one's setup
script only invokes the lower-level functions, and this lets JBoss ClickStack to re-use them for setting up both the Java runtime and JBoss container.
Sharing code within ClickStack is not homogeneous and depends on the developer's habits. Tomcat 7 uses Git submodules to include Java ClickStack and invoke its setup functions. Some include...