Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>1.</strong> Download the package "<code>apache-tomcat-7.0.6.tar.gz</code>" from the below link<br/> <a href="http://tomcat.apache.org/download-70.cgi" rel="noreferrer">http://tomcat.apache.org/download-70.cgi</a> [tar.gz]<br/></p> <p><strong>2.</strong> Now unpack it with the following command:<br/></p> <pre><code>tar xvzf apache-tomcat-7.0.8.tar.gz </code></pre> <p><strong>3.</strong> Then move to more appropriate directory, in our case in <code>/usr/share/tomcat7</code>, but can be in any directory. We do this with the command:</p> <pre><code>sudo mv apache-tomcat-7.0.8/ /usr/share/tomcat7 </code></pre> <p><strong>4.</strong> Now define the environment variables <code>JAVA_HOME</code> and <code>JRE_HOME</code>. This file is in the "environment" in / etc. Command to edit the file:<br/></p> <pre><code>sudo gedit /etc/environment </code></pre> <p><strong>5.</strong> Here we record the routes where we have installed Java in my case this is as follows:</p> <pre><code>JAVA_HOME="/usr/local/jdk1.6.0_23" JRE_HOME="/usr/local/jdk1.6.0_23/jre" PATH="...(other path):$JAVA_HOME:$JRE_HOME" </code></pre> <p><strong>6. IMPORTANT:</strong> Verify the routes where they have installed Java.</p> <p>sometimes tomcat does not recognize, but a surefire way of recognizing that tomcat is to define the file paths inside "<code>catalina.sh</code>" located in <code>tomcat7/bin</code>. To modify this file use the command:<br/></p> <pre><code>sudo gedit /usr/share/tomcat7/bin/catalina.sh </code></pre> <p>Now insert the <code>JAVA_HOME</code> and <code>JRE_HOME</code> after the first line, so the file is as follows:</p> <pre><code>#!/bin/sh JAVA_HOME="/usr/local/jdk1.6.0_23" JRE_HOME="/usr/local/jdk1.6.0_23/jre" # Licensed to the Apache Software Foundation (ASF)... #... #... .... </code></pre> <p>Now configure Tomcat users, this is done in the file "<code>tomcat-users.xml</code>" directory <code>tomcat7/conf</code>. Command to edit the file:<br/></p> <pre><code>sudo gedit /usr/share/tomcat7/conf/tomcat-users.xml </code></pre> <p><strong>7.</strong> Unlike previous versions, the administrator should own role "manager" now it should be "<code>manager-gui</code>"to operate on the web administration tomcat7. The file would be as follows:</p> <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt; &lt;tomcat-users&gt; &lt;role rolename="manager-gui"/&gt; &lt;role rolename="manager-script"/&gt; &lt;role rolename="manager"/&gt; &lt;role rolename="admin-gui"/&gt; &lt;role rolename="admin-script"/&gt; &lt;role rolename="admin"/&gt; &lt;user username="usuario" password="contrasena" roles="manager-gui,admin-gui,manager,admin,manager-script,admin-script"/&gt; &lt;/tomcat-users&gt; </code></pre> <p><strong>8.</strong> For further info look <a href="http://diegobenna.blogspot.in/2011/01/install-tomcat-7-in-ubuntu-1010.html" rel="noreferrer">here</a><br/> <a href="http://lackovic.wordpress.com/2012/05/31/set-up-eclipse-and-tomcat-7-on-ubuntu-12-04-to-create-java-restful-web-services-with-jersey/" rel="noreferrer">set-up-eclipse-and-tomcat-7-on-ubuntu-12-04</a><br/> <a href="http://hariprasad.info/cannot-create-a-server-using-the-selected-type-eclipse-tomcat/" rel="noreferrer">cannot-create-a-server-using-the-selected-type-eclipse-tomcat</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload