Tomcat url to find resources

Hello,


I'm on a team where some people use eclipse and other people intelliJ.
However, when i run my application my javascript tries to get some data using some calls to a rest service.

The URL is /projectname/resources/.... When i run it on eclipse (Local)
The URL is /resources/...      when i run it on Intellij (Local)

How can i set my intellij so the resources can be found on /projectname/resources like in eclipse?

Using Tomcat 8 server to deploy.

1 comment
Comment actions Permalink

It looks like you need to set Application context to /projectname:

https://dl.dropboxusercontent.com/u/2752840/ShareXmod/2015-03/2015-03-22_23-34-25.png

0

Please sign in to leave a comment.