Open full view…

Invalid URL - front-angularjs-TT210

Scott Stanlick
Thu, 08 May 2014 14:36:40 GMT

I have generated an angular app from a simple database. When I deploy the project on Tomcat, I get the home page but all the links fail with Invalid URL. I did notice the baseURL in app.js was http://localhost:8080/demo/rest so I changed it to my context root. Still no success. Any clues?

Tue, 13 May 2014 15:15:06 GMT

Hello, the variable *baseURL* is the root URL of REST services of the Spring MVC webapp. So, you have to generate and start the Spring MVC webapp by following this tutorial : After that, you can define the variable *baseURL* in the file *app/js/app.js* with the root url of the Spring MVC webapp ending by "*/rest*", like this : http_:_//*[tomcat_server]*:8080/*[Spring* *MVC* *webapp]/rest* , with : - *[tomcat_server]* : Tomcat server URI - *[Spring* *MVC* *webapp]* : Name of the spring MVC webapp