Skip to Content
0
Aug 09, 2011 at 03:34 PM

List contents of a directory of the J2EE engine

59 Views

Hello,

I have a requirement to list the contents of a directory of the J2EE engine of the portal. For example let's assume that there are five files in directory /user/sap/<SID>/JC02/j2ee/cluster/server0/some_directory_name. I want to be able to list the names of the five files that are stored in this directory. I have written some java code that will list the entries in a given directory and that is not the problem. The problem is that when I run this on the portal j2ee I get the message back: "You are not authorized to view the content of the requested directory. Details: Directory listing is not allowed on this server".

I know I could store these files in KM and it would be very simple to do this but due to security concerns I am told by the project management here that KM is not an option for this application.

Any suggestions or help would be greatly appreciated.

Thanks,

Bert