PQ46145: JSP'S FAIL UNDER WAS 3.5.2 1.1 COMPILER ON SOLARIS, WORKS UNDERWAS 3.5.2 ON WIN2K. ERROR THROWN "BAD FILE ARGUMENT TO INCLUDE"


APAR

APAR status
Closed as program error.

Error description
Customer receiving the following error message when trying
to access a servlet:
[01.02.12 11:05:28:451 CST] abb95a ServletInstan X Uncaught
service() exception thrown by servlet {0}: {1} "JSP 1.1
Processor"org.apache.jasper.JasperException: Bad file
argument to includeCustomer's JSP's fail with this error on
Solaris but compile and run fine on Win2K.  There seems to be
an issue with static includes regarding the compiler for WAS
3.5.2 on Solaris.
to access a servlet:[01.02.12 11:05:28:451 CST], abb95a ServletInstan X Uncaughtservice() exception thrown by servlet {0}: {1} "JSP 1.1Processor"org.apache.jasper.JasperException: Bad fileargument to includeCustomer's JSP's fail with this error onSolaris but compile and run fine on Win2K. There seems to bean issue with static includes regarding the compiler for WAS3.5.2 on Solaris.
Local fix
Problem summary
Following is the scenario:  Unable to include JSP in another
JSP if they in the different sub directories.
Using three jsp files say jsp1.jsp,jsp2.jsp and jsp3.jsp .
Create two directories as follows;<app_serv>/hosts/default_host/admin/web/dir1<app_serv>/hosts/default_host/admin/web/dir2
Put jsp1.jsp directly in web directory, jsp2.jsp in dir1 and
jsp3.jsp in dir2.
.
The file jsp1.jsp includes jsp2.jsp by adding following tag:<%@include file="/dir1/jsp2.jsp" %>
.
Again the file jsp2.jsp includes jsp3.jsp by adding following
tag:  The file jsp1.jsp includes jsp2.jsp by adding following tag:<%@include file="/dir1/jsp2.jsp" %>.Again the file jsp2.jsp includes jsp3.jsp by adding following
<%@ include file="../dir2/jsp3.jsp" %> . Try to hit jsp1 on browser , it gives following error:tag:<%@ include file="../dir2/jsp3.jsp" %>.
. Error 500 Root Error-1: "Cannot read file:Try to hit jsp1 on browser , it gives following error:.Error 500
E:\WebSphere\AppServer\hosts\default_host\admin\web\.. \dir2\jsp3.jsp" . But, if just using jsp1.jsp and jsp2.jsp i.e. not include jsp3.jsp in jsp2.jsp then it works fine and shows the output. Also if hitting <localhost>/admin/dir1/jsp2.jsp which in turn is calling jsp3.jsp in dir2 , that works fine and shows all the correct output.
Root Error-1: "Cannot read file:E:\WebSphere\AppServer\hosts\default_host\admin\web\..\dir2\jsp3.jsp".But, if just using jsp1.jsp and jsp2.jsp i.e. not includejsp3.jsp in jsp2.jsp then it works fine and shows the output., Also if hitting/admin/dir1/jsp2.jsp which in turnis calling jsp3.jsp in dir2 , that works fine and shows allthe correct output.
Problem conclusion
relative includes such as the described scenario.  The file
changed:  org/apache/jasper/compiler/JspReader.java
Temporary fix
Comments
APAR information
APAR numberPQ46145
Reported component nameWAS ADVANCED SU
Reported component ID5648C8402
Reported release350
StatusCLOSED PER
PENoPE
HIPERNoHIPER
Submitted date2001-02-14
Closed date2001-02-22
Last modified date2001-02-22

APAR is sysrouted FROM one or more of the following:

APAR is sysrouted TO one or more of the following:APAR is sysrouted FROM one or more of the following:


Modules/Macros
JSP
APAR is sysrouted TO one or more of the following:Modules/Macros

Fix information
Fixed component nameWAS ADVANCED SU
Fixed component ID5648C8402

Applicable component levels
R350 PSYUP











Document Information

Product categories: Software, Application Servers, Distributed Application & Web Servers, WebSphere Application Server, General
Software version: 350
Reference #: PQ46145
IBM Group: Software Group
Modified date: 2001-02-22