2012-12-13

Common JBoss AS mistakes and exceptions

signer information does not match signer information of other classes in the same package

JBoss EAP jar's are signed. If you add some unsigned jars with the same package names, JVM classloader will complain.

To unsign EAP, you can do:

find . -type f -iname '*.jar' -exec zip -d '{}' META-INF/JBOSSCOD.{SF,RSA} \;
2010-03-18 01:25:34,002 FINE  [com.sun.xml.bind.v2.runtime.reflect.opt.Injector] (main) Unable to inject org/jboss/resource/metadata/mcf/DataSourceConnectionPropertyMetaData$JaxbAccessorF_value
java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
...
Caused by: java.lang.SecurityException: class "org.jboss.resource.metadata.mcf.DataSourceConnectionPropertyMetaData$JaxbAccessorF_value"'s signer information does not match signer information of other classes in the same package
        at java.lang.ClassLoader.checkCerts(ClassLoader.java:792)
        at java.lang.ClassLoader.preDefineClass(ClassLoader.java:504)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:631)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:482)
        ... 108 more

0