tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Tapestry > The tapestry jail
Date Tue, 08 Mar 2011 12:00:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2036/9/12/_/styles/combined.css?spaceKey=TAPESTRY&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/TAPESTRY/The+tapestry+jail">The
tapestry jail</a></h2>
    <h4>Page <b>edited</b> by             <a href="https://cwiki.apache.org/confluence/display/~uli">Ulrich
Stärk</a>
    </h4>
        <br/>
                         <h4>Changes (6)</h4>
                                 
    
<div id="page-diffs">
                    <table class="diff" cellpadding="0" cellspacing="0">
    
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >ccordenier and uli can deploy and
manage webapps. ccordenier, thiagohp and uli can log in and restart Tomcat. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">h<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">5</span><span
class="diff-added-chars"style="background-color: #dfd;">4</span>.</span> restarting
tomcat <br></td></tr>
            <tr><td class="diff-unchanged" >*ONLY* use <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >if you need to restart Tomcat. Anything
else will fail. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-changed-words">h<span
class="diff-deleted-chars"style="color:#999;background-color:#fdd;text-decoration:line-through;">5</span><span
class="diff-added-chars"style="background-color: #dfd;">4</span>.</span> reinstalling
the jail <br></td></tr>
            <tr><td class="diff-unchanged" > <br>If the jail lost Java and
Tomcat: <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
            <tr><td class="diff-unchanged" >Follow instructions and manually install
any unresolved dependencies it might encounter. <br> <br></td></tr>
            <tr><td class="diff-changed-lines" ><span class="diff-added-words"style="background-color:
#dfd;">h4.</span> Install Tomcat 7: <br></td></tr>
            <tr><td class="diff-unchanged" > <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h5.
from pre-built package (preferred) <br> <br>Check your env for PACKAGESITE. It
should point to tb.apache.org: <br> <br></td></tr>
            <tr><td class="diff-unchanged" >{code} <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">[root@tapestry
~]# env|grep PACKAGESITE <br>PACKAGESITE=ftp://tb.apache.org/pub/FreeBSD/ports/packages/8.2-RELENG-j-tlp/Latest/
<br>{code} <br> <br>Install the tomcat7 package: <br> <br>{code}
<br>pkg_add -r tomcat7 <br>{code} <br> <br>h5. from ports (discouraged)
<br>{warning}this is really discouraged!{warning} <br>{code} <br></td></tr>
            <tr><td class="diff-unchanged" >cd /usr/ports/www/tomcat7 <br>make
install clean <br>{code} <br> <br></td></tr>
            <tr><td class="diff-added-lines" style="background-color: #dfd;">h5.
configure tomcat <br> <br></td></tr>
            <tr><td class="diff-unchanged" >Tomcat resides in {{/usr/local/apache-tomcat-7.0/}}.
You may wish to set up some users in {{conf/tomcat-users.xml}}. Note that from Tomcat 7 onwards
the manager role is split into 4 separate roles, the one for the manager GUI is manager-gui.
By default, Tomcat listens on port 8080, we want it to listen on 8180 though, so edit {{conf/server.xml}}
and change the port. <br> <br></td></tr>
            <tr><td class="diff-snipped" >...<br></td></tr>
    
            </table>
    </div>                            <h4>Full Content</h4>
                    <div class="notificationGreySide">
        <p>We've got a jail at tapestry.zones.apache.org running Tomcat 7 where we can
deploy demo applications. The Hotel Booking demo is running there.</p>

<p>ccordenier and uli can deploy and manage webapps. ccordenier, thiagohp and uli can
log in and restart Tomcat.</p>

<h4><a name="Thetapestryjail-restartingtomcat"></a>restarting tomcat</h4>
<p><b>ONLY</b> use</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
sudo /usr/local/etc/rc.d/tomcat7 restart
</pre>
</div></div>

<p>if you need to restart Tomcat. Anything else will fail.</p>

