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 NOVEMBER 04, 2016

Applies to:

Oracle HTTP Server - Version: 10.1.3.1.0 to 10.1.3.4.0
This problem can occur on any platform.
Checked for relevance on 13-May-2009

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:
<web-app application="myapplication" name="myapplication" load-on-startup="true" root="/app1" />

The default-web-site.xml file in instance OC4J2 contains a similar entry for this application but with different context root:
<web-app application="myapplication" name="myapplication" load-on-startup="true" root="/app2" />

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!


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