tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anthony Cunningham <anthony...@om.asahi-kasei.co.jp>
Subject Re: No printers when run as service.
Date Thu, 24 Jul 2003 04:13:49 GMT
thanks that worked
the other reply is correct also
Printservice and Tomcat was a previous thread on this issue if anyone else needs more information

John Corrigan wrote:

> You might try changing the user which tomcat runs as and see if that helps.
>
> -----Original Message-----
> From: Anthony Cunningham [mailto:anthony.cb@om.asahi-kasei.co.jp]
> Sent: Monday, July 21, 2003 10:46 PM
> To: Tomcat Users List
> Subject: No printers when run as service.
>
> I tried searching the archives and google for this but without success.
>
> I am running Tomcat 4.0.4 on Windows NT 4.0 Service pack 6 (Japanese).
> Due to the nature of our application we are using Adobe PDFWriter as a
> virtual printer to create a PDF file on the harddrive which is then
> streamed to the user and deleted.  When Tomcat is run from the command
> line it works ok however when run as a service the error below occurs.
> Does anyone know why this might happen and a possible solution?
>
> thanks for the help,
> Anthony Cunningham
>
> java.awt.print.PrinterException: No printer found.
>  at sun.awt.windows.WPrinterJob._startDoc(Native Method)
>  at sun.awt.windows.WPrinterJob.startDoc(WPrinterJob.java:680)
>  at sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:315)
>  at
> ajs.dvr.client.print.PrintReport.printReport(ajs/dvr/client/print/PrintReport.java:371)
>
>  at ajs.dvr.web.servlet.DynamicPDF.createPDF(Unknown Source)
>  at ajs.dvr.web.servlet.DynamicPDF.printPDF(Unknown Source)
>  at ajs.dvr.web.servlet.DynamicPDF.doGet(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
>
>  at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
>
>  at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
>
>  at ajs.wgfw.ctrl.SubController.gotoPage(SubController.java:1579)
>  at ajs.wgfw.ctrl.SubController.execute(SubController.java:323)
>  at
> ajs.wgfw.ctrl.AbstractMainController.doMain(AbstractMainController.java:657)
>
>  at
> ajs.wgfw.ctrl.AbstractMainController.doGet(AbstractMainController.java:436)
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apach
> e.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
>
>  at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
>
>  at java.lang.Thread.run(Thread.java:484)
> java.awt.print.PrinterException: No printer found.
>  at sun.awt.windows.WPrinterJob._startDoc(Native Method)
>  at sun.awt.windows.WPrinterJob.startDoc(WPrinterJob.java:680)
>  at sun.java2d.RasterPrinterJob.print(RasterPrinterJob.java:315)
>  at
> ajs.dvr.client.print.PrintReport.printReport(ajs/dvr/client/print/PrintReport.java:371)
>
>  at ajs.dvr.web.servlet.DynamicPDF.createPDF(Unknown Source)
>  at ajs.dvr.web.servlet.DynamicPDF.printPDF(Unknown Source)
>  at ajs.dvr.web.servlet.DynamicPDF.doGet(Unknown Source)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:683)
>
>  at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:431)
>
>  at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:355)
>
>  at ajs.wgfw.ctrl.SubController.gotoPage(SubController.java:1579)
>  at ajs.wgfw.ctrl.SubController.execute(SubController.java:323)
>  at
> ajs.wgfw.ctrl.AbstractMainController.doMain(AbstractMainController.java:657)
>
>  at
> ajs.wgfw.ctrl.AbstractMainController.doGet(AbstractMainController.java:436)
>
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
>
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
>
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
>
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
>
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineV
> alve.java:174)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
>
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
>
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027)
>
>  at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125)
>
>  at java.lang.Thread.run(Thread.java:484)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message