Removed main.jsp from the web.xml, I misunderstood main.js as main.jsp, thought it was a new page.