[opencms-dev] Problems with Installation of OpenCms6 into linux

maria.freixes_graells at alcatel.es maria.freixes_graells at alcatel.es
Mon Jun 26 16:21:07 CEST 2006


Hello to all,

I've a problem trying installing the OpenCms, please, anyone could help me?
Since now, I've followed the OpenCms6 instructions.
First, I've installed the Java 2 SDK:  Following the  
http://java.sun.com/j2se/1.5.0/install-linux.html       instructions:


      Installation of RPM File

Use these instructions if you want to install JDK in the form of RPM 
packages. If you want to use the self-extracting binary file instead, 
see Installation of Self-Extracting Binary <#self-extracting>.

*1.* *Download and check the file size.*

    You can download to any directory you choose.

    Before you download the file, notice its byte size provided on the
    download page on the web site. Once the download has completed,
    compare that file size to the size of the downloaded file to make
    sure they are equal.

*2.* *Become root* by running the su command and entering the super-user 
password.

*3.* *Extract and install the contents* of the downloaded file.

    Change directory to where the downloaded file is located and run
    these commands to first set the executable permissions and then run
    the binary to extract and run the RPM file:

    *chmod a+x jdk-1_5_0_<version>-linux-i586-rpm.bin

    ./jdk-1_5_0_<version>-linux-i586-rpm.bin*
      

    Note that the initial "./" is required if you do not have "." in
    your PATH environment variable.

    The script displays a binary license agreement, which you are asked
    to agree to before installation can proceed. Once you have agreed to
    the license, the install script creates and runs the file
    jdk-1_5_0_<version>-linux-i586.rpm in the current directory.

    *NOTE* - If instead you want to only extract the RPM file but not
    install it, you can run the .bin file with the -x argument. You do
    not need to be root to do this.

*4.* *Delete the bin and rpm file* if you want to save disk space.

*5.* *Exit the root shell.*


With this, I have the java into:
/usr/java/jdk1.5.0_07

Then, I've installed the Tomcat with apache-tomcat-5.5.17-src.tar.gz, 
and I've now:
/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src

I've fixed:
[root at ESBARD0E01404 jdk1.5.0_07]# env
HOSTNAME=ESBARD0E01404
TERM=xterm
SHELL=/bin/bash
CATALINA_HOME=/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src
HISTSIZE=1000
SSH_CLIENT=172.17.113.255 1345 22
OLDPWD=/usr/java
SSH_TTY=/dev/pts/1
JRE_HOME=/usr/java/jdk1.5.0_07
USER=root
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:
USERNAME=root
MAIL=/var/spool/mail/root
PATH=/usr/java/jdk1.5.0_07/bin/:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
INPUTRC=/etc/inputrc
PWD=/usr/java/jdk1.5.0_07
JAVA_HOME=/usr/java/jdk1.5.0_07
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=1
HOME=/root
BASH_ENV=/root/.bashrc
LOGNAME=root
SSH_CONNECTION=172.17.113.255 1345 159.23.98.42 22
LESSOPEN=|/usr/bin/lesspipe.sh %s
G_BROKEN_FILENAMES=1
_=/bin/env
[root at ESBARD0E01404 jdk1.5.0_07]#


I wanted to try the startup of Tomcat, but it fails when I do:
|startup.sh -Djava.awt.headless=true

[root at ESBARD0E01404 bin]# ./startup.sh -Djava.awt.headless=true
Using CATALINA_BASE:   
/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src
Using CATALINA_HOME:   
/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src
Using CATALINA_TMPDIR: 
/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src/temp
Using JRE_HOME:       /usr/java/jdk1.5.0_07

First, I don't understand why is it using JRE_HOME instead of JAVA_HOME 
that I've defined too.

And the error is:
Exception in thread "main" java.lang.NoClassDefFoundError: 
org/apache/catalina/startup/Bootstrap


Do I need to do something more?

I've seen the catalina.sh script and I've seen that is talking about 
bootstrap.jar and commons-logging-api.jar. I don't have bootstrap.jar 
and I have commons-logging-api.jar into /usr/share/java/
I've only 
./usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/etc/bootstrap.MF
and
/usr/local/bin/apache-tomcat/apache-tomcat-5.5.17-src/container/catalina/src/share/org/apache/catalina/startup/Bootstrap.java

Please, I am afraid of continuint with the installation of OpenCms 
before solving this, could you help?

With best regards,

Maria



|






More information about the opencms-dev mailing list