powered by Jive Software

Having issues authenticating with Active Directory (server not starting)

I’‘m trying to make Jive Messenger 2.1.2 authenticate users to Active Directory, and I’'m receiving the following error in the error log when I start the service:

2005.03.09 14:09:37 [org.jivesoftware.database.ConnectionPool.(ConnectionPool.java:60)

] JDBC driver value is null.

2005.03.09 14:09:37 [org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:268)

]

java.lang.NullPointerException

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Unknown Source)

at org.jivesoftware.util.ClassUtils.loadClass(ClassUtils.java:60)

at org.jivesoftware.util.ClassUtils.forName(ClassUtils.java:39)

at org.jivesoftware.database.ConnectionPool.(ConnectionPool.java:63)

at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProv ider.java:83)

at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:263)

at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:99)

at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:257)

at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:67)

at org.jivesoftware.util.JiveProperties.(JiveProperties.java:49)

at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:43)

at org.jivesoftware.messenger.JiveGlobals.getProperty(JiveGlobals.java:465)

at org.jivesoftware.messenger.XMPPServer.initialize(XMPPServer.java:166)

at org.jivesoftware.messenger.XMPPServer.start(XMPPServer.java:187)

at org.jivesoftware.messenger.XMPPServer.(XMPPServer.java:116)

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.newInstance0(Unknown Source)

at java.lang.Class.newInstance(Unknown Source)

at org.jivesoftware.messenger.starter.ServerStarter.start(ServerStarter.java:82)

at org.jivesoftware.messenger.starter.ServerStarter.main(ServerStarter.java:46)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at com.exe4j.runtime.LauncherEngine.launch(Unknown Source)

at com.exe4j.runtime.WinLauncher.main(Unknown Source)

Here’'s my complete config, based on the LDAP docs and earlier posts:

9090

9091

administrator

domain.com

389

sAMAccountName

displayName

mail

cn=Users,dc=domain,dc=com

cn=administrator,cn=Users,dc=domain,dc=com

password

org.jivesoftware.messenger.ldap.LdapUserProvider

org.jivesoftware.messenger.ldap.LdapAuthProvider

true

true

I see there’'s a JRE included with Jive, and I have also tried to install the latest J2SE setting the JAVA_HOME variable alluded to in the previous posts. Debug log shows nothing at this point.

Is there something in my config or my installation that might be wrong here?

Rgds,

Simon

This is actually a database issue and has nothing to do with LDAP or your JRE. The connectionProvider portion of your config.xml is entirely missing. Normally, it would be something like:

org.jivesoftware.database.EmbeddedConnectionProvider

Or it would be a larger section when using an external database. Is there any chance you deleted that section when manually editing the file to add LDAP settings. In any case, here’'s how to fix:

  1. Stop the server.

  2. Edit conf/jive-messenger.xml

  3. Change true to false

  4. Start the server and enter the admin console, you should be taken to the setup tool.

  5. Enter in the correct database info when the option is presented.

Regards,

Matt

Thanks! That worked perfectly. I was figuring that LDAP was replacing SQL as an authentication method.