A
albert kao
I compile my Swing program with some third party jar files
successfully but running it has the following error in Eclipse 3.3.2,
JDK 6 & Windows XP.
However, I do not use any log statement in my program.
I cannot modfiy the third party jar files.
Please help.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mycom.myprod.proj.client.swing.MyApp.main(MyApp.java:121)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.SecurityException: class "org.apache.commons.logging.Log"'s
signer information does not match signer information of other classes
in the same package (Caused by java.lang.SecurityException: class
"org.apache.commons.logging.Log"'s signer information does not match
signer information of other classes in the same package)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:579)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:
517)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:
308)
at
com.mycom.myprod.proj2.swing.logging.LogFactoryHelper.getFactory(LogFactoryHelper.java:
88)
at
com.mycom.myprod.proj2.swing.logging.LogFactoryHelper.getFactory(LogFactoryHelper.java:
61)
at
com.mycom.myprod.proj2.swing.DesktopContext.<clinit>(DesktopContext.java:
287)
... 1 more
Caused by: java.lang.SecurityException: class
"org.apache.commons.logging.Log"'s signer information does not match
signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:531)
... 7 more
successfully but running it has the following error in Eclipse 3.3.2,
JDK 6 & Windows XP.
However, I do not use any log statement in my program.
I cannot modfiy the third party jar files.
Please help.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.mycom.myprod.proj.client.swing.MyApp.main(MyApp.java:121)
Caused by: org.apache.commons.logging.LogConfigurationException:
java.lang.SecurityException: class "org.apache.commons.logging.Log"'s
signer information does not match signer information of other classes
in the same package (Caused by java.lang.SecurityException: class
"org.apache.commons.logging.Log"'s signer information does not match
signer information of other classes in the same package)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:579)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:
517)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:
308)
at
com.mycom.myprod.proj2.swing.logging.LogFactoryHelper.getFactory(LogFactoryHelper.java:
88)
at
com.mycom.myprod.proj2.swing.logging.LogFactoryHelper.getFactory(LogFactoryHelper.java:
61)
at
com.mycom.myprod.proj2.swing.DesktopContext.<clinit>(DesktopContext.java:
287)
... 1 more
Caused by: java.lang.SecurityException: class
"org.apache.commons.logging.Log"'s signer information does not match
signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:775)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487)
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:
124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
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:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.commons.logging.LogFactory$2.run(LogFactory.java:531)
... 7 more