Having trouble running Rollbase for the first time on Ubuntu 12.04. I'm not a Linux expert and certainly not with Rollbase. My server: java version "1.6.0_24" OpenJDK Runtime Environment (IcedTea6 1.11.3) (6b24-1.11.3-1ubuntu0.12.04.1) OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode) processor : 1 vendor_id : AuthenticAMD cpu family : 16 model : 2 model name : AMD Phenom(tm) 9550 Quad-Core Processor stepping : 3 microcode : 0x1000065 cpu MHz : 3415.104 cache size : 512 KB physical id : 0 siblings : 2 core id : 1 cpu cores : 2 apicid : 1 initial apicid : 1 fpu : yes fpu_exception : yes cpuid level : 5 Using CATALINA_BASE: /usr/share/tomcat7 Using CATALINA_HOME: /usr/share/tomcat7 Using CATALINA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar Server version: Apache Tomcat/7.0.26 Server built: Apr 11 2012 12:24:08 Server number: 7.0.26.0 OS Name:
I certainly should look into NPE. However please set ROLLBASE_HOME environment variable explicitly: default solution may not work well in your case. I will update documentation.
I know this is a Linux/Ubuntu question but... where best to set RB HOME explicitly?
I think this will answer your question:
http://stackoverflow.com/questions/2655641/set-environment-variable-in-ubuntu
Resolved -
First set explicit RB Home variable in /etc/environment:
ROLLBASE_HOME=/usr/share/tomcat7/rollbase
export ROLLBASE_HOME
Then:
1. I needed permissions on Rollbase directory:
# sudo chmod 777 /usr/share/tomcat7/rollbase
2. Had set the wrong password for MySQL login so corrected in databases.xml
3. Changed Domain name property in shared.properties by adding IP address of server rather than 'localhost'
Thanks Pavel and Matt for helping get this resolved!
Flagging as solved.
Jim, thanks for sharing your solution!
Matt