We're updating the issue view to help you get more done. 

log4j doesn't pick up ${openfireHome}

Description

from the thread:

I'm using openfire_3_8_0.tar.gz to install openfire on Centos 6.3:

yum install java-1.7.0-openjdk
tar xzf openfire_3_8_0.tar.gz
mv openfire /opt/
sh /opt/openfire/bin/extra/redhat-postinstall.sh
service openfired start

And I see in logs that it can't create /logs/error.log and so on.

Fixing lib/log4j.xml does the thing.

Actual package start string is (logged from /opt/openfire/bin/openfire):

nohup /usr/bin/java -server -Dinstall4j.jvmDir=/usr -Dexe4j.moduleName=/opt/openfire/bin/openfire -classpath /opt/openfire/.install4j/i4jruntime.jar:/opt/openfire/lib/activation.jar:/opt/openfire/lib/bouncycastle.jar:/opt/openfire/lib/commons-el.jar:/opt/openfire/lib/hsqldb.jar:/opt/openfire/lib/jasper-compiler.jar:/opt/openfire/lib/jasper-runtime.jar:/opt/openfire/lib/jdic.jar:/opt/openfire/lib/jtds.jar:/opt/openfire/lib/mail.jar:/opt/openfire/lib/mysql.jar:/opt/openfire/lib/openfire.jar:/opt/openfire/lib/postgres.jar:/opt/openfire/lib/servlet.jar:/opt/openfire/lib/slf4j-log4j12.jar:/opt/openfire/lib/sqlite-jdbc-3.7.2.jar:/opt/openfire/lib/startup.jar com.install4j.runtime.Launcher start org.jivesoftware.openfire.starter.ServerStarter false false /opt/openfire/bin/../logs/stderror.log /opt/openfire/bin/../logs/stdoutt.log true true false true true 0 0 20 20 Arial 0,0,0 8 500 version 3.8.0 20 40 Arial 0,0,0 8 500 -1 -DopenfireHome=/opt/openfire/bin/../ -Dopenfire.lib.dir=/opt/openfire/lib

Environment

Linux (CentOS 6.3)

Acceptance Test - Entry

None

Activity

Show:
Guus der Kinderen
March 1, 2013, 9:50 PM

This appears to be a problem with the install4j generated distributions only.

Daryl Herzmann
February 11, 2014, 8:41 PM

Found the bug, line 140 of installer/openfire.install4j

-DopenfireHome is a vmParameter and not a argument

Daryl Herzmann
February 11, 2014, 8:46 PM

r13932, will test here once bamboo chews on it.

Daryl Herzmann
February 11, 2014, 8:51 PM

bamboo artifact checks out, yipeee.

Fixed

Assignee

Daryl Herzmann

Reporter

wroot

Labels

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure