Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does IntelliJ Idea add "_war_exploded" to context path of deployment?

I have a Java EE web project named test and I use Wildfly as server.

When I use Eclipse the URL in the eclipse's integrated browser is : localhost:8080/test.

But when I use IntelliJ the URL in Chrome is: localhost:8080/test_war_exploded.

Why IntelliJ idea add this: _war_exploded?

like image 274
mr L Avatar asked Oct 28 '22 22:10

mr L


2 Answers

You can try to edit Application context. Please find the menu route: Run > Debug > Edit Configurations...> in Deployment edit/delete Application context

like image 157
Andrei Avatar answered Nov 08 '22 15:11

Andrei


What actually worked for me:

  1. Stop the Server if it is Running;
  2. In the Menu Bar Above Press -> Run;
  3. Debug;
  4. Edit Configurations;
  5. Select your server (Tomcat or etc.);
  6. Deployment;
  7. In the Application Context Bar: delete (packageName)_war_exploded/
  8. Press Apply and Debug

Hope it worked!

like image 42
oleboo Avatar answered Nov 08 '22 14:11

oleboo