Setting Up A Maven Dynamic Web Eclipse Project
- Download Tomcat 9 and install as shown in class.
- Start Eclipse for Java EE Developers and create a Maven Dynamic Web project.
- Add the files hibernate.cfg.xml and log4j2.xmlto the /Java Resources/src/main/resources directory.
- Create the directory /Deployed Resources/webapp/admin and add the file admin.html to it.
- Configure your Tomcat 9 server in Eclipse as shown in class.
- 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 ...