request.getUserprincipal() and my custom Principal
Hi, I am using JBoss 3.2.1 with Tomcat 4. I am developping a secure web-application based on JAAS. The problem is that I want to use my own custom Principal. I made the necessary changes in JBoss and EJBContext.getUserprincopal delivers the right Implementation. But when I call request.getUserprincipal() in my servlet, I get don´t !! Why doesn´t tomcat use the defined custom Principal? How to set this? Please help as soon as possible !!! Mit freundlichen Grüßen -- Dipl. Ing. Anis Ben Hamidene Datenzentrale Baden-Württemberg pers. Tel: 0711-8108700 Fax: 0711-8108-542 pers. Email: [EMAIL PROTECTED]
AW: No printers when run as service.
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:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
HELP !!!!!
Hi, i have configured my application to be automatically loaded when tomcat starts. But when I start tomcat my servlet isn´t loaded. I have seen the logs of tomcat and found the following: 2003-07-11 09:34:45 ContextConfig[/LADIVA-AZR] Exception processing JAR at resource path /WEB-INF/lib/ParserXMLAPIs.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/ParserXMLAPIs.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647) - Root Cause - java.io.IOException: The system couldn´t find the file at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1314) at java.io.File.createTempFile(File.java:1402) at java.io.File.createTempFile(File.java:1439) ... 003-07-11 09:34:45 ContextConfig[/LADIVA-AZR]: Marking this application unavailable due to previous error(s) The jar-File exists however. what do you think the problem is? Please HELP ASAP Anis
AW: HELP !!!!!
Hi, Sorry for the stupid question. As I tried to delete unecessary files I have deleted the temp-directory . Well I had to read the documentation. Yours anis -Ursprüngliche Nachricht- Von: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Juli 2003 09:43 An: [EMAIL PROTECTED] Betreff: HELP ! Wichtigkeit: Hoch Hi, i have configured my application to be automatically loaded when tomcat starts. But when I start tomcat my servlet isn´t loaded. I have seen the logs of tomcat and found the following: 2003-07-11 09:34:45 ContextConfig[/LADIVA-AZR] Exception processing JAR at resource path /WEB-INF/lib/ParserXMLAPIs.jar javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/ParserXMLAPIs.jar at org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo nfig.java:930) at org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi g.java:868) at org.apache.catalina.startup.ContextConfig.start(ContextConfig. java:647) - Root Cause - java.io.IOException: The system couldn´t find the file at java.io.WinNTFileSystem.createFileExclusively(Native Method) at java.io.File.checkAndCreate(File.java:1314) at java.io.File.createTempFile(File.java:1402) at java.io.File.createTempFile(File.java:1439) ... 003-07-11 09:34:45 ContextConfig[/LADIVA-AZR]: Marking this application unavailable due to previous error(s) The jar-File exists however. what do you think the problem is? Please HELP ASAP Anis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: HELP !!!!!
I only have to (re)create the directory temp in the tomcat dir. Thanks anis -Ursprüngliche Nachricht- Von: Jan Behrens [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 11. Juli 2003 14:08 An: Tomcat Users List Betreff: RE: HELP ! Hi, I am only making a wild guess but that -- java.io.IOException: The system couldn´t find the file at java.io.WinNTFileSystem.createFileExclusively(Native Method) sounds like it might be a problem with the user-rights. Have you checked that the user Tomcat is running under has full access (read/write) to all directories needed? And perhaps that the mentioned file isn't marked archived. Only guessing... HTH, Jan - 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]
AW: Running Tomcat as Windows Service
Hi, Thanks. I used the same method to install my service, but when I call my servlet, tomcat hangs down. I have to stop it and restart it. Do you know why? -Ursprüngliche Nachricht- Von: Pitre, Russell [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Juli 2003 16:39 An: Tomcat Users List Betreff: RE: Running Tomcat as Windows Service I used this to create my nt service. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM E%\lib\too ls.jar -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log Russ -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Running Tomcat as Windows Service Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis - 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]
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
How can I deactivate the access logging
Hi, i have noticed that tomcat logs all calls to the file localhost_access_log. Is it possible to deactivate this feature ? Best regards anis
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
AW: Starting a sevlet automatically when Tomcat starts
Hi, my error was that I implemented my initialisation in the doGet method, not the init. I thought tomcat would call the servlet. Bye -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juli 2003 20:17 An: Tomcat Users List Betreff: RE: Starting a sevlet automatically when Tomcat starts Howdy, From the DTD: The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. So, Tomcat developers.. what does Tomcat do with an empty tag ? A missing or non-numeric value is converted to a zero. Yoav Shapira 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I could install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , evrything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
Starting a sevlet automatically when Tomcat starts
Hi, i need to start a servlet automatically when tomcat starts (could be a windows NT service). How is this possible with Tomcat 4.1.2? Thanks Best Regards anis
AW: Starting a sevlet automatically when Tomcat starts
Hi, that´s what I need. But it didn´t work. Shall I make any other configuration? Here is a portion of my web.xml: servlet servlet-name propertiesLoader /servlet-name servlet-class com.dzbw.ladiva.azrinterface.PropertiesLoader /servlet-class load-on-startup / /servlet servlet-mapping servlet-name propertiesLoader /servlet-name url-pattern /pLoader /url-pattern /servlet-mapping Best Regards anis -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juli 2003 18:13 An: Tomcat Users List Betreff: RE: Starting a sevlet automatically when Tomcat starts Howdy, How about just adding load-on-startup / to the servlet tag in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Starting a sevlet automatically when Tomcat starts Importance: High Hi, i need to start a servlet automatically when tomcat starts (could be a windows NT service). How is this possible with Tomcat 4.1.2? Thanks Best Regards anis 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Starting a sevlet automatically when Tomcat starts
Hi, Thanx alot it works now! anis -Ursprüngliche Nachricht- Von: Mike Curwen [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juli 2003 19:50 An: 'Tomcat Users List' Betreff: RE: Starting a sevlet automatically when Tomcat starts From the DTD: The optional contents of these element must be an integer indicating the order in which the servlet should be loaded. If the value is a negative integer, or the element is not present, the container is free to load the servlet whenever it chooses. So, Tomcat developers.. what does Tomcat do with an empty tag ? Try : load-on-startup0/load-on-startup -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 12:41 PM To: Tomcat Users List Subject: AW: Starting a sevlet automatically when Tomcat starts Hi, that´s what I need. But it didn´t work. Shall I make any other configuration? Here is a portion of my web.xml: servlet servlet-name propertiesLoader /servlet-name servlet-class com.dzbw.ladiva.azrinterface.PropertiesLoader /servlet-class load-on-startup / /servlet servlet-mapping servlet-name propertiesLoader /servlet-name url-pattern /pLoader /url-pattern /servlet-mapping Best Regards anis -Ursprüngliche Nachricht- Von: Shapira, Yoav [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 2. Juli 2003 18:13 An: Tomcat Users List Betreff: RE: Starting a sevlet automatically when Tomcat starts Howdy, How about just adding load-on-startup / to the servlet tag in your web.xml? Yoav Shapira Millennium ChemInformatics -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 11:47 AM To: [EMAIL PROTECTED] Subject: Starting a sevlet automatically when Tomcat starts Importance: High Hi, i need to start a servlet automatically when tomcat starts (could be a windows NT service). How is this possible with Tomcat 4.1.2? Thanks Best Regards anis 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] - 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]