Hi,
Found the fix for headless mode, on Fedora 11. Edit /etc/tomcat6/tomcat6.conf and add the following
Code:
# To run our environment with a headless implementation,
# the follow property may be specified at the java command line:
JAVA_OPTS="-Djava.awt.headless=true"
I get a bit further now, in that the folder mangoDB , and the mango.log file are created in /var/log/tomcat6.
I modified ROOT/WEB-INF/classes/env.properties
Code:
# db.url=~/../../mangoDB
db.url=/var/log/tomcat6/mangoDB
and log4j.xml
Code:
<appender name="logfile" class="org.apache.log4j.DailyRollingFileAppender">
<!-- <param name="File" value="../logs/mango.log"/> -->
<param name="File" value="/var/log/tomcat6/mango.log"/>
I am now getting the following error in the tomcat localhost file
Code:
SEVERE: Exception sending context initialized event to listener instance of class com.serotonin.mango.MangoContextListener
com.serotonin.ShouldNeverHappenException: java.io.FileNotFoundException: createTables.log (Permission denied)
.
.
Caused by: java.io.FileNotFoundException: createTables.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
Where is the path set for createTables.log
Thanks