title: Java SecurityException no manifiest section for signature file
body: <p>When I'm running a executable .jar file created with maven build, I'm getting the below error:</p>
  
  <hr>
  
  <pre><code>Exception in thread "main" java.lang.SecurityException: no manifiest section 
  for signature file entry 
  org/bouncycastle/cms/CMSSignedDataStreamGenerator$TeeOutputStream.class
      at sun.security.util.SignatureFileVerifier.verifySection(Unknown Source)
      at sun.security.util.SignatureFileVerifier.processImpl(Unknown Source)
      at sun.security.util.SignatureFileVerifier.process(Unknown Source)
      at java.util.jar.JarVerifier.processEntry(Unknown Source)
      at java.util.jar.JarVerifier.update(Unknown Source)
      at java.util.jar.JarFile.initializeVerifier(Unknown Source)
      at java.util.jar.JarFile.getInputStream(Unknown Source)
      at sun.misc.URLClassPath$JarLoader$2.getInputStream(Unknown Source)
      at sun.misc.Resource.cachedInputStream(Unknown Source)
  </code></pre>
  
  <hr>
  
  <p>Points can be noted: I'm building a Java swing project with Maven 3.3. I'm targeting a maven shaded jar file, and when running the jar file with 'java -jar ' I'm getting the above error. </p>
  
  <p>Any help is appreciated.  Please let me know if anyone need any more information. I am stuck; please help.</p>