aspose file tools*
The moose likes BEA/Weblogic and the fly likes Not able to open the attached file in the application. (Server:weblogic server 11g) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Not able to open the attached file in the application. (Server:weblogic server 11g)" Watch "Not able to open the attached file in the application. (Server:weblogic server 11g)" New topic
Author

Not able to open the attached file in the application. (Server:weblogic server 11g)

Midhun Sivasankaran
Greenhorn

Joined: Aug 06, 2009
Posts: 16
Hi everybody,

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.

Please help me on this

Thanks,
Midhun

Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

Attachment is stored in the local directory of my system.


Define attachment and provide more details about your problem. A log, a request URL, and what you expected would happen but what happened instead


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Midhun Sivasankaran
Greenhorn

Joined: Aug 06, 2009
Posts: 16
Deepak Bala
Bartender

Joined: Feb 24, 2006
Posts: 6662
    
    5

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Not able to open the attached file in the application. (Server:weblogic server 11g)