<h4><a name="Thetapestryjail-reinstallingthejail"></a>reinstalling the jail</h4>

<p>If the jail lost Java and Tomcat:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
cd /usr/ports
</pre>
</div></div>

<p>if it doesn't exist yet:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
portsnap fetch
portsnap extract
</pre>
</div></div>

<p>install java:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
cd /usr/ports/java/diablo-jdk16/
make install clean
</pre>
</div></div>

<p>Some files need manual download and have to be placed into <tt>/usr/ports/distfiles</tt>.
Follow the instructions on screen.</p>

<p>Some of these files already live on <a href="ftp://tb.apache.org/pub/FreeBSD/ports/distfiles/"
class="external-link" rel="nofollow">ftp://tb.apache.org/pub/FreeBSD/ports/distfiles/</a>
and can be downloaded from there. The time zone update utility doesn't, it has to be downloaded
from Oracle directly.</p>

<p>Afterwards:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
make install clean
</pre>
</div></div>

<p>Follow instructions and manually install any unresolved dependencies it might encounter.</p>

<h4><a name="Thetapestryjail-InstallTomcat7%3A"></a>Install Tomcat 7:</h4>

<h5><a name="Thetapestryjail-fromprebuiltpackage%28preferred%29"></a>from
pre-built package (preferred)</h5>

<p>Check your env for PACKAGESITE. It should point to tb.apache.org:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
[root@tapestry ~]# env|grep PACKAGESITE
PACKAGESITE=ftp:<span class="code-comment">//tb.apache.org/pub/FreeBSD/ports/packages/8.2-RELENG-j-tlp/Latest/</span>
</pre>
</div></div>

<p>Install the tomcat7 package:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
pkg_add -r tomcat7
</pre>
</div></div>

<h5><a name="Thetapestryjail-fromports%28discouraged%29"></a>from ports
(discouraged)</h5>
<div class='panelMacro'><table class='warningMacro'><colgroup><col width='24'><col></colgroup><tr><td
valign='top'><img src="/confluence/images/icons/emoticons/forbidden.gif" width="16"
height="16" align="absmiddle" alt="" border="0"></td><td>this is really discouraged!</td></tr></table></div>
<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
cd /usr/ports/www/tomcat7
make install clean
</pre>
</div></div>

<h5><a name="Thetapestryjail-configuretomcat"></a>configure tomcat</h5>

<p>Tomcat resides in <tt>/usr/local/apache-tomcat-7.0/</tt>. You may wish
to set up some users in <tt>conf/tomcat-users.xml</tt>. Note that from Tomcat
7 onwards the manager role is split into 4 separate roles, the one for the manager GUI is
manager-gui. By default, Tomcat listens on port 8080, we want it to listen on 8180 though,
so edit <tt>conf/server.xml</tt> and change the port.</p>

<p>Add</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
tomcat7_enable=<span class="code-quote">"YES"</span>
tomcat7_java_home=<span class="code-quote">"/usr/local/diablo-jdk1.6.0/jre"</span>
tomcat7_java_opts=<span class="code-quote">"-XX:MaxPermSize=256M"</span>
</pre>
</div></div>

<p>to <tt>/etc/rc.conf</tt> to start tomcat on system startup and tell it
to use the Diablo JVM.</p>

<p>The sudoers file may have lost the entry allowing members of the tomcat-restart group
to restart Tomcat. Add it back using <tt>visudo</tt>:</p>

<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
<pre class="code-java">
# restart tomcat
%tomcat-restart ALL=(root)      NOPASSWD: /usr/local/etc/rc.d/tomcat7 restart
</pre>
</div></div>
    </div>
        <div id="commentsSection" class="wiki-content pageSection">
        <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
        </div>
        <a href="https://cwiki.apache.org/confluence/display/TAPESTRY/The+tapestry+jail">View
Online</a>
        |
        <a href="https://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=25204003&revisedVersion=2&originalVersion=1">View
Changes</a>
            </div>
</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message