|
From: Takeda T. <tak...@or...> - 2003-03-28 00:57:07
|
Hi Leif, As you said, the problem was the access permission for a network drive. I setup the "wrapper.ntservice.account" property. Now, it's working well. Thank you very much. Takeda Takayoshi > -----Original Message----- > From: Leif Mortenson [mailto:le...@ta...] > Sent: Thursday, March 27, 2003 5:10 PM > To: wra...@li... > Subject: Re: [Wrapper-user] Different property between Windows NT > service and batch file > > > Takeda, > From the NT Service log, I see the following lines: > --- > INFO | jvm 1 | 2003/03/27 11:17:42 | ***** WARNING ***** > INFO | jvm 1 | 2003/03/27 11:17:42 | Specified directory > doesn't exist: > x:\tmp\export_home\eyes2020\testdata\data\mapdata > INFO | jvm 1 | 2003/03/27 11:17:42 | > --- > > I assume that the x: drive is mapped to a drive on another machine? If > so this mapping > is done on a user by user basis under windows. You have > probably mapped > the x: drive to > the current user so it will work correctly when run in a console. But > when you run as > an NT service, the Wrapper is run by default under the SYSTEM > user. You > can see this > by looking at the process list under the task manager. > > I am not sure if it is possible to map a network drive for the SYSTEM > user. If anyone > knows how to do this, please post. > > The only way that I know how to get this working is to run the NT > service as a given > user. If you have set up a network drive for that user, then > the Wrapper > should also > have access. > > Take a look at the wrapper.ntservice.account and > wrapper.ntservice.password > properties at: > http://wrapper.tanukisoftware.org/doc/english/props-nt.html > > NOTE - After changing these properties, you must uninstall and then > reinstall > the service for the settings to take effect. You can verify that the > Wrapper is > being run as the correct user by looking at the process list > in the task > manager. > > I have not actually tested accessing a mapped network drive > from a Java > process under the Wrapper before, so please let me know > whether or not this > works. > > Cheers, > Leif > > > > > Takeda Takayoshi wrote: > > > Hi, > > I have a problem of a drive recognition. When I run my process by > > batch file, it works well. But in case of NT service, it doesn't. > > Because my program doesn't realize a windows drive. I > attached 2 logs > > in each (DEBUG level). I would appreciate any comments you have. > > Thank you. > > Takeda Takayoshi > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: > The Definitive IT and Networking Event. Be There! > NetWorld+Interop Las Vegas 2003 -- Register today! > http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > |