|
From: Leif M. <le...@ta...> - 2003-03-27 08:09:40
|
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 |