YT09‐How to remove _war_exploded - zhamri/CSC584-Enterprise_Programming GitHub Wiki
Problem
http://localhost:8080/CSC584_Enterprise_Programming_war_exploded/hello
The endpoint is too long. Why does _war_exploded appear?
- It is NOT from Tomcat
- It is from the IntelliJ IDEA deployment configuration
- Used by IntelliJ for fast development. It indicates the development product, not the production.
How to remove _war_exploded?
Option 1: Rename context path (EASIEST)
Go to:
Run → Edit Configurations → Tomcat → Deployment
You will see:
Application context:
/CSC584_Enterprise_Programming_war_exploded
Change it to:
/
or:
/csc584
Then URL becomes (refer example of servlet:
http://localhost:8080/csc584/hello
Option 2: Rename artifact
Go to:
Project Structure → Artifacts
Rename:
CSC584_Enterprise_Programming:war exploded
to:
myapp
Then URL becomes:
http://localhost:8080/myapp/hello