I have java web application running inside tomcat 6. And I am trying to launch another standard java utility application from my webapp class say from a servlet. But In docker container this process doesn’t seem to work.
in my servlet class i have the code like
Runtime.getRuntime().exec("/usr/bin/java -Dsysproperty1=value1 --jar /home/speedtest/speedtest.jar")
When servlet is invoked speedtest application should be launched in another JVM. This is working fine in VMWare and KVM.
If i run the same piece of code in standard java class, which is not inside a tomcat container, it works fine.
My environment is Ubuntu14.04, Jdk7, Tomcat 6 all inside a single container.
Can any one tell me how i can fix this.