Hi Yoav, You gave me the answer.
When I looked at my service's log on properties, it was running under the local system account. There's a radio button that allows you to run under the local system account or another one of your own choosing. When I switched to another account and gave it my network account, everything worked perfectly. The answer when I deploy will be to ask my sys admin to define a user account just for this application, with a username and password that won't expire. S/he'll have to assign the printers I'm interested in to that user account, but once that's done I think I'm golden. Thank you again for your advice. Your suggestion was the key. Sometimes I just need somebody to talk these things through with. Most appreciated. Sincerely, MOD --- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > > Howdy, > One has to think it has something to do with the > service > security model in windows. I used to know a lot > about this, > but not for current windows platforms. Maybe > someone on the > list does, maybe someone who wrote the > javax.print.spi at > Sun does. > > Yoav Shapira > Millennium ChemInformatics > > > >-----Original Message----- > >From: Michael Duffy [mailto:[EMAIL PROTECTED] > >Sent: Friday, June 27, 2003 8:45 AM > >To: Tomcat Users List > >Subject: RE: PrintServiceLookup And Tomcat > > > > > >Hi Yoav, > > > >Brilliant advice, as usual. When I shut down the > >Tomcat service and run it using startup.bat, it > finds > >both printers beautifully and puts the names in the > >drop down. > > > >Now - what do I have to change so my service will > >behave as nicely? If you know, I'd appreciate > hearing > >it. If not, I'll see if I can dig up a local > Windows > >maven. > > > >Thanks again for watching this list. Sincerely, > MOD > > > > > >--- "Shapira, Yoav" <[EMAIL PROTECTED]> wrote: > >> > >> Howdy, > >> Can you try running tomcat from the command-line, > >> without a security > >> manager, not as a service, and see what happens? > >> > >> Yoav Shapira > >> Millennium ChemInformatics > >> > >> > >> >-----Original Message----- > >> >From: Michael Duffy [mailto:[EMAIL PROTECTED] > >> >Sent: Friday, June 27, 2003 7:24 AM > >> >To: Tomcat Users List > >> >Subject: Re: PrintServiceLookup And Tomcat > >> > > >> > > >> >Hi Jason, > >> > > >> >Yes, it's a Windows service and they are network > >> >printers. > >> > > >> >Your point about changing the user under which > >> Tomcat > >> >is running is interesting, but I'm not sure I > >> >understand what I should do. Can you give more > >> >details or point me to a reference? > >> > > >> >The logs are all clean - no exceptions, no > >> problems, > >> >just no print services found. > >> > > >> >I did add a check to the code using > SecurityManager > >> >checkPrintJobAccess(). This throws a > >> >SecurityException if the servlet is not > authorized > >> to > >> >queue print jobs. No exception, but no print > >> >services, either. > >> > > >> >Any advice would be most welcome. I'll keep > >> digging > >> >with Google. Thanks - MOD > >> > > >> > > >> > > >> >--- Jason Bainbridge <[EMAIL PROTECTED]> wrote: > >> >> On Fri, 27 Jun 2003 04:45, Michael Duffy > wrote: > >> >> > I've got a Web app running on Tomcat 4.1.24 > and > >> >> JDK > >> >> > 1.4.1 on a Windows 2000 desktop. > >> >> > > >> >> > I'm generating a PDF that I'd like to be > able > >> to > >> >> send > >> >> > to a printer attached to the machine on > which > >> >> Tomcat > >> >> > is running. > >> >> > >> >> How are you running Tomcat? As a windows > service? > >> If > >> >> you are you will need to > >> >> change the user the service is running under > as I > >> am > >> >> assuming they are > >> >> network printers? > >> >> > >> >> Other than that I'm not too sure, have you > tried > >> >> looking in the Tomcat logs? > >> >> > >> >> Regards, > >> >> -- > >> >> Jason Bainbridge > >> >> http://jblinux.org > >> >> > >> >> > >> > >>--------------------------------------------------------------------- > >> >> To unsubscribe, e-mail: > >> >> [EMAIL PROTECTED] > >> >> For additional commands, e-mail: > >> >> [EMAIL PROTECTED] > >> >> > >> > > >> > > >> >__________________________________ > >> >Do you Yahoo!? > >> >SBC Yahoo! DSL - Now only $29.95 per month! > >> >http://sbc.yahoo.com > >> > > >> > >>--------------------------------------------------------------------- > >> >To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> >For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > >> > >> > >> > >> This e-mail, including any attachments, is a > >> confidential business communication, and may > contain > >> information that is confidential, proprietary > and/or > >> privileged. This e-mail is intended only for the > >> individual(s) to whom it is addressed, and may > not > >> be saved, copied, printed, disclosed or used by > >> anyone else. If you are not the(an) intended > >> recipient, please immediately delete this e-mail > >> from your computer system and notify the sender. > >> Thank you. > >> > >> > >> > >--------------------------------------------------------------------- > >> To unsubscribe, e-mail: > >> [EMAIL PROTECTED] > >> For additional commands, e-mail: > >> [EMAIL PROTECTED] > >> > > > > > >__________________________________ > >Do you Yahoo!? > >SBC Yahoo! DSL - Now only $29.95 per month! > >http://sbc.yahoo.com > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: > [EMAIL PROTECTED] > >For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > This e-mail, including any attachments, is a > confidential business communication, and may contain > information that is confidential, proprietary and/or > privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not > be saved, copied, printed, disclosed or used by > anyone else. If you are not the(an) intended > recipient, please immediately delete this e-mail > from your computer system and notify the sender. > Thank you. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
