Oracle GlassFish Server Generates URL with Null Prefix for Default Web Application.
(Doc ID 1333135.1)
Last updated on OCTOBER 24, 2024
Applies to:
Oracle GlassFish Server - Version 2.1 and laterInformation in this document applies to any platform.
Symptoms
On GlassFish Enterprise Server 2.1.1 patch 4 and later (to patch 12), when attempting to access a HTML page that contains a URL generated using HttpServletRequest.getRequestURI() in a default web application, the resulting URL may have "null" as the prefix of the URL, that is "null/<context-path>".
When these URLs with the format of "http://<host>:<port>/null/app" are accessed, the request will result in a HTTP status 404 response, File not found.
Changes
This behavior happens when GlassFish Server is upgraded from GlassFish Server (GF) 2.1.1 patch 3 or earlier to patch 4 or later versions. This problem is not seen with GF 2.1.1 p3 or earlier versions.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |