Tuesday, September 13, 2011

CONFIGURING APPLICATION IN ECLIPSE FOR TOMCAT SERVER

   Prerequisites
Eclipse (Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 1; Build id: 20100917-0705)
Tomcat 5.0
Tomcat server plugin for eclipse
--------------------------------------
Setup Steps :


  1. Select NEW à Project from SVN. Enter all necessary url (your SVN server location) and credentials.

  1. When SVN Repository opens; on “Check Out As” screen à select “Check out as a project configured using the New project wizard” à Select “TOMCAT project” à Finish.

  1. Select Project Properties and right click and select “Java Build Path” and in that remove test source files and add main source files.
 


               3.1       Add the default output folder as …./main/src/webapp/WEB-INF/classess.
               3.2       Select “Libraries” tab and specify all libraries.
               3.3       Select “Order and Export”, specify build classpath order and exported entries.

  1. Select “Project” and right click and select “Tomcat Project”
               4.1       Click on create JSP directory
               4.2       Select update context properties.          

5      Select “Project Properties” and right click and select tomcat
5.1 Choose “General tab” and specify the subdirectory location in it.
5.2 Choose “DevLoader Classpath” and uncheck xmlparser.jar files and servletapi.jar file
6.   Select “Project” and right click and select “Maven”
      6.1.       Choose Run Maven and click on “Choose” button to select Classpath. On the next screen select ECLIPSE à Generate-classpath (check it) and click OK.




7. Goto ECLIPSE à Window à Preferences
Select MAVEN. Your MAVEN Locations screen should look like this


No comments:

Post a Comment