on 04-28-2005 10:47 AM
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
The solution I found was to change the Logon property of the J2EE instances to a domain user, its by default set to SAP<InstanceName>Service local user.
For changing the property, you have to go the operating system's Services Control, where Logon property for instances can be changed.
Cheers,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The link gives a solution in a round-about way. In my case, I cannot use an IIS server since, the server on which my files are there, I don't have any other access that just read-write of my folder.
I am looking for a way which can be used directly through WAS.
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
No, the file resides in a LAN Server which is accessible through my windows machine. You may consider it access to a file shared on another computer with permission to your windows id.
Regards,
Rahul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
you need to access files through "http".
Regards, VIP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.