<rdf:RDF
    xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
    xmlns:s='http://snipsnap.org/rdf/snip-schema#'
    xml:base='http://bliki.rimuhosting.com/rdf'>
    <s:Snip rdf:ID='jetty'
         s:name='jetty'
         s:cUser='alex'
         s:oUser=''
         s:mUser='adrian'>
        <s:content>My experience installing jetty 6.1.5 on centos5.&#xD;&#xA;&#xD;&#xA;Java is already installed, there is a symlink /usr/java/jdk and &#xD;&#xA;#java -version&#xD;&#xA;java version &quot;1.6.0&quot;&#xD;&#xA;Java(TM) SE Runtime Environment (build 1.6.0-b105)&#xD;&#xA;Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)&#xD;&#xA;&#xD;&#xA;The older HOWTO is here: http://rimuhosting.com/jetty.jsp&#xD;&#xA;&#xD;&#xA;First, download and unzip jetty:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;{&#xD;&#xA;VERSION=6.1.5&#xD;&#xA;cd /opt&#xD;&#xA;if [ -e jetty ]; then&#xD;&#xA;  mv jetty jetty.old&#xD;&#xA;fi&#xD;&#xA;wget &quot;http://dist.codehaus.org/jetty/jetty-$VERSION/jetty-$VERSION.zip&quot;&#xD;&#xA;unzip jetty-$VERSION.zip&#xD;&#xA;ln -sf /opt/jetty-$VERSION /opt/jetty&#xD;&#xA;adduser -s /sbin/nologin -d /opt/jetty jetty&#xD;&#xA;chown -R jetty:jetty /opt/jetty&#xD;&#xA;rm -rf /opt/jetty/logs&#xD;&#xA;mkdir -p /var/log/jetty&#xD;&#xA;ln -s /var/log/jetty /opt/jetty/logs&#xD;&#xA;mv /opt/jetty/etc /etc/jetty&#xD;&#xA;ln -s /etc/jetty /opt/jetty/etc&#xD;&#xA;}&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Next, test that jetty runs correctly:&#xD;&#xA;&#xD;&#xA;{code:none}&#xD;&#xA;cd /opt/jetty&#xD;&#xA;java -jar start.jar etc/jetty.xml&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Jetty should start on port 8080, connect with your browser and check it out.  If there are errors at this point, read them carefully. Hit Ctrl-C to quit.&#xD;&#xA;&#xD;&#xA;Next, we need to make jetty start up nicely as a service.  It comes with a script, bin/jetty.sh Try:&#xD;&#xA;{code:none}&#xD;&#xA;/opt/jetty/bin/jetty.sh check&#xD;&#xA;/opt/jetty/bin/jetty.sh start&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;Startup script (usually /etc/init.d/jetty):&#xD;&#xA;{code:none}&#xD;&#xA;#!/bin/sh&#xD;&#xA;&#xD;&#xA;exec su - -c &quot;/opt/jetty/bin/jetty.sh $1&quot;&#xD;&#xA;{code}&#xD;&#xA;&#xD;&#xA;However, it really doesn&apos;t look like the developers intend for you to run jetty as non-root, or at least I can&apos;t figure out how.  You can chmod -R root: /opt/jetty but...</s:content>
        <s:mTime>2007-11-12 18:36:01.0</s:mTime>
        <s:cTime>2007-07-23 23:07:21.0</s:cTime>
        <s:comments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
        <s:snipLinks>
            <rdf:Bag>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/miscapplications/ruby on rails'/>
                <rdf:li rdf:resource='#snipsnap-search'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#retep/extra packages for rhel4 and centos5'/>
                <rdf:li rdf:resource='#snipsnap-index'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/alfresco install'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/distros/ubuntu'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/rimuhosting/argh my server was exploited'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/java/-Xmx settings'/>
                <rdf:li rdf:resource='#john'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/remote server desktop with vnc'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/distros/debian'/>
                <rdf:li rdf:resource='http://bliki.rimuhosting.com/rdf#knowledgebase/linux/misc/troubleshooting performance issues in Linux'/>
                <rdf:li rdf:resource='#alex'/>
            </rdf:Bag>
        </s:snipLinks>
        <s:attachments
             rdf:type='http://www.w3.org/1999/02/22-rdf-syntax-ns#Bag'/>
    </s:Snip>
</rdf:RDF>
