Skip to Content
0
Former Member
Apr 28, 2005 at 09:47 AM

Reading a file from a File Server using WAS

17 Views

Hello All,

We are required to access a few files from the Lan File Servers, where only certain users have read access. When I run a java program to read the files on my local JVM, I am able to access the file. However, when I deploy the same java program on the J2EE engine, the following error comes up:Message:java.io.FileNotFoundException:
10.52.31.23\04_Design\01_Design_Docs\cookbook.xls (Logon failure: unknown user name or bad password).(10.52.31.23 is the IP of lan server). We noticed that System property user.name in this case is SAPJ2EService, while when local JVM runs it is my windows login. I am not sure what is the workaround for this? One way is to change WAS's java.policy and security file, but is there any other way which can be done programmatically, since we wouldn't have access to the Production Server.

Regards,

Rahul