My Oracle Support Banner

virtual-directory setup causes Jspservlet: Unable To Dispatch To Requested Page: Exception:java.io.FileNotFoundException (Doc ID 334419.1)

Last updated on JUNE 02, 2023

Applies to:

Oracle Containers for J2EE - Version 9.0.4.2.0 to 10.1.3.5.0 [Release AS10g to AS10gR3]
Information in this document applies to any platform.

Symptoms

When attempting to access this sample JSP page: http://hostname:port/myappl/TestApache.jsp, the response received was "Not Found".

Reviewing the physical file location, the TestApache.jsp page resided as expected in <PATH>/j2ee/myoc4j/applications/myappl/myapplProject.

The log file <PATH>/j2ee/myoc4j/application-deployments/myappl/myoc4j_default_island_1/application.log showed the following error:

 The error was correct from the point of view the file was not in the directory stated in the log message, but it was incorrect because the path used to locate the file was wrong.

OC4J was trying to locate the file in directory "application-deployments" when it was located in "applications". 

Changes

 

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

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