I am specifying a context root as the XML below shows. It does not work however when I upload the war file manually in the Glassfish admin web console. If I deploy it throug
Yes this is an issue of Glassfish. The admin web console have an own text field for the context root which will be auto filled with the name of the war file not his config. When you hit the deploy button this value overwrites the context-root from your config file. But the asadmin deploy and all plugins ant, maven ... are working OK.