|
From: Leif M. <le...@ta...> - 2003-05-08 16:11:35
|
Suo,
If the same settings are working on your Win2k box, that makes me
wonder if it is a problem with NT. I'm not sure if there are any differences
in the way NT handles account privileges.
Could you give the program that David posted a try and verify that both
the Wrapper and JVM processes are both running as the intended user?
Most likely they are but it would be nice to confirm.
Cheers,
Leif
Suo Anders wrote:
>Hi Leif, thanks for your reply.
>I've reinstalled the service a number of times and it seems to be ok as far as the user in "log on as" is the one I set in the conf-file.
>I'd like the posibility to see what user the service runs as but it doesn't seem to be possible in NT...
>
>I have tried both ways, G:\ and //server/dir, but it makes no difference.
>Actually, I have a Win2k machine on which it runs fine! But I can't tell for sure what the difference is: the OS or the user privileges! But on the WinNT machine, I do have access to the mapped drive as a "windows user", I can create and delete files on that drive through Explorer. It's just when I run my app as a servive it fails.
>BTW, the jre I'm using for the service is 1.3.1_02.
>
>/Anders
>
>
>-----Ursprungligt meddelande-----
>Från: Leif Mortenson [mailto:le...@ta...]
>Skickat: den 8 maj 2003 13:41
>Till: wra...@li...
>Ämne: Re: [Wrapper-user] Access network directories from NT service!
>
>
>Suo,
>Most people have gotten things working setting up an account.
>
>A few things for you to check.
>When you set the wrapper.ntservice.account and wrapper.ntservice.password
>properties, id you uninstall and then reinstall the service. This is
>important or
>the changes will not take effect. (This is probable ok because you said you
>verified the settings in the control panel.)
>
>You say that the service is started, it is not running as the correct user?
>How are you verifying this? If there was a problem with the user then
>the service would not start. Under XP, you can see the user that a
>service is running as by opening the Task Manager and enabling the
>User Name column. Most services run as SERVICE. Most likely the
>user is the one that is specified in your wrapper.ntservice.account
>property.
>
>If both of the above are true, then what exactly are you trying to do?
>Is the network drive mapped to a local drive. Ie R:/ or something or
>are you accessing the network drive directly? //machine/dir
>If it is the later, try the first? Just an idea, not sure it will make a
>difference.
>
>I only have access to 2000 and XP servers. So I am unable to test NT
>directly. Do you have the ability to test on an XP or 2000 server? There
>is nothing I am doing that is widows-version specific, but who knows...
>
>Cheers,
>Leif
>
>
>Suo Anders wrote:
>
>
>
>>Hi!
>>I have a java app that monitor and reads/deletes files from a directory that is mapped from a UNIX
>>server. I have a user set up with the proper privileges to access the directory. When I run my Java app through the debbugger or as a console app, there is no problem. However, as I install the app as a NT service, it can't access the directory. I use the wrapper.ntservice.account and wrapper.ntservice.password properties of the conf-file to set the user that the service should run as, and looking at the installed service hrough control panel->services, it seems OK. But when I start the service, it still doesn't seem to run as the correct user.
>>I've seen that some other users of the Wrapper have come across problems similar to mine but I haven't found the proper solution!
>>OS is Win NT Server, Wrapper version 3.0.2.
>>Please help!
>>
>>Regards,
>>Anders
>>
>>
|