archiva-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Mylonas <ch...@opencsta.org>
Subject Re: Archiva logging configuration for RHEL 6
Date Fri, 09 Mar 2012 07:19:46 GMT
Hi John,

Give the apache.org tomcat download a go IMO.  if you're using centos, then you're not really
bound to RHEL licensing for support.
I just threw that bug report in there because it may be related from some docs I came across
 last week.

Unzip apache-tomcat-6.0.xx.zip into /opt and hack the init script vars.
Use this init script if you don't want to tamper what you've already got.

I usually run non-distro java and non-distro apache - just to stay 100% jdk/container, "just
in case" of peculiarities.
This way you can test the apache d/l (current version) vs. redhat's version without conflicting...

I'm a fairly noob archiva user of 18 months but don't really do anything substantial with
it yet - it just serves up a few poms/jars.

re: continuum, it sounds like you're running through the packt book - true?


#!/bin/bash
#
# tomcat
#
# chkconfig:
# description:  Start up the Tomcat servlet engine.

# Source function library.
#. /etc/init.d/functions


RETVAL=$?
CATALINA_HOME="REPLACE_TOMCAT_HOME"
export JAVA_HOME=REPLACE_JAVA_HOME
case "$1" in
 start)
        if [ -f $CATALINA_HOME/bin/startup.sh ];
          then
            echo $"Starting Tomcat"
            #/bin/su tomcat $CATALINA_HOME/bin/startup.sh
            $CATALINA_HOME/bin/startup.sh
        fi
        ;;
 stop)
        if [ -f $CATALINA_HOME/bin/shutdown.sh ];
          then
            echo $"Stopping Tomcat"
            #/bin/su tomcat $CATALINA_HOME/bin/shutdown.sh
            $CATALINA_HOME/bin/shutdown.sh
        fi
        ;;
 *)
        echo $"Usage: $0 {start|stop}"
        exit 1
        ;;
esac

exit $RETVAL





On 09/03/2012, at 3:39 AM, John DeStefano wrote:

> Hi Chris,
> 
> Yes: I've hacked the init script and added the env variables there;
> this seems to get Tomcat through enough to start up, but I still see
> Catalina errors regarding the log files.  The only way past this seems
> to be editing the files in webapps/archiva/WEB-INF/classes/ after
> Tomcat starts and adding absolute paths there, which means these
> variables still aren't getting through Tomcat to Archiva.  I'm seeing
> the same exact problems with another webapp (Continuum), except those
> are a bit worse: on Tomcat start, Continuum creates a directory called
> `${appserver.base}` in $CATALINA_HOME.
> 
> Unfortunately, the latest version of Tomcat in RHEL 6.2 available
> through official RH channels is the one I have installed (6.0.24).  I
> read the Jira document, and I'm a bit surprised: I read through the
> bug report you'd referenced, which is marked a duplicate of another
> bug, which seems to have been dismissed as an invalid report:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=48903
> 
> Thanks for your help.
> 
> ~John


Mime
View raw message