<p>I have a war file that I have to deploy as root on glassfish. Deploying the application with "/" as its context root happens successfully. But when I try to run that application by <a href="http://localhost/" rel="nofollow noreferrer">http://localhost/</a>, it throws a 503 saying the requested service() is not currently available. The log file server.log has an error saying "javax.servlet.ServletException: Site tree is not in the root web application's servlet context". I dont have the source code of this application. Is it a configuration issue that I can try to solve?</p>

[{'answer_id': 81284, 'author': 'Kinjal Dixit', 'author_id': 6629, 'author_profile': 'https://Stackoverflow.com/users/6629', 'pm_score': 0, 'selected': False, 'text': "<p>I can't guarantee this, but try undeploying, then renaming the ROOT folder and then deploying again.</p>\n"}, {'answer_id': 717285, 'author': 'John Ellinwood', 'author_id': 69572, 'author_profile': 'https://Stackoverflow.com/users/69572', 'pm_score': 1, 'selected': False, 'text': '<p>Deploying to "/" is correct for placing a webapp in the root context. The other way to depoy to the root is setting your webapp as the "default-web-module" in your "virtual-server" entry. The 503 error is a problem with your servlet.  Assuming glassfish v2, you need to turn up your logging levels in your glassfish domain.xml.  Look for the tag "module-log-levels" and set the "root", "server", and "web-container" elements to "ALL".</p>\n'}]
['https://Stackoverflow.com/questions/80714', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']