cancel
Showing results for 
Search instead for 
Did you mean: 

Problem installing 3.2r on centos 5.4...

butlerm1977
Champ in-the-making
Champ in-the-making
Hey there, i'm following the directions on this page…

http://wiki.alfresco.com/wiki/Installing_Alfresco_Community_3.2r_WAR_on_Centos_5.4

Couple of things…

[fixed] - found this at: http://java.sun.com/products/archive/j2se/6u17/index.html
1.  I was unable to find the jdk-6u17-linux-x64-rpm.bin from sun's download site.  I used jdk-6u18-linux-i586-rpm.bin instead (changing %define buildver 18).  Everything seemed to run ok.  Is it acceptable to use Update 18 instead of 17?
[root@alfie alfresco]# java -version
java version "1.6.0_18"
Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode, sharing)

[partially fixed by manually exploding from post below]
2.  When I get to the following command, i get an error.
[root@alfie classes]# mv /var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco-global.properties.sample /var/lib/tomcat5/shared/classes/alfresco-global.properties
mv: cannot stat `/var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco-global.properties.sample': No such file or directory

[root@alfie webapps]# pwd
/var/lib/tomcat5/webapps
[root@alfie webapps]# ls
alfresco.war

Did I miss the command that would have populated that directory?

Thanks!!!
5 REPLIES 5

zaizi
Champ in-the-making
Champ in-the-making
Alfresco.war gets exploded automatically when you start up tomcat.

Do the following to manually expand it.


cd /var/lib/tomcat5/webapps/
mkdir alfresco
cd alfresco
jar xvf ../alfresco.war

butlerm1977
Champ in-the-making
Champ in-the-making
Would this problem of .war not exploding, be caused by the wrong version of JDK?  I could not find jdk-6u17-linux-i586-rpm.bin on sun's website and went with update 18 instead.  Is there a alternate source or direct link to that file?

butlerm1977
Champ in-the-making
Champ in-the-making
the .WAR still does not automatically expand.  I finally found the jdk-6u17 rpm and (freshly) installed, but when i'm trying to copy the alfresco-global.properties from the /var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/ directory, it cannot find anything beyond the webapps (which contains the alfresco.war file).  I can follow the directions below to manually explode it, but shouldn't this happen automatically?

By the way, i'm now using CentOS x64 5.4 with jdk-6u17-linux-x64-rpm.bin.  Can anyone point me in the right direction?

Thanks!

butlerm1977
Champ in-the-making
Champ in-the-making
Here's the contents of catalina.out…  note the "Error occurred during initialization of VM" at bottom.


export CATALINA_HOME="/usr/share/tomcat5"
export CATALINA_PID="/var/run/tomcat5.pid"
export CATALINA_TMPDIR="/usr/share/tomcat5/temp"
export G_BROKEN_FILENAMES="1"
export HISTSIZE="1000"
export HOME="/usr/share/tomcat5"
export HOSTNAME="alfie.localdomain"
export INPUTRC="/etc/inputrc"
export JASPER_HOME="/usr/share/tomcat5"
export JAVA_ENDORSED_DIRS="/usr/share/tomcat5/common/endorsed"
export JAVA_HOME="/usr/lib/jvm/java"
export JAVA_OPTS=" -Dcatalina.ext.dirs=/usr/share/tomcat5/shared/lib:/usr/share$
export LANG="en_US.UTF-8"
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
export LOGNAME="tomcat"
export LS_COLORS="no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:c$
export MAIL="/var/spool/mail/tomcat"
export OLDPWD
export PATH="/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin"
export PWD="/usr/share/tomcat5"
export SHELL="/bin/sh"
export SHLVL="1"
export SHUTDOWN_WAIT="30"
export TERM="xterm"
export TOMCAT_USER="tomcat"
export USER="tomcat"
Using CATALINA_BASE:   /usr/share/tomcat5
Using CATALINA_HOME:   /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Error occurred during initialization of VM
Incompatible minimum and maximum heap sizes specified

Currently my /etc/sysconfig/tomcat5 consists of:

JAVA_OPTS="$JAVA_OPTS -Xms1g -Xmx512m -XX:MaxPermSize=512M"

butlerm1977
Champ in-the-making
Champ in-the-making
Hey!  Success!  I just modified /etc/sysconfig/tomcat5 to move the heap initial size to 512 and max to 640.  After that, all is working, alfresco.log file created and logged into Alfesco on port 8080.

Before:

JAVA_OPTS="$JAVA_OPTS -Xms1g -Xmx512m -XX:MaxPermSize=512M"

AfteR:

JAVA_OPTS="$JAVA_OPTS -Xms512M -Xmx640m -XX:MaxPermSize=512M"