|
From: Aparna K. <ap...@da...> - 2007-05-11 14:36:45
|
Thanks for your response. My service was initially running under the Local System account.=20 A few minutes ago, I set the wrapper.ntservice.account & wrapper.ntservice.password.prompt configuration parameters. But I got this error: The service did not start due to a logon failure. I see that it got installed, though, but could not be started. When I tried to start it manually, the system set it to 'disabled'. I see that services are started under Local System or Network Service accounts. Any idea how to start it under the Network Service accounts?=20 We will be distributing this application to several clients. I cannot hard code the user account in the configuration file. Thanks, Aparna -----Original Message----- From: da...@sm... [mailto:da...@sm...]=20 Sent: Friday, May 11, 2007 10:22 AM To: wra...@li... Subject: Re: [Wrapper-user] Problem with printer discovery on a network- when application wrapped as a service My guess would be: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.htm l When running as a service, Wrapper runs on default as the SYSTEM account, which has no access to network shares (and in your case printers). By specifying an account that it should run as, it will be able to see all the printers that that account has access to. Many thanks, David Hayes Quoting Aparna Khade <ap...@da...>: > > Hi, > > I have developed a Java application using JDK 1.5 and one of the tasks > of the application is to detect all the printers installed on the=20 > user's machine. > > When I test my application before wrapping it as a service, it detects > all the printers (including network printers) But, when the=20 > application is installed as a service, it DOES NOT detect network=20 > printers. > > I looked on the site for any related configuration parameters, but=20 > could not find any. > > Is there something specific that needs to be done to look for network=20 > resources. > I would appreciate any help in this matter. > > > Thanks, > Aparna > > ---------------------------------------------------------------------- > --- This SF.net email is sponsored by DB2 Express Download DB2 Express > C - the FREE version of DB2 express and take control of your XML. No=20 > limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > ------------------------------------------------------------------------ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wrapper-user mailing list Wra...@li... https://lists.sourceforge.net/lists/listinfo/wrapper-user |
|
From: Leif M. <le...@ta...> - 2007-05-11 15:15:40
|
Aparna, See my notes inline below Aparna Khade wrote: > Thanks for your response. > > My service was initially running under the Local System account. > > A few minutes ago, I set the wrapper.ntservice.account & > wrapper.ntservice.password.prompt configuration parameters. > But I got this error: > The service did not start due to a logon failure. > What is the exact message you are getting? Did you read over the following page? There are some things you need to do security wise to enable an account to run a service: http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.html > I see that it got installed, though, but could not be started. When I > tried to start it manually, the system set it to 'disabled'. > > I see that services are started under Local System or Network Service > accounts. > Any idea how to start it under the Network Service accounts? > We will be distributing this application to several clients. I cannot > hard code the user account in the configuration file. > One option is to set the following in your configuration file: wrapper.ntservice.account=%MYAPP_ACCOUNT% Then set a system wide environment variable with the correct value. You could also set the property in an include file etc. Cheers, Leif > -----Original Message----- > From: da...@sm... [mailto:da...@sm...] > Sent: Friday, May 11, 2007 10:22 AM > To: wra...@li... > Subject: Re: [Wrapper-user] Problem with printer discovery on a network- > when application wrapped as a service > > My guess would be: > http://wrapper.tanukisoftware.org/doc/english/prop-ntservice-account.htm > l > > When running as a service, Wrapper runs on default as the SYSTEM > account, which has no access to network shares (and in your case > printers). By specifying an account that it should run as, it will be > able to see all the printers that that account has access to. > > Many thanks, > > David Hayes > > > Quoting Aparna Khade <ap...@da...>: > > >> Hi, >> >> I have developed a Java application using JDK 1.5 and one of the tasks >> > > >> of the application is to detect all the printers installed on the >> user's machine. >> >> When I test my application before wrapping it as a service, it detects >> > > >> all the printers (including network printers) But, when the >> application is installed as a service, it DOES NOT detect network >> printers. >> >> I looked on the site for any related configuration parameters, but >> could not find any. >> >> Is there something specific that needs to be done to look for network >> resources. >> I would appreciate any help in this matter. >> >> >> Thanks, >> Aparna >> >> ---------------------------------------------------------------------- >> --- This SF.net email is sponsored by DB2 Express Download DB2 Express >> > > >> C - the FREE version of DB2 express and take control of your XML. No >> limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> _______________________________________________ >> Wrapper-user mailing list >> Wra...@li... >> https://lists.sourceforge.net/lists/listinfo/wrapper-user >> >> > > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by DB2 Express Download DB2 Express C - > the FREE version of DB2 express and take control of your XML. No limits. > Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Wrapper-user mailing list > Wra...@li... > https://lists.sourceforge.net/lists/listinfo/wrapper-user > > |