I'm migrating an application developed in websphere to weblogic server 11g.
Application is running fine except the problem in viewing the attachment. Attachment is stored in the local directory of my system. When I'm clicking the attached file an error is coming as given below:
Error 404--Not Found
From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
10.4.5 404 Not Found
The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
Why dont you just provide a servlet that will stream the data to the client. The client hits the servlet; servlet finds the file to stream; servlet streams the file to the client; client saves the file.