RE: Tomcat As A Service Printing Problem
Perhaps its to do with the user that tomcat runs as Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 19 August 2004 10:16 To: Tomcat Users List Subject: Tomcat As A Service Printing Problem My webapp on Tomcat was printing successfully when I used to run it without a service. But when I started Tomcat as a service then printing failed, any reasons ? Please assist if someone can. Thanks S H A K E E L A H M A D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Any opinions expressed in this E-mail may be those of the individual and not necessarily the company. This E-mail and any files transmitted with it are confidential and solely for the use of the intended recipient. If you are not the intended recipient or the person responsible for delivering to the intended recipient, be advised that you have received this E-mail in error and that any use or copying is strictly prohibited. If you have received this E-mail in error please notify the beCogent postmaster at [EMAIL PROTECTED] Unless expressly stated, opinions in this email are those of the individual sender and not beCogent Ltd. You must take full responsibility for virus checking this email and any attachments. Please note that the content of this email or any of its attachments may contain data that falls within the scope of the Data Protection Acts and that you must ensure that any handling or processing of such data by you is fully compliant with the terms and provisions of the Data Protection Act 1984 and 1998. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat As A Service Printing Problem
Thanks, also is there any posiibility that back-slashes are converted to foeward slashes. S H A K E E L A H M A D -Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 2:12 PM To: Tomcat Users List Subject: RE: Tomcat As A Service Printing Problem Perhaps its to do with the user that tomcat runs as Ta Matt -Original Message- From: Shakeel [mailto:[EMAIL PROTECTED] Sent: 19 August 2004 10:16 To: Tomcat Users List Subject: Tomcat As A Service Printing Problem My webapp on Tomcat was printing successfully when I used to run it without a service. But when I started Tomcat as a service then printing failed, any reasons ? Please assist if someone can. Thanks S H A K E E L A H M A D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat As A Service Printing Problem
On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to assist you. What do you mean by print, that the browser's File-Print function no longer works? What's in the Tomcat logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:13 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to assist you. What do you mean by print, that the browser's File-Print function no longer works? What's in the Tomcat logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat As A Service Printing Problem
What's your OS? if you're running on WNT, W2K, W2003 or WXP your account for the service probably is LocalSystem and that's an account that, in general terms, doesn't have too much permission on the net. Try changing your account to an Active Directory account. Shakeel escribió: 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 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:13 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to assist you. What do you mean by print, that the browser's File-Print function no longer works? What's in the Tomcat logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat As A Service Printing Problem
I am using windows 2000 Professional, and can not know what type of users are there, how can I figure out these details on win2K pro. S H A K E E L A H M A D -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:31 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem What's your OS? if you're running on WNT, W2K, W2003 or WXP your account for the service probably is LocalSystem and that's an account that, in general terms, doesn't have too much permission on the net. Try changing your account to an Active Directory account. Shakeel escribió: 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 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:13 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to assist you. What do you mean by print, that the browser's File-Print function no longer works? What's in the Tomcat logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat As A Service Printing Problem
Well, you'll have to right-click on My PC and click Administration (or something like that), then go to the services node on the tree on the left panel. All the services will appear on the right panel, double click on tomcat an then assign an account with privileges to print on the printer you want to print (print print print print print print print LOL, that was 10 times.)... then, you're done Shakeel escribió: I am using windows 2000 Professional, and can not know what type of users are there, how can I figure out these details on win2K pro. S H A K E E L A H M A D -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:31 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem What's your OS? if you're running on WNT, W2K, W2003 or WXP your account for the service probably is LocalSystem and that's an account that, in general terms, doesn't have too much permission on the net. Try changing your account to an Active Directory account. Shakeel escribió: 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 -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 6:13 PM To: Tomcat Users List Subject: Re: Tomcat As A Service Printing Problem On Thu, Aug 19, 2004 at 02:16:25PM +0500, Shakeel wrote: : My webapp on Tomcat was printing successfully when I used to run it without : a service. But when I started Tomcat as a service then printing failed, any : reasons ? Your post is severely lacking in information, which makes it difficult to assist you. What do you mean by print, that the browser's File-Print function no longer works? What's in the Tomcat logs? -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat As A Service Printing Problem
hi, does anyone have any idea why each request to my application goes through twice each time? I am basing this on my log4j logs which show each logging entry twice for requests e.g here is 1 click to the web app 2004-08-19 15:46:06,066 - DEBUG (iq.actions.LoadPageAction:136) - cached cache_sr_5_pg_1 2004-08-19 15:46:06,066 - DEBUG (iq.actions.LoadPageAction:136) - cached cache_sr_5_pg_1 2004-08-19 15:46:07,237 - DEBUG (iq.actions.LoadPageAction:136) - cached cache_sr_100_pg_1 2004-08-19 15:46:07,237 - DEBUG (iq.actions.LoadPageAction:136) - cached cache_sr_100_pg_1 cheers FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE --- QAS Ltd. Developers of QuickAddress Software a href=http://www.qas.com;www.qas.com/a Registered in England: No 2582055 Registered in Australia: No 082 851 474 --- /FONT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat As A Service Printing Problem
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