Setting Up A Maven Dynamic Web Eclipse Project

  1. Download Tomcat 9 and install as shown in class.
  2. Start Eclipse for Java EE Developers and create a Maven Dynamic Web project.
  3. Add the files hibernate.cfg.xml and log4j2.xmlto the /Java Resources/src/main/resources directory.
  4. Create the directory /Deployed Resources/webapp/admin and add the file admin.html to it.
  5. Configure your Tomcat 9 server in Eclipse as shown in class.
  6. Select your Dynamic Web Project and Run it on your Tomcat 9 server.

Notes

Make sure your pom file has this entry:

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>3.1.0</version>
</dependency>

If your pom file is giving an error run Maven/Update Project ...