IntelliJ IDEA and tomcat

Hi! I'm trying IntelliJ and I'm facing an issue when starting the server. Actually the issue is once the server is started. I'm using tomcat 7 and the last IntelliJ IDEA, 11.12. Once the application is started I can access it via localhost:8080/app/login
the app part is added by IntelliJ and breaking the application down. How can I configure it so that app disappear?
Thanks!
PZ

0
1 comment

Hello,

IDEA itself would add 'app' in only one case -- if it is specified as the application context (see attached tomcat-add-context.png).

So, first, please check the application context setting in your run configuration. If there is '/app', then you should just change it to '/' (i.e. to root context).
If there is '/', then it means your application is already set to be deployed to root, and 'app' is not actually added by IDEA itself, but is defined by the artifact (you may validate this by deploying the artifact to Tomcat not from IDEA but manually).

If the above will not help, I will need your project (or at least a minimal project on which the issue is reproducable).

Regards,
Michael



Attachment(s):
tomcat-add-context.png
0

Please sign in to leave a comment.