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 Warning |
---|
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. |
Wiki Markup |
{anchor:Eclipse Indigo - Tomcat 7 server installation and configuration}
h3. Eclipse Indigo - Tomcat 7 server installation and configuration
{warning}
*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*|Install Tomcat 7].
If you have not installed Tomcat 7, please do so [*now*|Install Tomcat 7].
{warning}
# Run Eclipse. Go to *Window > Show View > Servers*.
\\
\\
!tomcatIndigoConfig002.jpg!
\\
\\
# Right click anywhere within the *servers View* (as shown below) and select *New > Server*.
\\
\\
!tomcatIndigoConfig004.jpg!
\\
\\
# 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.
\\
\\
!tomcatIndigoConfig006.jpg!
\\
\\
When you are satisfied that everything is correct, click *Next*.
\\
\\
# 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}
- Run Eclipse. Go to Window > Show View > Servers.
Image Added - Right click anywhere within the servers View (as shown below) and select New > Server.
Image Added - 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.
Image Added
When you are satisfied that everything is correct, click Next. 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:
C:\Program Files\Apache Software Foundation\apache-tomcat-7.0.29
|
{code}
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:
\\
\\
!tomcatIndigoConfig008.jpg!
\\
\\
When you are satisfied that everything is correct, click *Finish*.
\\
\\
# Your *Servers View* should now be similar to the following:
\\
\\
!tomcatIndigoConfig010.jpg!
\\
\\
Right click on the *Tomcat* entry in the *Servers 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:
\\
\\
!tomcatIndigoConfig012.jpg!
\\
\\
{color:red}Save all the changes that you have made to the Overview panel.
Saving the changes to the Overview panel must be done before continuing.{color}
\\
\\
# 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:
\\
\\
!tomcatIndigoConfig014.jpg!
\\
\\
Add the following to the *VM arguments* dialog box:
{code}
Your Tomcat Server panel should now look similar to the following:
Image Added
When you are satisfied that everything is correct, click Finish.
- Your Servers View should now be similar to the following:
Image Added
Right click on the Tomcat entry in the Servers 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:
Image Added
Save all the changes that you have made to the Overview panel. Saving the changes to the Overview panel must be done before continuing. 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:
Image Added
Add the following to the VM argumentsdialog box: Code Block |
---|
-Xmx1024m –Xms1024m -XX:MaxPermSize=1024m
|
{code}
{note}If tomcat fails to start, change the above settings to:
{code}
Note |
---|
If tomcat fails to start, change the above settings to: Code Block |
---|
-Xmx512m –Xms512m -XX:MaxPermSize=512m
|
|
{code}
{note}
The above additions to the VM arguments will help to prevent PermGen errors.
\\
\\
The *Edit launch configuration properties* panel should look as follows:
\\
\\
!tomcatIndigoConfig016.jpg!
\\
\\
When you are satisfied that everything is correct, click *Apply*, then click *OK*.
\\
\\
Save and close the *Overview panel*.
\\
\\
# In the *Servers View*, right click on the Tomcat server and select *Start* as shown below:
\\
\\
!tomcatIndigoConfig018.jpg!
\\
\\
# After the Tomcat server has started, open a Web Browser and enter the following URL:
{code}
The above additions to the VM arguments will help to prevent PermGen errors.
The Edit launch configuration properties panel should look as follows:
Image Added
When you are satisfied that everything is correct, click Apply, then click OK.
Save and close the Overview panel. - In the Servers View, right click on the Tomcat server and select Start as shown below:
Image Added After the Tomcat server has started, open a Web Browser and enter the following URL: Code Block |
---|
http://localhost:8080/manager/html
|
{code}
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:
\\
\\
!tomcatIndigoConfig020.jpg!
\\
h4. {color:green}Tomcat 7 server installation and configuration for Eclipse is now complete.{color}
If everything was done correctly, you should now have the following displayed in you browser:
Image Added
Tomcat 7 server installation and configuration for Eclipse is now complete.
|