File Not file issue at runtime
We have java 1.4 application deployed on Sun App server 7+
We get File not found error "for host <IPADDRESS> trying to GET /xyzdoc/xyz.pdf, send-file reports: HTTP4142: can't find"
we have a JSP page that has following code:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<c:redirect context="/xyzdoc" url="/xyz.pdf"/>
on the Sun app server we have deployed WAR file that has folder xyzdoc and within that xyz.pdf file. This gets deployed in the configuration directory,
/opt/apps/Sun/domains/domain1/<instancename>/applications/j2ee-modules/
From the browser when client request for this PDF file we get file not found error and server log show that GET for the file failed as it is trying to find it in the path,
/opt/apps/Sun/domains/domain1/<instancename>/docroot/xyzdoc/xyz.pdf
the path should be...
/opt/apps/Sun/domains/domain1/<instancename>/applications/j2ee-modules/xyzdoc/xyz.pdf
just to add some more information...in the WEB.XML we have context defined as
<context-param>
<param-name>/xyzdoc</param-name>
<param-value>applications/j2ee-modules/xyzdoc</param-value>
</context-param>
Please advice.