Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

File Not file issue at runtime

843798Mar 22 2007
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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2007
Added on Mar 22 2007
0 comments
70 views