powered by Jive Software

Error 12778 FileNotFoundException

I am new to using openfire so this may seem like a rudamentary question but when I try to create a new UserManager isntance using the line:

UserManager usermanger = UserManager.getInstance();

I get the following error:

Critical Error! The home directory has not been configured,
which will prevent the application from working correctly.

ERROR 12778 [Jive-ERR] ():
java.io.FileNotFoundException: XML properties file does not exist: openfire.xml
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:101)
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:63)
at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:832)
at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:282)
at org.jivesoftware.util.Log.initLog(Log.java:77)
at org.jivesoftware.util.Log.(Log.java:65)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:835)
at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:282)
at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:791)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:529)
at org.jivesoftware.util.cache.CacheFactory.(CacheFactory.java:75)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:72)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:36)
at org.jivesoftware.openfire.user.UserManager$UserManagerContainer.(UserMa nager.java:40)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:61)
at com.ibm.eventhub.server.xmpp.MessageManager.handleCreateUser(MessageManager.jav a:320)
at com.ibm.eventhub.server.xmpp.MessageManager.handleMessage(MessageManager.java:1 42)
at com.ibm.eventhub.server.xmpp.EventHubComponent.processPacket(EventHubComponent. java:75)
at org.jivesoftware.whack.ExternalComponent$1.run(ExternalComponent.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)
ERROR 12778 [Jive-ERR] ():
java.io.FileNotFoundException: XML properties file does not exist: openfire.xml
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:101)
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:63)
at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:832)
at org.jivesoftware.util.JiveGlobals.getHomeDirectory(JiveGlobals.java:236)
at org.jivesoftware.util.Log.initLog(Log.java:79)
at org.jivesoftware.util.Log.(Log.java:65)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:835)
at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:282)
at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:791)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:529)
at org.jivesoftware.util.cache.CacheFactory.(CacheFactory.java:75)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:72)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:36)
at org.jivesoftware.openfire.user.UserManager$UserManagerContainer.(UserMa nager.java:40)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:61)
at com.ibm.eventhub.server.xmpp.MessageManager.handleCreateUser(MessageManager.jav a:320)
at com.ibm.eventhub.server.xmpp.MessageManager.handleMessage(MessageManager.java:1 42)
at com.ibm.eventhub.server.xmpp.EventHubComponent.processPacket(EventHubComponent. java:75)
at org.jivesoftware.whack.ExternalComponent$1.run(ExternalComponent.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)
2010.06.29 11:44:39 Error occurred opening log file: LogName was null - OpenfireHome not set?
2010.06.29 11:44:39 [org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:835)
]
java.io.FileNotFoundException: XML properties file does not exist: openfire.xml
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:101)
at org.jivesoftware.util.XMLProperties.(XMLProperties.java:63)
at org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:832)
at org.jivesoftware.util.JiveGlobals.getXMLProperty(JiveGlobals.java:282)
at org.jivesoftware.util.JiveGlobals.isSetupMode(JiveGlobals.java:791)
at org.jivesoftware.util.JiveGlobals.getProperty(JiveGlobals.java:529)
at org.jivesoftware.util.cache.CacheFactory.(CacheFactory.java:75)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:72)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:36)
at org.jivesoftware.openfire.user.UserManager$UserManagerContainer.(UserMa nager.java:40)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:61)
at com.ibm.eventhub.server.xmpp.MessageManager.handleCreateUser(MessageManager.jav a:320)
at com.ibm.eventhub.server.xmpp.MessageManager.handleMessage(MessageManager.java:1 42)
at com.ibm.eventhub.server.xmpp.EventHubComponent.processPacket(EventHubComponent. java:75)
at org.jivesoftware.whack.ExternalComponent$1.run(ExternalComponent.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)
Exception in thread “pool-1-thread-2” java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:222)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:61)
at com.ibm.eventhub.server.xmpp.MessageManager.handleCreateUser(MessageManager.jav a:320)
at com.ibm.eventhub.server.xmpp.MessageManager.handleMessage(MessageManager.java:1 42)
at com.ibm.eventhub.server.xmpp.EventHubComponent.processPacket(EventHubComponent. java:75)
at org.jivesoftware.whack.ExternalComponent$1.run(ExternalComponent.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)
Caused by: java.lang.NullPointerException
at org.jivesoftware.util.cache.CacheFactory.createCache(CacheFactory.java:331)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:72)
at org.jivesoftware.openfire.user.UserManager.(UserManager.java:36)
at org.jivesoftware.openfire.user.UserManager$UserManagerContainer.(UserMa nager.java:40)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
… 8 more
Exception in thread “pool-1-thread-3” java.lang.NoClassDefFoundError: org.jivesoftware.openfire.user.UserManager$UserManagerContainer (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at org.jivesoftware.openfire.user.UserManager.getInstance(UserManager.java:61)
at com.ibm.eventhub.server.xmpp.MessageManager.handleCreateUser(MessageManager.jav a:320)
at com.ibm.eventhub.server.xmpp.MessageManager.handleMessage(MessageManager.java:1 42)
at com.ibm.eventhub.server.xmpp.EventHubComponent.processPacket(EventHubComponent. java:75)
at org.jivesoftware.whack.ExternalComponent$1.run(ExternalComponent.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java: 886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:736)

I think it is important to note that I am using an openfire.jar file. And that I looked in the jar file and found XMLProperties in the correct place. But could not find openfire.xml anywhere.

Thank you in advance