Oracle GlassFish Server 3.0.1 Release Notes

Solution

Web Module Deployment Guidelines in Oracle GlassFish Server 3.0.1 Application Deployment Guide states:

Context Root. When you deploy a web module, if you do not specify a context root, the default is the name of the WAR file without the .war extension. The web module context root must be unique within the server.

Similarly, endpoint-address-uri in Oracle GlassFish Server 3.0.1 Application Deployment Guide states:

For servlet endpoints, this value is relative to the web application context root. For EJB endpoints, the URI is relative to root of the web server (the first portion of the URI is a context root). The context root portion must not conflict with the context root of any web application deployed to the same web server.

While both statements are technically accurate, it is useful to add the following further clarification:

The DAS in GlassFish Server versions 2.1.1, 3.0.1, and later support the deployment of multiple web applications using the same web context root as long as those applications are deployed to different GlassFish Server instances. Deploying multiple applications using the same context root within a single GlassFish Server instance will produce a DAS error.