1 Reply Latest reply on Jan 4, 2015 1:52 AM by jaikiran pai

    Signed ear and wildfly-8.1.0.Final

    Florian Reiser Newbie

      Hello,

       

      I want to sign the ears I produce with my certificate.

      When I try to deploy them, I get the following error message:

       

      Could not index class fqcn.class at /content/myear.ear/my-jar.jar: java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

      17:00:49 [INFO] at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:240) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.util.jar.JarVerifier.processEntry(JarVerifier.java:305) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.util.jar.JarVerifier.update(JarVerifier.java:216) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.util.jar.JarFile.initializeVerifier(JarFile.java:345) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.util.jar.JarFile.getInputStream(JarFile.java:412) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at org.jboss.vfs.spi.JavaZipFileSystem.openInputStream(JavaZipFileSystem.java:186) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

      17:00:49 [INFO] at org.jboss.vfs.VirtualFile.openStream(VirtualFile.java:258) [jboss-vfs-3.2.5.Final.jar:3.2.5.Final]

      17:00:49 [INFO] at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

      17:00:49 [INFO] at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

      17:00:49 [INFO] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]

      17:00:49 [INFO] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      17:00:49 [INFO] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]

      17:00:49 [INFO] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]

      17:00:49 [INFO] at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

       

      What am I doing wrong, as the code was signed with the maven-jarsigner-plugin?

       

      Regards

       

      Florian