Jsp File Include Directive Not Working When Using Virtual Directory Mapping Weblogic

(Doc ID 1435228.1)

Last updated on JUNE 09, 2016

Applies to:

Oracle Weblogic Server - Version 10.3.4 to 12.1.1.0
Information in this document applies to any platform.

Symptoms


Customer is using virtual-directory-mapping along with jsp <%@ include

This is not working when we include the url pattern which is specified inside the <%@ include

for Eg:
weblogic.xml
===========
<virtual-directory-mapping>
<local-path>C:/HelloWorld/pages</local-path>
<url-pattern>Repository/*</url-pattern>
</virtual-directory-mapping>

JSP Page
========
<%@ include file="Repository/Test.html"%>

Error
=====
wrapper.jsp:12:18: The include file was not found.
<%@ include
file="/Repository/content/status/status_intro_one.html"%

Cause

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 hundreds of Community platforms