powered by Jive Software

java.io.FileNotFoundException: XML properties file does not exist: jive-mes

Hi to all,

When i am running the java class for creating the user using package

org.jivesoftware.messenger.user.DefaultUserProvider i M GETTING runtime error as

Critical Error! The home directory has not been configured,

which will prevent the application from working correctly.

ERROR 11323 ():

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

ERROR 11323 ():

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 Error occurred opening log file: LogName was null - MessengerHome not set?

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:13 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(DefaultConnectionProvider.java:55)

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

at createUser.loadUser1(createUser.java:141)

at createUser.getUser(createUser.java:74)

at createUser.main(createUser.java:56)

2005.11.18 15:35:14 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:720)

java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(ConnectionPool.java:62)] JDBC driver value is null.

In getUser2005.11.18 15:35:14 org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnect ionProvider.java:68) Warning: DbConnectionDefaultPool.getConnection() was called before the internal pool has been initialized.

2005.11.18 15:35:14 org.jivesoftware.database.DbConnectionManager.getConnection(DbConnectionManager. java:107) WARNING: ConnectionManager.getConnection() failed to obtain a connection.

Please Help me.

Thanx in advance.

pallavi

Hi,

When you are running this class (in an IDE or from the command line), you need to setup a system property called “messengerHome”. When Jive Messenger runs it uses this to establish where to find jive-messenger.xml (its usually in $messengerHome/conf/jive-messenger.xml). When I run JM in Eclipse I provide this argument to tell Jive Messenger where its home is.

-DmessengerHome=c:/workspace/jivemessenger/target

Hope that helps you,

Conor.

ThanX conor for repling.

I am running the class from command promt on LINUX machine.

My Jive Messanger is in /opt/JiveMessenger location.

i set the MessengerHOme as follows

export DmessengerHome=/opt/jive_messenger/

But it is not working.Is it right?

Please give proper syntax for Linux.

Thanx in advance.

Pallavi

Hi Connor the java set property it is not sufficient, i have the same problem when run the jive server whit the user “jive”, if run the server whit “root” user no have de problem, I don’'t the reason.

if run the server whit “jive” user not work, the command in the operational system (linux) is:

/local/jdk1.5.0/bin/java -server -Dinstall4j.jvmDir=/local/jdk1.5.0 -Dinstall4j.appDir=/local/jive_messenger_2_3_0 -Dexe4j.moduleName=/local/jive_messenger_2_3_0/bin/messenger -classpath /local/jive_messenger_2_3_0/.install4j/i4jruntime.jar:/local/jive_messenger_2_3 _0/lib/activation.jar:/local/jive_messenger_2_3_0/lib/commons-el.jar:/local/jive _messenger_2_3_0/lib/hsqldb.jar:/local/jive_messenger_2_3_0/lib/jasper-compiler. jar:/local/jive_messenger_2_3_0/lib/jasper-runtime.jar:/local/jive_messenger_2_3 _0/lib/mail.jar:/local/jive_messenger_2_3_0/lib/messenger.jar:/local/jive_messen ger_2_3_0/lib/mysql.jar:/local/jive_messenger_2_3_0/lib/postgres.jar:/local/jive _messenger_2_3_0/lib/servlet.jar:/local/jive_messenger_2_3_0/lib/startup.jar com.install4j.runtime.Launcher start org.jivesoftware.messenger.starter.ServerStarter false false /local/jive_messenger_2_3_0/bin/…/logs/stderror.log /local/jive_messenger_2_3_0/bin/…/logs/stdoutt.log true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 2.3.0 20 40 Arial 0,0,0 8 500 -1 -DmessengerHome=/local/jive_messenger_2_3_0 -Dmessenger.lib.dir=/local/jive_messenger_2_3_0/lib start

in this comman are present the “-DmessengerHome=/local/jive_messenger_2_3_0” but the server don’'t work this show “java.io.FileNotFoundException: XML properties file does not exist: jive-messenger.xml”

if i run the server whit the root user not have any problem, work fine.

the question is: is not posible run jivemessenger whit a non root user (diferent user)?

Sorry I though you were trying to test a new class in your IDE. Unfortunately I am not a expert on running jive on linux, please refer to the documentation or search the forums, there is usually quite a lot of good tips and info buried there. It is most likely a permissions problem that you are having.

Also if you are trying to export messengerHome, it should be like this:

export messengerHome=/opt/jive_messenger

the -D is an option for java commandline parameters.

Conor.

I try to solve the problem whit diferents alternatives howto:

export HOME=/home/jive

export JAVA_HOME=/local/jdk1.5.0/

export PATH=$PATH:/local/jdk1.5.0/bin

export MESSENGER_HOME=/local/jive_messenger_2_3_0

export messengerHome=/local/jive_messenger_2_3_0

export messenger_Home=/local/jive_messenger_2_3_0

export CLASSPATH=/local/jive_messenger_2_3_0/bin/messenger_init.xml

in all case the response is the same :

==> …/logs/error.log <==

2005.11.28 08:41:54 org.jivesoftware.util.JiveGlobals.loadSetupProperties(JiveGlobals.java:717)

java.io.IOException: XML properties file must be writable: jive-messenger.xml

at org.jivesoftware.util.XMLProperties.(XMPPServer.java:134)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

Please ensure that the user are you running Jive Messenger has permissions to write to jive_messenger.xml. This is required during installation configuration.

Hope that helps,

Conor.