- Inha Univ. CSE2104 Web Project
- Created by Jaeah Lee
To deploy MyNotepad on Apache Tomcat, follow these steps:
-
Start the Tomcat Server
- Ensure Tomcat is running before deployment.
-
Create a WAR File
- Using Maven:
mvn clean package
- OR using Gradle:
gradle clean build
- The generated
.warfile will be in thetarget/orbuild/libs/directory.
- Using Maven:
-
Deploy the WAR File
- Navigate to Tomcat’s
webappsdirectory:cd /path/to/tomcat/webapps - Move the generated WAR file to the
webapps/folder:mv /path/to/MyNotepad.war .
- Navigate to Tomcat’s
-
Verify Deployment
Tomcat will automatically extract and deploy the WAR file. -
Access the Web Application
Open your browser and visit:http://localhost:8080/MyWebApp