You have to deploy the application to the root context. How you do that depends on the application server. For example, in Tomcat, you make a [tt]
ROOT.war
[/tt] and copy it to the [tt]
webapps
[/tt] directory under the Tomcat installation directory to deploy it. (That doesn’t work when you are running Tomcat under Eclipse, only when you run it separately.)
Thanks John and Marko. It was the context as you said.
By the way, I’m using JBoss AS 7 and even setting the context to ‘/’ it didn’t worked. The solution was to create a file named jboss-web.xml and set the context I want in the tag context-root: