Hi,
I have a custom web application on portal 7.4. This application needs file upload and view later. So what I did was I packaged the web application into one ear file, and I packed another web application to store uploaded files, so the enhancement of the web application will not wipe off the uploaded file.
The custom web application in first ear file works fine. The structure for file upload ear file looks like below:
war folder
- webContent
- uploads
- test.doc and the other uploaded file should be here
- war file is here
ear folder
- ear file is here
I also made the folder below with read and write rights after deploy the file upload ear file.
/usr/sap/<SID>/J00/j2ee/cluster/server0/apps/sap.com/ear folder/servlet_jsp/war folder/root/uploads/
When I run the web application, the file was uploaded successfully. I can see the newly uploaded file in folder of
/usr/sap/<SID>/J00/j2ee/cluster/server0/apps/sap.com/ear folder/servlet_jsp/war folder/root/uploads/
When I view it online using the web URL: http://<host>:<port>/war folder/uploads/newly_uploaded_file.docx, I got 404 Error: Requested resource does not exist.
All works in EP7.0, this only happened when I migrated to portal 7.4. Now my question is where the ear file got deployed on 7.4? why I can not see the uploaded files via web URL? What should I do the make the uploaded file to be viewed via web URL?
Thanks.
Thanks.