tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hamidene, Anis Ben" <A.Hami...@dzbw.de>
Subject AW: No printers when run as service.
Date Thu, 24 Jul 2003 07:04:42 GMT
Hi,
 i am having problems too with tomcat when run as a service. Which other
reply do you mean? 

Best regrads 

Anis B.H.
  



> -----Urspr√ľngliche Nachricht-----
> Von: Anthony Cunningham [mailto:anthony.cb@om.asahi-kasei.co.jp] 
> Gesendet: Donnerstag, 24. Juli 2003 06:14
> An: Tomcat Users List
> Betreff: Re: No printers when run as service.
> 
> 
> 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/Prin
> > tReport.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(ApplicationDispa
> > tcher.java:683)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDi
> > spatcher.java:431)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDisp
> > atcher.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.jav
> > a: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(Appli
> > cationFilterChain.java:247)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:193)
> >
> >  at
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> > lve.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(StandardContextVa
> > lve.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:2
> > 347)
> >
> >  at
> > 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> > va:180)
> >
> >  at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> > java:566)
> >
> >  at
> > 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
> > Valve.java:170)
> >
> >  at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> > java:564)
> >
> >  at
> > 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> > va: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:17
> > 4)
> >
> >  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.jav
> > a: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/Prin
> > tReport.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(ApplicationDispa
> > tcher.java:683)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDi
> > spatcher.java:431)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDisp
> > atcher.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.jav
> > a: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(Appli
> > cationFilterChain.java:247)
> >
> >  at
> > 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> > lterChain.java:193)
> >
> >  at
> > 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> > lve.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(StandardContextVa
> > lve.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:2
> > 347)
> >
> >  at
> > 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> > va:180)
> >
> >  at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> > java:566)
> >
> >  at
> > 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcher
> > Valve.java:170)
> >
> >  at
> > 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.
> > java:564)
> >
> >  at
> > 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> > va: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(StandardP
> ipeline.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.jav
> > a: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
> 

---------------------------------------------------------------------
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