When I tried repacking all the jars into one jar, and run that one big jar, I got following exception
java.lang.SecurityException: no manifiest section for signature file entry javax/activation/MimeType.class
After googling I found a working solution at http://www.coderanch.com/t/133070/Security/Jar-File-java-lang-SecurityException
The solution is delete SUN_MICR.RSA and SUN_MICR.SF files from the META-INF folder in the jar. It worked.
I tried to find out
how does this solution work?
. But did not find any answer.
So experts, please help me understand what goes on behind the scene.