My Oracle Support Banner

HTTP 404 Error When Deploying Application With The Same Name And Different Context Root On Different OC4J Instances (Doc ID 747830.1)

Last updated on FEBRUARY 09, 2024

Applies to:

Oracle HTTP Server - Version 10.1.3.1.0 to 10.1.3.4.0 [Release AS10gR3]
Information in this document applies to any platform.
This problem can occur on any platform.
 

Symptoms

When deploying a J2EE application with different context roots on different containers, using the same application name, application requests result in HTTP 404 errors.
 
Example:

J2EE application has been deployed with the same name and different context root name on different OC4J instances.

The default-web-site.xml file in instance OC4J1 contains the following entry for this application:


When trying to access these applications:

http://hostname:port/app1/myapplication
http://hostname:port/app2/myapplication

 the request is routed to the wrong OC4J instance and HTTP 404 error is received.

After doing a reload/refresh in the browser, the page is rendered correctly in the browser.

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
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.