Tomcat configurations for Eclipse IDE

Context.xml

<Resource name="jdbc/SutiGRCDB" auth="container" type="javax.sql.DataSource" username="grcuser" password="grcpass" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://192.168.0.7/sutigrc3_1?autoReconnect=true" />

Server.xml

<Context path="/MessagingService" reloadable="false" docBase="F:\EclipseWorkspace\MessagingService\WebRoot"   workDir="F:\EclipseWorkspace\MessagingService\WebRoot" />

Eclipse level configuration

  1. Download eclipse and tomcat, then install them.
  2. Drop your com.sysdeo.eclipse.tomcat_3.3.0 library into plugins folder of eclipse
  3. Now start your eclipse.
  4. Go to Window -> Preferences -> Tomcat
  5. Here set your version of tomcat, set tomcat home directory upto tomcat6.0
  6. set context declaration mode to server.xml and your configuration file will be server.xml
  7. And now on Advanced tab, Here leave every thing unselected.
  8. JVM settings, Here also leave every thing unselected.
  9. SourcePath, Here select Automatically compute source path
  10. Tomcat manager app, url will be http://localhost:8080/manager, user name will be admin and leave password empty.
  11. Now press OK

Project level configuration

  1. right click on project, go to properties and select on tomcat.
  2. General Tab, check for Is a tomcat project, no context name required and check for mark this context as reloadable. thats it and remain all empty.
  3. Devloader classpath tab, remain empty.
  4. export to war settings tab, remain empty.
  5. Now press OK.