Thursday, March 5, 2015

Setting up Dynamic Web Project and Apache Tomcat 8 in Eclipse Luna

Eclipse Luna, surprisingly, has no Dynamic Web Project option in New  Project.
Here's the steps to add this option: 

Adding Dynamic Web Project

1. Open Help> Install New Software 


2. Under Work with: select the url for luna releases: http://download.eclipse.org/releases/luna
then filter by "web". Select the "Web, XML, Java EE and OSGi Enterprise Development



3. Click next and Agree to the terms. 

4. Check by going to File> Project >Web  you should find Dynamic Web Project




Setting up Apache Tomcat Server

Surprisingly, (again) the server runtime for tomcat is not initially installed. 

1. Follow the same procedure above but instead of writing "web" in no.2, look for "JST Server Adapters" and "JST Server Adapters Extensions" instead.

2. Install the two and check by Adding new server at the Server tab below the Eclipse screen: 

3. Choose whatever Tomcat you have installed. 

Note: Tomcat must already be unzipped to a directory in your computer: 
ex. "C:\apache-tomcat-8.0.20"

Settings for Tomcat: 

1.Double-click on the tomcat server. It should be stopped before performing any changes on the settings.

2. Change the deploy path from "wtpwebapps" to "webapps"



No comments:

Post a Comment