0

I've been developing web applications in Eclipse and recently decided to give a shot to IntelliJ Idea. My webserver has about 15 artifacts and in Eclipse they were automatically assigned application context based on their names. Now in Idea it defaults them all to "/" which is obviously incorrect. Can I somehow set it to automatically define application context based on artifact name or do I have to enter them all manually? Sorry if that's a newbie question, I tried googling it and searching inside various settings for Idea but couldn't find the answer.

waterplea
  • 3,462
  • 5
  • 31
  • 47

1 Answers1

1

This depends on the web server you're using. For Tomcat, you have to either manually set the context path of the deployed artifacts (in Deployment tab of Tomcat Server) or configure your web server's specific settings, like server.xml for Tomcat (see an example here)

For other servers, like JBoss for example, each artifact is deployed with web context named as the artifact itself.

Community
  • 1
  • 1
Ivaylo D. Ivanov
  • 3,783
  • 1
  • 12
  • 16