Hi,
I’m having problems while trying to integrate the Openfire with a already existing Oracle database. I’ve already readed all of the guides and they haven’t solved my problem yet. These are my openfire.xml and and error.log:
openfire.xml
<?xml version=“1.0” encoding=“UTF-8”?>
<!–
This file stores bootstrap properties needed by Openfire.
Property names must be in the format: “prop.name.is.blah=value”
That will be stored as:
<prop>
<name>
<is>
<blah>value</blah>
</is>
</name>
</prop>
Most properties are stored in the Openfire database. A
property viewer and editor is included in the admin console.
–>
<!-- root element, all properties must be under this element -->
<jive>
<adminConsole>
<!-- Disable either port by setting the value to -1 -->
<port>9090</port>
<securePort>9091</securePort>
</adminConsole>
<admin>
<!-- Use this section to define users that will have admin privileges. Below,
you will find two ways to specify which users are admins. Admins will
have access to the admin console (only local users) and may have also access
to other functionalities like ad-hoc commands. -->
<!-- By default, only the user with the username “admin” can login
to the admin console. Alternatively, you can specify a comma-delimitted
list usernames that should be authorized to login to the admin console
by setting the <authorizedUsernames> field below. -->
<authorizedUsernames>58458944,admin</authorizedUsernames>
<!-- Comma-delimitted list of bare JIDs. The JIDs may belong to local
or remote users. -->
<!-- <authorizedJIDs></authorizedJIDs> -->
</admin>
<locale>pt_BR</locale>
<!-- Network settings. By default, Openfire will bind to all network interfaces.
Alternatively, you can specify a specific network interfaces that the server
will listen on. For example, 127.0.0.1. This setting is generally only useful
on multi-homed servers. -->
<!–
<network>
<interface></interface>
</network>
–>
<connectionProvider>
<className>org.jivesoftware.database.DefaultConnectionProvider</classN ame>
</connectionProvider>
<database>
<jdbcProvider>
<driver>oracle.jdbc.driver.OracleDriver</driver>
<connectionString>jdbc:oracle:thin:xxxx/xxxx@xxx.xxx.xxx.xxx:1521:xxx< /connectionString>
</jdbcProvider>
<provider>
<auth>
<className>org.jivesoftware.openfire.auth.JDBCAuthProvider</className& gt;
</auth>
<user>
<className>org.jivesoftware.openfire.user.JDBCUserProvider</className& gt;
</user>
</provider>
<jdbcAuthProvider>
<passwordSQL>SELECT nm_senha FROM salvadm.tb_aas_usuario WHERE cd_usuario=?</passwordSQL>
<passwordType>MD5</passwordType>
</jdbcAuthProvider>
<jdbcUserProvider>
<loadUserSQL>SELECT nm_usuario,nm_email FROM salvadm.tb_aas_usuario WHERE cd_usuario=?</loadUserSQL>
<userCountSQL>SELECT COUNT(*) FROM salvadm.tb_aas_usuario</userCountSQL>
<allUsersSQL>SELECT cd_usuario FROM salvadm.tb_aas_usuario</allUsersSQL>
<searchSQL>SELECT cd_usuario FROM salvadm.tb_aas_usuario WHERE</searchSQL>
<usernameField>cd_usuario</usernameField>
<nameField>nm_usuario</nameField>
<emailField>nm_email</emailField>
</jdbcUserProvider>
</database>
<setup>true</setup>
</jive>
error.log
2007.10.25 16:00:32 org.jivesoftware.database.ConnectionPool.(ConnectionPool.java:65) JDBC driver value is null.
2007.10.25 16:00:32 org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager. java:80) Warning: failed to create the connection provider specified by connectionProvider.className. Using the default pool.
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.<init>(ConnectionPool.java:68)
at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProv ider.java:83)
at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:459)
at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:77)
at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:271)
at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:70)
at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:52)
at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:46)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:524)
at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:286)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:383)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:148)
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.openfire.starter.ServerStarter.start(ServerStarter.java:93)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:49)
2007.10.25 16:00:32 org.jivesoftware.database.ConnectionPool.(ConnectionPool.java:65) JDBC driver value is null.
2007.10.25 16:00:32 org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:282)
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.<init>(ConnectionPool.java:68)
at org.jivesoftware.database.DefaultConnectionProvider.start(DefaultConnectionProv ider.java:83)
at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:459)
at org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager .java:83)
at org.jivesoftware.util.JiveProperties.loadProperties(JiveProperties.java:271)
at org.jivesoftware.util.JiveProperties.init(JiveProperties.java:70)
at org.jivesoftware.util.JiveProperties.<init>(JiveProperties.java:52)
at org.jivesoftware.util.JiveProperties.getInstance(JiveProperties.java:46)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:524)
at org.jivesoftware.openfire.XMPPServer.initialize(XMPPServer.java:286)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:383)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:148)
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.openfire.starter.ServerStarter.start(ServerStarter.java:93)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:49)
2007.10.25 16:00:32 org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnect ionProvider.java:68) Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.
2007.10.25 16:00:32 org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager. java:95) WARNING: ConnectionManager.getConnection() failed to obtain a connection.
2007.10.25 16:00:32 org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:670) Database could not be accessed
java.lang.NullPointerException
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:660)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:391)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:148)
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.openfire.starter.ServerStarter.start(ServerStarter.java:93)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:49)
2007.10.25 16:00:32 org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:421)
java.lang.IllegalArgumentException: java.lang.NullPointerException
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:671)
at org.jivesoftware.openfire.XMPPServer.start(XMPPServer.java:391)
at org.jivesoftware.openfire.XMPPServer.<init>(XMPPServer.java:148)
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.openfire.starter.ServerStarter.start(ServerStarter.java:93)
at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:49)
Caused by: java.lang.NullPointerException
at org.jivesoftware.openfire.XMPPServer.verifyDataSource(XMPPServer.java:660)
… 10 more
I’ve already downloaded the oracle driver and it’s inside the “/op/openfire/lib” directory.