Hi,

paksegu schrieb:
> sling/launchpad/app/target# java -jar 
> org.apache.sling.launchpad.app-5-incubator-SNAPSHOT.jar -c sling -f -
> Exception in thread "main" java.lang.SecurityException: Invalid signature 
> file digest for Manifest main attributes
>     at 
> sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:221)
>     at 
> sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
>     at java.util.jar.JarVerifier.processEntry(JarVerifier.java:277)
>     at java.util.jar.JarVerifier.update(JarVerifier.java:188)
>     at java.util.jar.JarFile.initializeVerifier(JarFile.java:321)
>     at java.util.jar.JarFile.getInputStream(JarFile.java:386)
>     at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:689)
>     at sun.misc.Resource.cachedInputStream(Resource.java:59)
>     at sun.misc.Resource.getByteBuffer(Resource.java:154)
>     at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
>     at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
>     at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>     at java.security.AccessController.doPrivileged(Native Method)
>     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: org.apache.sling.launcher.app.main.Main. 
> Program will exit.

This is caused by repackaing the javax.servlet library into the base
atifact (at least this was the case for my whiteboard stuff). The
problem might be that the signature parts of the servlet API manifest
may have been imported into the base artifact, which causes the
verification to fails since the signatures do not match any more.

The obvious fix is to prevent the signatures from the servlet api
manifest to be mixed into the base artifact.

Hope this helps.

Regards
Felix

Reply via email to