What is wrong mounting an AngularJS and Java Spring application?
<p>I'm trying to mount an AngularJS/Java application locally (developed by a friend), but I have problems with this, reading this you need to assume I have installed:</p>

<ul>
<li>Eclipse</li>
<li>apache-tomcat-7</li>
<li>jdk1.8</li>
<li>and In the eclipse project I imported the BACK-END and no have warnings or errors.</li>
<li>I mounted the BACK-END and FRONT-END in different folders in apache webapps directory.</li>
</ul>

<p>The AngularJS application, is composed by the following:</p>

<p><strong>BACK-END</strong></p>

<p>Is a java project that has the following directory structure:</p>

<pre><code>.settings
build
src
src/com/ProjectName/configuration
src/com/ProjectName/dashboard
src/com/ProjectName/events
src/com/ProjectName/infrastructure
src/com/ProjectName/util
src/app-config.properties [file]
src/Constans.java [file]
src/SprintConfiguration.java [file]
src/local-app-config.properties [file]
src/live-app-config.properties [file]
Webcontent (is empty)
.classpath [file]
.DS_store [file]
.gitignore [file]
.project [file]
</code></pre>

<p>I mounted this in <code>http://localhost:8080/ProjectName</code></p>

<p><strong>FRONT-END</strong></p>

<p>This is the AngularJS application:
In the file: <code>conf.js</code> I have two variables to change:</p>

<pre><code>var GLOBAL_BUCKET_URL = "https://s3-us-west-2.amazonaws.com/development.projectname.images";
var GLOBAL_SERVICES_URL = "http://localhost:8080/ProjectName/services";
</code></pre>

<p>I mounted this in <code>http://localhost:8080/project</code></p>

<p>When I go to <code>http://localhost:8080/project</code>, the app shows a login form (fine), but immediately, in the console I get the following error:</p>

<pre><code>Failed to load resource: the server responded with a status of 404 (No Encontrado)
</code></pre>

<p>So I click on login button in the application and shows this error in the console:</p>

<pre><code>angular.min.js:2 POST http://localhost:8080/ProjectName/services/users/token 404 (Not found)
</code></pre>

<p>I want to know, what I'm doing wrong, maybe there's missing directories (for example /services/users/token?)... Can you help?</p>