Upgrade to Openfire 3.9.1 crashed Openfire

Hey,

since an upgrade to openfire 3.9.1 with rpm -Uvf openfire-3.9.1-1.i386.rpm we cannot start openfire anymore.

cat /var/log/openfired/nohup.out ..........
Exception in thread "main" java.lang.ExceptionInInitializerError
          at org.jivesoftware.openfire.spi.ConnectionManagerImpl.isClientSSLListenerEnabled(ConnectionManagerImpl.java:625)
          at org.jivesoftware.openfire.spi.ConnectionManagerImpl.createClientSSLListeners(ConnectionManagerImpl.java:423)
          at org.jivesoftware.openfire.spi.ConnectionManagerImpl.createListeners(ConnectionManagerImpl.java:136)
          at org.jivesoftware.openfire.spi.ConnectionManagerImpl.start(ConnectionManagerImpl.java:912)
          at org.jivesoftware.openfire.XMPPServer.startModules(XMPPServer.java:627)
          at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:493)
          at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:216)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          at java.lang.reflect.Constructor.newInstance(Unknown Source)
          at java.lang.Class.newInstance(Unknown Source)
          at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)
          at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)
Caused by: java.lang.SecurityException: class "org.bouncycastle.asn1.ASN1Primitive"'s signer information does not match signer information of other classes in the same package
          at java.lang.ClassLoader.checkCerts(Unknown Source)
          at java.lang.ClassLoader.preDefineClass(Unknown Source)
          at java.lang.ClassLoader.defineClass(Unknown Source)
          at java.security.SecureClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.defineClass(Unknown Source)
          at java.net.URLClassLoader.access$100(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.net.URLClassLoader$1.run(Unknown Source)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at java.lang.ClassLoader.loadClass(Unknown Source)
          at org.jivesoftware.openfire.net.SSLConfig.<clinit>(SSLConfig.java:159)
          ... 14 more

How can we solve this problem?

Thanks

Look in openfire’s lib/ folder for an old bouncycastle.jar file. Remove it and try starting openfire again

I havn’t found bouncycastle.jar in openfire’s lib/ folder.

I’ve installed openfire 3.8.1 again and then I’ve upgraded openfire to 3.9.0 and 3.9.1. Everything worked fine then.