Just a guess, but your printer seems to be a network shared printer, not local, and the userid under which your service is running probably does not have access to that printer. If you administer services, you can see what userid the Tomcat service runs under and either 1) give that user access to the shared printer (done elsewhere) or 2) Change the service to run under a different userid, which has access to the printer. If you choose to go this way, you should ensure that the different userid has access to the directories required to run Tomcat, and access to the printer, but nothing else.
Please respond to "Tomcat Users List" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> cc: Subject: RE: Tomcat As A Service Printing Problem Here is the actual situation. Java Printing API(javax.printing), is being used for printing , works fine when Tomcat was running without a service, but as we run tomcat as a windows service then the printing failed, logs show that network printer can not be found. This is the log trace. ERROR 2004-08-19 14:05:57,765 - Checks.printCheck:4295 - Error while Printing check javax.print.PrintException: Printer Not Found: \\sibisoft-saleem\TerminalPrinter However as a non-service it does not throw any exception and printing works. S H A K E E L A H M A D
