Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Panel

Anchor
Eclipse Indigo - Tomcat 7 server installation and configuration
Eclipse Indigo - Tomcat 7 server installation and configuration

Eclipse Indigo - Tomcat 7 server installation and configuration

UNDER CONSTRUCTION

  • This task is optional.  If you are not planning to use a Tomcat 7 server, then this task does not have to be done.
    The Eclipse - Tomcat 7 installation assumes that you have done an Install Tomcat 7.
    If you have not installed Tomcat 7, please do so now.
  1. Run Eclipse.  Go to Window > Show View > Servers.



  2. Right click anywhere within the servers View (as shown below) and select New > Server.



  3. In the Define a New Server panel, expand Apache (as shown below) and select Tomcat v7.0 Server.

    Change the Server name: to indicate the version of Tomcat that you have installed.
    In this example, the installed version of Tomcat is version 7.0.29.



    When you are satisfied that everything is correct, click Next.

  4. In the Tomcat Server panel, click the Browse button and select the location of your Tomcat installation.
    In this example, the Tomcat installation is at:
    Code Block
    C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.29
    
    From the JRE: dropdown list, select the JRE that you had previously installed.
    In this example, the previously installed JRE is jdk1.6.0_27.

    Your Tomcat Server panel should now look similar to the following:



    When you are satisfied that everything is correct, click Finish.

  5. Your Servers View should now be similar to the following:



    Right click on the Tomcat entry in the Severs View and select Open.

    The Tomcat Overview panel will be displayed as shown below.

    In the Server Locations:  select the Use Tomcat installation (takes control of Tomcat installation) radio button.
    In the Server Locations:  change the Deploy path from wtpwebapps to webapps.

    Your Overview panel should now look similar to the following:



    Save all the changes that you have made to the Overview panel.
    Saving the changes to the Overview panel must be done before continuing.


  6. Again, in the Overview panel under the General Information section, click on the Open launch configuration link and select the (x)= Arguments tab.

    The Edit launch configuration properties panel should look as follows:



    Add the following to the VM arguments dialog box:
    Code Block
    -Xmx1024m –Xms1024m -XX:MaxPermSize=1024m
    
    The above additions to the VM arguments will help to prevent PermGen error.

    The Edit launch configuration properties panel should look as follows:



    When you are satisfied that everything is correct, click Apply, then click OK.

    Save and close the Overview panel.

  7. In the Server View, right click on the Toncat server and select Start as shown below:



  8. After the Tomcat server has started, open a Web Browser and enter the following URL:
    Code Block
    http://localhost:8080/manager/html
    
    When prompted, enter the manager-gui username and password that you had selected when you installed the Tomcat Server.

    If everything was done correctly, you should now have the following displayed in you browser:


    Tomcat 7 server installation and configuration for Eclipse is now complete.

...