Re: threads in TC 4.1.29
worker threads are ok. Ie threads you create to do a specific task and then they terminate. Monitor threads (that stay active as long as the application is active), is a different story, especially in a clustered environment. Not sure about Tomcat, but we had endless problems in WebLogic using threads like this and ended up re-designing a part of our system. --- Maksimenko Alexander [EMAIL PROTECTED] wrote: Hi! I need organize in my web application sending emails in nonblocking way. So I'll create a message queue and thread that will pop messages from the queue and send them. But I have doubt about it is safe to create my own threads in web application? and if not how can I organize nonblocking processing without threads creating ? -- Maksimenko Alexander Softwarium, www.softwarium.net - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Servlets not executed
Hello everyone, My servlets are not getting executed - though I have deployed them in the webapps directory.It is giving the following exception : java.net.ConnectException Connection refused : connect. Please help. Regards, Teja. - Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing
Problem with loading mod_jk2.so
Hi iam having problem with loading mod_jk2.so on AIX5. There is no exact error message.what i get is only Syntax error on line 1050 of /bis3/bo_home/apache_2.0.48/conf/httpd.conf: Cannot load /bis3/bo_home/apache_2.0.48/modules/mod_jk2.so into server: nothing is reported further.. Regards,Pavan Kumar TCS ** Message from InterScan E-Mail VirusWall NT ** ** No virus found in attached file noname.htm ** No virus found in attached file noname.htm NO VIRUS FOUND: SERVER GENERATED MESSAGE * End of message *** DISCLAIMER: The information contained in this message is intended only and solely for the addressed individual or entity indicated in this message and for the exclusive use of the said addressed individual or entity indicated in this message (or responsible for delivery of the message to such person) and may contain legally privileged and confidential information belonging to Tata Consultancy Services. It must not be printed, read, copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person other than the addressee. Unauthorized use, disclosure or copying is strictly prohibited and may constitute unlawful act and can possibly attract legal action, civil and/or criminal. The contents of this message need not necessarily reflect or endorse the views of Tata Consultancy Services on any subject matter. Any action taken or omitted to be taken based on this message is entirely at your risk and neither the originator of this message nor Tata Consultancy Services takes any responsibility or liability towards the same. Opinions, conclusions and any other information contained in this message that do not relate to the official business of Tata Consultancy Services shall be understood as neither given nor endorsed by Tata Consultancy Services or any affiliate of Tata Consultancy Services. If you have received this message in error, you should destroy this message and may please notify the sender by e-mail. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Q] : 'Hiding' applications?
I've got a broadband connection at home and am setting up a test application which I want some friends to access test. But I only want that one application visible, not i.e. the Tomcat Manager also. How do I do this? I still want the Manager (and all other apps) visible locally, but not for browsers accessing from the outside. Can I do this with Tomcat or maybe my firewall (ZoneAlarm)? Do I have to install a seperate Tomcat instance on a different port? Thanks. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Building 5.1 from Source
Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna
Annoying problem when using new jar files
Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) 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:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534) The problem is not so annoying so far, but I guess you all see when I say this: I have tried with another test.jar file and test.jsp and nothing fails!!! Why this test.jar works and the other one I want to work doesn't? I have tried to use this .jar file with the resin (another jsp server) and it also fails, may it be that the jar file is corrupted? I have created the jar file in two different computers and both fail. I have read the documentation about tomcat 4.1 and apache, but I have found nothing useful. I have thought about installing the new tomcat 5 but if the test.jar works it means tomcat 4 is working fine, or not? Can anybody help me with this? Thanks in advance, sorry for my rusty english. Gorka Garay Diseo y Desarrollo SISTEMASJUDO Ctra. Basurto - Castrejana, 70 48 002 Bilbao tel / fax (+34) 944 393 061 www.sistemasjudo.com
Can not include javascript using TC 4.1.29
Howdy, I am developing a web app using win2k pro + Tomcat In a servlet , the following code works ( file /script/utility.js can be get by IE) sb.append (html\n); sb.append (head\n); sb.append ( getContentTypeMeta(_req) ); sb.append (script language=javascript1.2 src=\/script/utility.js\/script\n); ^ but when the preceding slash is deleted, IE can not get the js file sb.append (html\n); sb.append (head\n); sb.append ( getContentTypeMeta(_req) ); sb.append (script language=javascript1.2 src=\script/utility.js\/script\n); ^ no / here BTW, both are OK under TC 4.0.1. Because the web app will be deployed in another servlet container which only recognize the first format , I want to using the format with preceding / , how should I do ? ( better not to use 4.0.1 :) TIA
Re: Admintool cannot save changes to servers.xml
George Sexton wrote: Do the log files contain no information? Hi George, I tried with a clean installation and this time also checked the log files. As I'm not so familiar with understanding these log files, I've put them all up on http://home.arcor.de/plsdontreply/tomcatlogs/. In the adminlog, http://home.arcor.de/plsdontreply/tomcatlogs/localhost_admin_log.2003-12-29.txt I cannot find anything regarding save or Commit Changes. Maybe you can find out whats wrong from my log files. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Annoying problem when using new jar files
What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534) The problem is not so annoying so far, but I guess you all see when I say this: I have tried with another test.jar file and test.jsp and nothing fails!!! Why this test.jar works and the other one I want to work doesn't? I have tried to use this .jar file with the resin (another jsp server) and it also fails, may it be that the jar file is corrupted? I have created the jar file in two different computers and both fail. I have read the documentation about tomcat 4.1 and apache,
tomcat5.09 and cocoon 2 0 4
hi to all i hope you had a mery xmas and a happy new year. i just downloaded cocoon 204-vm14 i am delploying the war file using the manager aplication and i get false at the running stage. i have also copping the war file under webapps and restarting tomcat. does any one have any idea why cocoon would not start? best regards wishes for the new year Billy Kantartzis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can not include javascript using TC 4.1.29
I would advice to always include the context path when constructing url's, certainly when building them manually. Changing the / before the js url influences where Tomcat looks for it. I'm not 100% sure, as I always use the context path (and not relative paths like you do). My guess is you should do this: src = contextPath + /script/utility.js Then you are sure you are correct. I think using the / means Tomcat looks for it relative to the server. Not using the slash, means Tomcat looks for it relative from its current 'position' (or context root). If you have an application context and/or directoty structure underneath it, using the slash looks at a different place than not using the /. Example: if you have a jsp in the root and a jsp in a subdir, then they will both work with the / (assuming the js is actually located at the correct place), but one will fail without the /. In a servlet , the following code works ( file /script/utility.js can be get by IE) sb.append (html\n); sb.append (head\n); sb.append ( getContentTypeMeta(_req) ); sb.append (script language=javascript1.2 src=\/script/utility.js\/script\n); ^ but when the preceding slash is deleted, IE can not get the js file: sb.append (html\n); sb.append (head\n); sb.append ( getContentTypeMeta(_req) ); sb.append (script language=javascript1.2 src=\script/utility.js\/script\n); ^ no / here BTW, both are OK under TC 4.0.1. Because the web app will be deployed in another servlet container which only recognize the first format , I want to using the format with preceding / , how should I do ? ( better not to use 4.0.1 :) TIA __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Annoying problem when using new jar files
That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585) at java.lang.Thread.run(Thread.java:534) The problem is not so annoying so far, but I guess you all see when I say this: I have tried with another test.jar file and test.jsp and nothing fails!!! Why this test.jar works and the other one I want to work doesn't? I have
Re: Annoying problem when using new jar files
Have you tried pre-compiling your jsp's with jasper? Do it from your ant build script. (assuming you use ant). --- Gorka Garay [EMAIL PROTECTED] wrote: That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466) at
How can I debug a webapp running in Tomcat?
Hi Is there a way to debug a webapp running in Tomcat. Essentially I want to see the flow the function calls in a web app when it receives a request from the client. thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I debug a webapp running in Tomcat?
You can just configure log4j (or commons logging) and log everything you want. If your app uses struts, set the struts logging to debug or trace level and I am sure you'll get a lot of info from that too. --- Agarwal, Naresh [EMAIL PROTECTED] wrote: Hi Is there a way to debug a webapp running in Tomcat. Essentially I want to see the flow the function calls in a web app when it receives a request from the client. thanks, Naresh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
What after reloading a context
Hi all, What happens to all loaded servlets on reloading a context ?. All servlets are destroyed first then these are initialised after reload before any request is arrived ?. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: What after reloading a context
The reloading would depend on your configuration for that servlet, in the load-on-startup parameter. If not specified, it would be reloaded when the servlet is called the first time. If specified, it would be reloaded when the context/application is reloaded. --- Antony Paul [EMAIL PROTECTED] wrote: Hi all, What happens to all loaded servlets on reloading a context ?. All servlets are destroyed first then these are initialised after reload before any request is arrived ?. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I debug a webapp running in Tomcat?
Hi Nilesh, There are many ways to see debugging statements. One is to add System.out.println() at various places in your java source files and when you run those files you could see the statements on the Tomcat console. If you are using some logging utility like LOG4J then you can specify the some log file where you want to put your logging/trace staments. You need to see how to configure logging utility with tomcat. I hope this helps you. Dharmesh. -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 3:05 PM To: [EMAIL PROTECTED] Subject: How can I debug a webapp running in Tomcat? Hi Is there a way to debug a webapp running in Tomcat. Essentially I want to see the flow the function calls in a web app when it receives a request from the client. thanks, Naresh
RE: Annoying problem when using new jar files
Where did you put this jar file with XX? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder:Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 9:23 Para: Tomcat Users List Assunto: Re: Annoying problem when using new jar files That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja va:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
Re: Annoying problem when using new jar files
Thanks all of you for your answers, but the problem is solved! The thing was that I was trying to import a package with a wrong name! What a stupid mistake I was making! Sorry for this. I feel embarrassed : ( - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 2:53 PM Subject: RE: Annoying problem when using new jar files Where did you put this jar file with XX? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 9:23 Para: Tomcat Users List Assunto: Re: Annoying problem when using new jar files That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1 72) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
[OT] custom tags in a page
Hi, I wrote two custom tags. One is used only once in the page(msgtag) while the other one is used multiple times(outtag) similar to JSTL c:out. Both classes extends BodyTagSupport. When I looked at the compiled servlet code both tags are called in different ways. Each use of msgtag is made a method call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. outtag is invoked directly in servlet. Why the difference ?. Is this behavior can be controlled through coding ?. Which one is better ?. Why Tomcat is creating one method per each tag invocation.? Why not manage it like an object. Each time it is getting an instance from a pool ? BTW Extending TagSupport or BodyTagSupport is better. I have no need to process the body ? Any performance gain ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Errors when connecting Tomcat to Apache
How do I create the workers.properties? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
It's Working !!!!! - Need Help - JDBC MySQL Apache 2.0.48 + Tomcat 4.1.29 + Mod_jk2 + Windows 2000 Server ( No IIS)
Please disregard my last 12/28/2003 request for help. I now have Windows 2000 Server ( No IIS), Tomcat 4.1.29, Apache 2.0.48, Mod_jk2 and MySQL 4.1.0 working together in concert. Man, it's pretty cool when everything works together. I'd like to thanks everyone who answered my requests and offered great suggestions and solid solutions. Happy Holidays, Regards, Lenny Sorey - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] : 'Hiding' applications?
Howdy, You may wish to read up on the RemoteAddress and RemoteHost filter valves (see the Valve configuration reference page). You don't have to setup a separate tomcat instance. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 5:58 AM To: [EMAIL PROTECTED] Subject: [Q] : 'Hiding' applications? I've got a broadband connection at home and am setting up a test application which I want some friends to access test. But I only want that one application visible, not i.e. the Tomcat Manager also. How do I do this? I still want the Manager (and all other apps) visible locally, but not for browsers accessing from the outside. Can I do this with Tomcat or maybe my firewall (ZoneAlarm)? Do I have to install a seperate Tomcat instance on a different port? Thanks. __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: Building 5.1 from Source
Howdy, I doubt anyone can help you with tomcat 5.1. I haven't been able to build it either, largely because it doesn't exist ;) Assuming you're talking about 5.0.16 or HEAD, simply follow the BUILDING.txt instructions. You will need all the modules checked out (i.e. catalina, connectors, servlet-api...). You shouldn't have any problems with CVS anon checkout. The download target will download dependencies for you but you will most likely have to tailor build.properties for your system. Yoav Shapira Millennium ChemInformatics -Original Message- From: Ramakrishna Rallapalli [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 6:05 AM To: Tomcat Users List Subject: Building 5.1 from Source Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna 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]
RE: Annoying problem when using new jar files
Howdy, Don't feel embarrassed, it's a common mistake that not too many people would admit on this list ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Gorka Garay [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 8:04 AM To: Tomcat Users List Subject: Re: Annoying problem when using new jar files Thanks all of you for your answers, but the problem is solved! The thing was that I was trying to import a package with a wrong name! What a stupid mistake I was making! Sorry for this. I feel embarrassed : ( - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 2:53 PM Subject: RE: Annoying problem when using new jar files Where did you put this jar file with XX? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 9:23 Para: Tomcat Users List Assunto: Re: Annoying problem when using new jar files That´s the name of the package that I want to import to my jsp from the .jar file =D - Original Message - From: Edson Alves Pereira [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:59 PM Subject: RE: Annoying problem when using new jar files What´s import XX .*;? -- De: Gorka Garay[SMTP:[EMAIL PROTECTED] Responder: Tomcat Users List Enviada: segunda-feira, 29 de dezembro de 2003 8:19 Para: [EMAIL PROTECTED] Assunto: Annoying problem when using new jar files Hi, This is my very first message for this tomcat users' list, so sorry for every mistakes I am going to make. I have apache+tomcat 4 installed on debian, and everything was working fine untill I tried to add a new .jar file. I have added new jar files before and everything has always worked fine. I don't understand why this time is different. The thing is that when I add the new jar file to the classpath and I restart tomcat, nothing fails; but when I try to execute the jsp, I get this error: Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. [javac] /opt/tomcat/work/Standalone/localhost/_/4.0/index_jsp.java:10: package XX does not exist [javac] import XX .*; When I take a look at catalina.out I find this: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:317) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java :473) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java :190) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati onFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter Chain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve. java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve. java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480 ) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1 80) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv e.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.inv okeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
RE: Errors when connecting Tomcat to Apache
Try this URL: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/index.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 29 2003 . 15:26 To: Tomcat Users List Subject: Re: Errors when connecting Tomcat to Apache How do I create the workers.properties? - 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: Context docBase + linux
Howdy, Change the permissions on it so that the tomcat user can read it. On unix systems, you can use the chmod command to do this (chmod -R u+rwx /home/webapptest for example). Yoav Shapira Millennium ChemInformatics -Original Message- From: Algirdas M. [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 6:34 PM To: [EMAIL PROTECTED] Subject: Context docBase + linux Hello, I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w... restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: getting Server.XML properties in servlets?
Howdy, Hmm, that's strange. Do you have other errors in your log? Two other things to try: 1. Use env-entry in your web.xml instead of Environment in server.xml to define these properties. 2. Put the Environment specifically inside your context in server.xml, not inside the global naming resources. Yoav Shapira Millennium ChemInformatics -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 3:36 PM To: Tomcat Users List Subject: Re: getting Server.XML properties in servlets? Ok I'm having some problems getting this value from my app.. here's what I have put into my server.xml: GlobalNamingResources Environment name=mailServer type=java.lang.String value=192.168.0.23/ Environment name=mailUser type=java.lang.String value=[EMAIL PROTECTED]/ /GlobalNamingResources according to the docs: name: The name of the environment entry to be created, relative to the java:comp/env context. from my servlet I try getting that using: InitialContext ctx = new InitialContext(); String mailServer = (String)ctx.lookup(java:comp/env/mailServer); String mailUser = (String)ctx.lookup(java:comp/env/mailUser); however this throws an exception: javax.naming.NameNotFoundException: Name mailServer is not bound in this Context at org.apache.naming.NamingContext.lookup(NamingContext.java:811) at org.apache.naming.NamingContext.lookup(NamingContext.java:181) at org.apache.naming.NamingContext.lookup(NamingContext.java:822) Any Ideas? I also tried setting it in server.xml to be mail/mailServer then looking it up as java:comp/env/mail/mailServer but it through the same exception saying Name mail is not bound in this Context. Thanks in advance, David - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 1:05 PM Subject: RE: getting Server.XML properties in servlets? Howdy, You can use env-entry-ref for this (read the servlet specification on this web.xml property and tomcat's JNDI How-To document for the server.xml Environment element). Yoav Shapira Millennium ChemInformatics -Original Message- From: David Erickson [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 24, 2003 2:58 PM To: Tomcat-User List Subject: getting Server.XML properties in servlets? Hi I am working on an app that relies on an address to a mail server.. and the mail server's address is different inside our network due to proxy stuff than it is from outside, and our app will be deployed in both places. Is it possible for me to set some kind of property inside my server.xml file then from within my servlet be able to get that property? thanks! -David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] 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]
Re: Context docBase + linux
Some confusion i guess, - Original Message - From: Algirdas M. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 29, 2003 12:33 AM Subject: Context docBase + linux Hello, wat was the path name you created /home/webbapptest or user/home/webbapptest or /user/home/webbapptest I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w...restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory if you are under unix, the chmod will do this read man chmod How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How can I debug a webapp running in Tomcat?
Howdy, Logging, like others said, and a debugger. JSwat is free and easy to integrate with tomcat (http://www.bluemarsh.com/java/jswat/docs/howto-servlet.html) and there are many other debuggers available. Yoav Shapira Millennium ChemInformatics -Original Message- From: Agarwal, Naresh [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:35 AM To: [EMAIL PROTECTED] Subject: How can I debug a webapp running in Tomcat? Hi Is there a way to debug a webapp running in Tomcat. Essentially I want to see the flow the function calls in a web app when it receives a request from the client. thanks, Naresh 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]
RE: help w/ Tomcat configuration
Howdy, I already got the http://localhost:8080/ working, but let me tell you that I barely understand the reason I have to install Tomcat, and thus I feel overwhelmed with all this configurations and settings. Welcome to the java and tomcat world ;) My Company wishes me replace their Lotus approach DB/interface with something more efficient and new, after some research I decided to implement MySQL, and Java JSP, I knew that I need to install Tomcat in order to display Java JSP pages, but that's all I know. You've made a solid choice, so you're already off to a good start. I already went to the Administrator/JSP Engine Config HOW-TO section under my local host, but I get easily intimidated by all the terms used Ant, jikes, forks, etc. Is there a section that explains all that, a glossary of sorts? Even though I have a pretty good idea of what all that means, I rather understand it before acting. Get a book, e.g. Core Servlets and JSPs. It gives an overview and explanation of all these terms and ideas. The book may look thick, but it's easy to read and you don't have to memorize all of it. It will save you weeks of frustration. Then when you have specific questions, ask them here and we'll help you out ;) 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]
RE: How to map Absolute URIs to subdirs in Tomcat's 'ROOT' context?
Howdy, Your JSPs should have the request getContextPath() as part of the image URL. Tomcat will not think /img is a webapp, it's smart enough to know what is and isn't a context path. And it's too bad you can't have relative image URLs, as that's really the correct solution. Yoav Shapira Millennium ChemInformatics -Original Message- From: Jeffery Cann [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 11:19 AM To: [EMAIL PROTECTED] Subject: How to map Absolute URIs to subdirs in Tomcat's 'ROOT' context? Greetings. I have an application that is currently running within my $CATALINA_HOME/webapps/mywebapp directory. I access it as: http://localhost:8080/mywebapp/ Within this webapp, there is an 'img' subdirectory. This contains all of the site images used in JSPs: $CATALINA_HOME/webapps/mywebapp/img/ Consequently, all of the JSPs use the absolute URI to reference images, i.e., img src=/mywebapp/img/logo.gif Now, I wish run mywebapp in Tomcat's 'ROOT' application context: $CATALINA_HOME/webapps/ROOT so that I can access it as http://localhost:8080/ I changed an example JSP to refer to this absolute URI: img src=/img/logo.gif [The 'img' subdirectory is now located at $CATALINA_HOME/ROOT/img after I expanded the mywebapp.war] Images referenced using the absolute URI /img/logo.gif do not load. Using a web browser, I can navigate to http://localhost:8080/img/logo.gif and it will load, so I don't think there is a permissions problem. I think when the JSP is compiled by Tomcat, it thinks that /img is an application context, rather than a subdirectory of the ROOT application context. My question: How can I configure Tomcat to allow my absolute URI reference to this image subdirectory? [NOTE: For various reasons, like secure (HTTPS) aliases, we are unable to use relative references to the 'img' directory.] Thanks for any suggestions. Jeff __ Do you Yahoo!? Free Pop-Up Blocker - Get it now http://companion.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: is it planned to support EAR files in Tomcat?
Howdy, Put your jar with the common code in the common/lib or shared/lib directory of tomcat. Read tomcat's classloader how-to document if you're not sure what these directories are. There are no plans for tomcat to support EARs (as tomcat is not going to be a full J2EE server). Communications between webapps is usually not that good an idea, as they're supposed to be self-contained. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexey Skorokhodov [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 8:29 AM To: [EMAIL PROTECTED] Subject: is it planned to support EAR files in Tomcat? hi! as I know, Tomcat does not support EAR modules. so, how can I communicate between two WAR-files ? I need to have something like 'gate', when java code from one WAR sends a message and a class from second WAR receives this message. I can create additional JAR file to store such 'gate', but afaik different WAR-files will have their own instances of such 'gate', which is not acceptable - they will not communicate. so, how to communicate in this situation (without using a database) ? I have read in Tomcat FAQ that EAR files are not supported because 'EJBs are not supported. But in this case I don't need EJB, I to have two war files in one class-loader. I know that 'common' and 'shared' folders can be used to share files. But in this case this application won't be compatible with other Appservers and servlet runners. thanks! Alexey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: java.lang.OutOfMemoryError
Howdy, hm..i see...but I am working on a server with 4GB of RAM,I think it should Your server has 4GB of physical RAM, but by default Java will allocate up to 64MB to the heap. You can modify this by using various -X parameters to the java runtime (read up on the Java VM Options if you're not familiar with tuning memory). Many things can cause OutOfMemoryErrors. You can search this list's archives to start with. The person who spoke about connections is likely talking about database connectiosn -- you have to make sure you close all your database objects (result sets, statements, connections) or release them back to a pool if that's where you get them. 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]
RE: New Object Pooling project
Howdy, Huh? Have you considered commons-pool? (http://jakarta.apache.org/commons/pool/) Yoav Shapira Millennium ChemInformatics -Original Message- From: David Boyer [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 3:02 PM To: [EMAIL PROTECTED] Subject: New Object Pooling project Hi all, I've released a beta of my Object Pooling software and it's freely available on my web site: http://web.bvu.edu/staff/david/pooling/ This is an extensible Object Pooling system that could be extending to handle pooling of just about any Object type. The initial release contains a full database connection pooling system. The main distinction between this pooling system and the others I can find is that there's no need to pre-configure the pools or use JNDI. 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]
RE: org.xml.sax.SAXParseException
Howdy, You get this out of the box, or have you modified manager.xml in any way? Anyways, don't bother with 5.0.14 (even though it should be fine), use 5.0.16 which is stable. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 2:09 PM To: [EMAIL PROTECTED] Subject: org.xml.sax.SAXParseException I'm having trouble getting tomcat 5.0.14 running on win ME. I have not set my classpath. I have set CATALINA_HOME (C:\jakarta-tomcat-5.0.14) and CATALINA_BASE and JAVA_HOME. I get the following error: INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.14\conf\Catalina\localhost\manager.xml Dec 26, 2003 6:56:35 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup declarations contained or pointed to by the document type declaration must be well-formed. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Un know n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.j ava: 612) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:744) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. java :257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4116 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl oyer .java:831) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: 252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat cher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1567) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeplo yer. java:511) at org.apache.catalina.core.StandardHost.install(StandardHost.java:890) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.jav a:52 3) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:468) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1002) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:3 93) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133) at
RE: is it planned to support EAR files in Tomcat?
You could also communicate with JMS. Once you get it up and running, its a pretty smooth way of communicating. You'd have to set up a message broker, of course. Are there any good (free / open source) ones out there? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Put your jar with the common code in the common/lib or shared/lib directory of tomcat. Read tomcat's classloader how-to document if you're not sure what these directories are. There are no plans for tomcat to support EARs (as tomcat is not going to be a full J2EE server). Communications between webapps is usually not that good an idea, as they're supposed to be self-contained. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexey Skorokhodov [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 8:29 AM To: [EMAIL PROTECTED] Subject: is it planned to support EAR files in Tomcat? hi! as I know, Tomcat does not support EAR modules. so, how can I communicate between two WAR-files ? I need to have something like 'gate', when java code from one WAR sends a message and a class from second WAR receives this message. I can create additional JAR file to store such 'gate', but afaik different WAR-files will have their own instances of such 'gate', which is not acceptable - they will not communicate. so, how to communicate in this situation (without using a database) ? I have read in Tomcat FAQ that EAR files are not supported because 'EJBs are not supported. But in this case I don't need EJB, I to have two war files in one class-loader. I know that 'common' and 'shared' folders can be used to share files. But in this case this application won't be compatible with other Appservers and servlet runners. thanks! Alexey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with RequestFilterValve
Howdy, This could actually be a bug! (This is refreshing and exciting to me, because there's about 1 of these for every 100 supposed bugs that are user errors). (And this is a slow week). ;) Can you come up with a simple unit test in a WAR file that will demonstrate this behavior so that we can reproduce it? If so, please create a bugzilla item and attach your test WAR and observations. Looking at the code, I probably wouldn't want to synchronize the process(..) method. Hmm... Yoav Shapira Millennium ChemInformatics -Original Message- From: Slavik Markovich [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 4:56 AM To: [EMAIL PROTECTED] Subject: Problems with RequestFilterValve Hi All, I'm having some problems with using RemoteAddrValve to allow only certain addresses to access an Engine. I'm using tomcat 4.1.27 with jdk1.3.1 on Solaris. I've configured the following: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=a.b.c.d/ under the engine. I know I should have escaped the '.' (regexp) but it should work as is. I'm receiving once in every few thousands of requests the following error: 2003-12-26 11:26:51 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.StringIndexOutOfBoundsException: String index out of range: 11 at java.lang.String.charAt(String.java:511) at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterato r.ja va:90) at org.apache.regexp.RE.matchNodes(RE.java:1161) at org.apache.regexp.RE.matchAt(RE.java:1448) at org.apache.regexp.RE.match(RE.java:1540) at org.apache.regexp.RE.match(RE.java:1468) at org.apache.regexp.RE.match(RE.java:1561) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValv e.ja va:335) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java: 131) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 7) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6 01) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 65) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:619) at java.lang.Thread.run(Thread.java:479) Also, once in every few thousands of requests I'm receiving a 403 access denied error on a valid address (I can see that in the access log). After checking the RequestFilterValve class, I can see it saves the compiled regular expressions (RE) and reuses them to check every request. Looking at regexp documentations, it is explicitly stated that RE is not thread-safe. Am I missing something? It looks like under load, this valve fails. Also, I can see that the RequestFilterValve class didn't change in the 5.0.16 version either. Any help will be appreciated... Slavik. --- This message contains information that may be confidential or privileged. If you are not the intended recipient, you may not use, copy or disclose to anyone any of the information in this message. If you have received this message and are not the intended recipient, kindly notify the sender and delete this message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: is it planned to support EAR files in Tomcat?
Howdy, OpenJMS is great. We've been using it in heavy production systems for more than a year now, not a single failure. Yoav Shapira Millennium ChemInformatics -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 9:46 AM To: Tomcat Users List Subject: RE: is it planned to support EAR files in Tomcat? You could also communicate with JMS. Once you get it up and running, its a pretty smooth way of communicating. You'd have to set up a message broker, of course. Are there any good (free / open source) ones out there? --- Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, Put your jar with the common code in the common/lib or shared/lib directory of tomcat. Read tomcat's classloader how-to document if you're not sure what these directories are. There are no plans for tomcat to support EARs (as tomcat is not going to be a full J2EE server). Communications between webapps is usually not that good an idea, as they're supposed to be self-contained. Yoav Shapira Millennium ChemInformatics -Original Message- From: Alexey Skorokhodov [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 8:29 AM To: [EMAIL PROTECTED] Subject: is it planned to support EAR files in Tomcat? hi! as I know, Tomcat does not support EAR modules. so, how can I communicate between two WAR-files ? I need to have something like 'gate', when java code from one WAR sends a message and a class from second WAR receives this message. I can create additional JAR file to store such 'gate', but afaik different WAR-files will have their own instances of such 'gate', which is not acceptable - they will not communicate. so, how to communicate in this situation (without using a database) ? I have read in Tomcat FAQ that EAR files are not supported because 'EJBs are not supported. But in this case I don't need EJB, I to have two war files in one class-loader. I know that 'common' and 'shared' folders can be used to share files. But in this case this application won't be compatible with other Appservers and servlet runners. thanks! Alexey. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: servlets marked as unavailable
Howdy, Technically, once a servlet is marked as unavailable it's pretty much gone for the lifecycle of the container (not just the webapp). Why is it being marked unavailable the first time? You should only have one context reload, and that should occur after all the necessary files have been uploaded. Yoav Shapira Millennium ChemInformatics -Original Message- From: Thomas Goorden [mailto:[EMAIL PROTECTED] Sent: Friday, December 26, 2003 10:10 AM To: [EMAIL PROTECTED] Subject: servlets marked as unavailable Hi, We're using tomcat 4.0.3 on our production server and there seems to be some odd behaviour with the automatic reloading of contexts. This is what happens: 1. A reload of the context is triggered because of an update of the code on the server (via ftp upload). 2. A servlet gets marked as unavailable because the class-loader can't find the necessary class (eg the appropriate jar file with the servlet isn't present yet). 3. The necessary jar file ends up on the server. 4. The context reloads again and the servlet in question starts-up automatically (load-on-startup0/load-on-startup), generating logs and other infromation that clearly indicate it has started correctly this time. 5. The servlet stays unavailable (503 errors get reported) according to Tomcat. Is there a known issue with servlets marked as unavailable not coming back (available) after an automatic reloading of the context? A more general question: what would be the best reloading scenario on a production server? We're in a case where the developper that needs to redeploy an application can't restart tomcat. We're using virtual hosts as well, so the manager application seems insufficiënt. Regards, Thomas Goorden - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: StringBuffer Factory?
Howdy, Definitely not JNDI for this. It's far too heavy. Yoav Shapira Millennium ChemInformatics -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 9:24 PM To: Tomcat Users List Subject: Re: StringBuffer Factory? While you might gain some speed, you would gain more simplicity by providing a good guess on how large your StringBuffer needs to be on StringBuffer instantiation. Most of the wasted time in using StringBuffer is done when the (internal) buffer is too small and needs reallocated to twice its existing size and the copy of data to the new buffer. -Tim Philipp Taprogge wrote: Hi! George Sexton wrote: This is a really bad idea because of the implementation of StringBuffer.toString() and setLength(). Well, Ok. But this is (IMHO correctly) regarded a bug in the current StringBuffer implementation; a bug that, with luck, will be fixed some day. Or you could write your own StringBuffer class. Concider now a StringBuffer that's working properly. What is more expansive in terms of runtime: the JNDI lookup of a pooled instance or the instanciation of a new one? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: tomcat isn't using Jikes for compiling jsps
Howdy, I would set the fork property to true if you're compiling and recompiling large numbers of JSPs (a practice you want to avoid in production if possible). As to whether jasper is using jikes or javac, try setting the logVerbosityLevel to DEBUG and see if you can tell from the messages. Yoav Shapira Millennium ChemInformatics -Original Message- From: Hans Steinraht [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 7:21 AM To: [EMAIL PROTECTED] Subject: tomcat isn't using Jikes for compiling jsps Hay there, Because of the outOfMemory errors I get while compiling the (large number of) jsp's I like to use Jikes to compile them. In conf/web.xml I try to configure Tomcat to use Jikes as followed: servlet servlet-namejsp/servlet-name servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class init-param param-namelogVerbosityLevel/param-name param-valueWARNING/param-value /init-param init-param param-namecompiler/param-name param-valuejikes/param-value /init-param init-param param-namefork/param-name param-valuetrue/param-value /init-param load-on-startup3/load-on-startup /servlet And on top in bin/catalina.sh I added: CATALINA_OPTS=-Dbuild.compiler.emacs=true. Furter I have set -Xms and -Xmx for the java compiler, but I don't think I have to do this when I want to use Jikes When I now start Tomcat and go through the jsp's I'm still getting the outOfMemory errors after a while. When I'm thinking about this it lookes like Tomcat Isn't using Jikes at all to compile the jsp's Is there a way to check if Tomcat is using Jikes??? And did I do something wrong with my configuration in Tomcat??? Is it necesary to set the fork parameter when I want to use Jikes??? Any help is preciated Hans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: unit testing when application level scoping used
Howdy, Cactus works beautifully with regards to servlet context and general environment setup. Should I instantiate a bean with session scope that is expected to be present? Yes, you should instantiate it and place it in the session/application context as needed by your webapp. Another test would be to make sure the webapp doesn't crash if this bean is missing. Also, how do I handle the fact that I need to log in before I can test the parts I need to test? That depends on your webapp. You can stuff a username or some other object in the session, or alternatively do actual authentication. This is very specific to how your webapp is written. Again, another test would be how the webapp function when this authentication information is missing. This whole set up is very difficult to unit test, and that is bothersome, as I am certain that this is a source of considerable errors in applications. Yup, sounds like a tough testing environment. But these are common, and that's what tools like Cactus and MockObjects are for. 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]
RE: What after reloading a context
Howdy, The servlet instance is destroyed (destroy() method call), then finalized and garbage collected. A new instance of the class is created on startup if specified as a load-on-startup servlet in web.xml, or the first time the servlet is requested otherwise. After the creation of this instance, the init function is called on it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 7:46 AM To: Tomcat Users List Subject: What after reloading a context Hi all, What happens to all loaded servlets on reloading a context ?. All servlets are destroyed first then these are initialised after reload before any request is arrived ?. rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: Why Tomcat shutdown unprovokedly?
Howdy, Strange. You definitely should NOT have a webapp without a web.xml file. Even an empty web.xml (with just the DOCTYPE and web-app /) is fine. Enable more verbose logging of tomcat and your apps. The GC log looks fine. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mark.he [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 9:01 PM To: Tomcat Users List Subject: Why Tomcat shutdown unprovokedly? Hi All, I have encountered a problem when using Tomcat4.1.29. I changed the appbase to my appliaction's directory (not in $TOMCAT_HOME/webapps) and add a context like this: Context path= docBase=/usr/local/myapplication crossContext=true debug=0 reloadable=true trusted=false /Context The application isn't a standard webapp. There is no web.xml in the application's directory. Everything works well after staring the Tomcat. But after 2-3 hours, the Tomcat will shutdown itself. The catalina.out will record like this (I have modified the debug level to 8): ServerLifecycleListener: Destroying MBean for ContextResource ContextResource[name=UserDatabase, description=User database that can be updated and saved, type=org.apache.catalina.UserDatabase, auth=Container, scope=Shareable] ServerLifecycleListener: Destroying MBean for ContextEnvironment ContextEnvironment[name=simpleValue, type=java.lang.Integer, value=30, overri de=true] ServerLifecycleListener: Destroying MBean for NamingResources [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Manager [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Loader WebappLoader[] ServerLifecycleListener: Destroying MBean for NamingResources [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Context StandardEngine[Standalone].StandardHost[localhost].StandardContext[] ServerLifecycleListener: Destroying MBean for Valve ErrorReportValve[localhost] ServerLifecycleListener: Destroying MBean for Valve ErrorDispatcherValve[localhost] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Host StandardEngine[Standalone].StandardHost[localhost] ServerLifecycleListener: Destroying MBean for Valve [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Realm [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Logger [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Engine StandardEngine[Standalone] ServerLifecycleListener: Destroying MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Connector [EMAIL PROTECTED] ServerLifecycleListener: Destroying MBean for Service StandardService[Tomcat-Standalone] ServerLifecycleListener: Destroying MBean for Server StandardServer[8005] GlobalResourcesLifecycleListener: Destroying MBeans for Global JNDI Resources Stopping service Tomcat-Standalone I recorded gc log, the records almost are FULL GC record like: 8341.069: [Full GC 491455K-314771K(519168K), 8.4939708 secs] 8400.893: [Full GC 479251K-313981K(519168K), 8.2763773 secs] 8450.546: [Full GC 478461K-295591K(519168K), 8.4257336 secs] 8504.026: [Full GC 460071K-300918K(519168K), 5.7439801 secs] 8552.918: [Full GC 465398K-305423K(519168K), 5.7107256 secs] 8596.866: [Full GC 469903K-309825K(519168K), 5.8541711 secs] FYI some softwares related: j2sdk-1_4_2_03-solaris-sparc.tar.Z jakarta-tomcat-4.1.29.tar 64bit OS Solaris9 with Sparc CPU MySQL4.0 (The problem arises even though I am not using the DataBase). Any suggestion will be appreciated! Thanks in advanced. Mark 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]
List question
Sorry to send to everyone, but I checked the info and FAQ responses and couldn't find an answer... How does one switch to list digest mode? Do I need to unsubscribe and re-subscribe, or is there a specific admin command to do so? Thanks everyone, and sorry again for the general list post. Frank W. Zammetti Web Architect Consultant PFPC Global Fund Services - The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems with RequestFilterValve
Sorry Yoav, As you know, threading (race-condition) issues are really hard to test and come up with a test case. They are by nature very machine, cpu, etc. dependent. Synchronizing the process method would be a bad idea (bottleneck for all requests) so it looks like there won't be any choice but to recreate the RE as local variables. There is also a possibility (ugly one) of serializing the array of RE to a byte array and de-serializing it in the process method. Thoughts? Slavik. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:50 PM To: Tomcat Users List Subject: RE: Problems with RequestFilterValve Howdy, This could actually be a bug! (This is refreshing and exciting to me, because there's about 1 of these for every 100 supposed bugs that are user errors). (And this is a slow week). ;) Can you come up with a simple unit test in a WAR file that will demonstrate this behavior so that we can reproduce it? If so, please create a bugzilla item and attach your test WAR and observations. Looking at the code, I probably wouldn't want to synchronize the process(..) method. Hmm... Yoav Shapira Millennium ChemInformatics -Original Message- From: Slavik Markovich [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 4:56 AM To: [EMAIL PROTECTED] Subject: Problems with RequestFilterValve Hi All, I'm having some problems with using RemoteAddrValve to allow only certain addresses to access an Engine. I'm using tomcat 4.1.27 with jdk1.3.1 on Solaris. I've configured the following: Valve className=org.apache.catalina.valves.RemoteAddrValve allow=a.b.c.d/ under the engine. I know I should have escaped the '.' (regexp) but it should work as is. I'm receiving once in every few thousands of requests the following error: 2003-12-26 11:26:51 CoyoteAdapter An exception or error occurred in the container during the request processing java.lang.StringIndexOutOfBoundsException: String index out of range: 11 at java.lang.String.charAt(String.java:511) at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterato r.ja va:90) at org.apache.regexp.RE.matchNodes(RE.java:1161) at org.apache.regexp.RE.matchAt(RE.java:1448) at org.apache.regexp.RE.match(RE.java:1540) at org.apache.regexp.RE.match(RE.java:1468) at org.apache.regexp.RE.match(RE.java:1561) at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValv e.ja va:335) at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java: 131) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:57 7) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:6 01) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 65) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:619) at java.lang.Thread.run(Thread.java:479) Also, once in every few thousands of requests I'm receiving a 403 access denied error on a valid address (I can see that in the access log). After checking the RequestFilterValve class, I can see it saves the compiled regular expressions (RE) and reuses them to check every request. Looking at regexp documentations, it is explicitly stated that RE is not thread-safe. Am I missing something? It looks like under load, this valve fails. Also, I can see that the RequestFilterValve class didn't change in the 5.0.16 version either. Any help will be appreciated... Slavik. --- This message contains information that may be confidential or privileged. If you are not the intended recipient, you may not use, copy or disclose to anyone any of the information in this message. If you have received this message and are not the intended recipient, kindly notify the sender and delete this message from your computer. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This
RE: Admintool cannot save changes to servers.xml
At this point I only have two ideas. Idea # 1 is that you are starting tomcat with some sort of flags that affect security. Idea # 2 is to use strace to run tomcat and see if you can sort out from the strace logs what is happening. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, December 29, 2003 5:00 AM To: [EMAIL PROTECTED] Subject: Re: Admintool cannot save changes to servers.xml George Sexton wrote: Do the log files contain no information? Hi George, I tried with a clean installation and this time also checked the log files. As I'm not so familiar with understanding these log files, I've put them all up on http://home.arcor.de/plsdontreply/tomcatlogs/. In the adminlog, http://home.arcor.de/plsdontreply/tomcatlogs/localhost_admin_log.2003-1 2-29.txt I cannot find anything regarding save or Commit Changes. Maybe you can find out whats wrong from my log files. -- [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]
Login page only via SSL
Hello all gurus, Could somebody explain me how to force Tomcat 4.1 using SSL for strictly only for login page? Thanks, Pranas
Re: Login page only via SSL
Possibly the best way described in : http://java.sun.com/webservices/docs/1.1/tutorial/doc/WebAppSecurity4.html Regards - Original Message - From: Pranas [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 29, 2003 5:17 PM Subject: Login page only via SSL Hello all gurus, Could somebody explain me how to force Tomcat 4.1 using SSL for strictly only for login page? Thanks, Pranas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Login page only via SSL
Adding this to your web.xml should work: security-constraint web-resource-collection web-resource-nameSSL/web-resource-name url-pattern/login.jsp/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodBASIC/auth-method realm-nameSSL/realm-name /login-config Hope this helps -Duncan Smith www.pennymail.com Pranas wrote: Hello all gurus, Could somebody explain me how to force Tomcat 4.1 using SSL for strictly only for login page? Thanks, Pranas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Admintool cannot save changes to servers.xml
George Sexton wrote: At this point I only have two ideas. Idea # 1 is that you are starting tomcat with some sort of flags that affect security. My starting procedure simply is /opt/jakarta-tomcat-5/bin/startup.sh So, I think there is no flag Idea # 2 is to use strace to run tomcat and see if you can sort out from the strace logs what is happening. Something new to me. I already found it on http://www.liacs.nl/~wichert/strace/ and will give it a try within the next days. Thanks so far for your help. -- [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List question
Howdy, I think you have to unsubscribe from the normal list and subscribe to the digest list, as they're technically different lists. Send a message to [EMAIL PROTECTED] for instructions. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 9:56 AM To: [EMAIL PROTECTED] Subject: List question Sorry to send to everyone, but I checked the info and FAQ responses and couldn't find an answer... How does one switch to list digest mode? Do I need to unsubscribe and re-subscribe, or is there a specific admin command to do so? Thanks everyone, and sorry again for the general list post. Frank W. Zammetti Web Architect Consultant PFPC Global Fund Services - The contents of this email are the property of PNC. If it was not addressed to you, you have no legal right to read it. If you think you received it in error, please notify the sender. Do not forward or copy without permission of the sender. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: Unsubscibing
Howdy, I've unsubscribed you. The subscribe/unsubscribe functionality is pretty simple and routine, we have dozens of such transactions every day without a problem, so I'm surprised you had one. And I don't particularly appreciate the reference to partying early, but happy holidays to everyone nonetheless ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: Lee Mahan [mailto:[EMAIL PROTECTED] Sent: Saturday, December 27, 2003 6:08 PM To: Tomcat Users List Subject: Unsubscibing Perhaps the list moderator, or the list program itself has been celebrating the new year a little early, I've attempted multiple times to sign off this list to now avail. And yes I did try to contact mailman first and went to the web site (before I get flamed for sending this to the list). I have tried with both email addresses I use, but again to no avail. Is my only choice to bounce the messages back? I hope not, since I would find that as rude as an improper unsubscribe function. --Lee Mahan Chief Technology Officer Design West ACM Member Member of SAGE (System Administrators Guild) Usenix IEEE Associate Member - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 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]
RE: Problems with RequestFilterValve
Howdy, Synchronizing the process method would be a bad idea (bottleneck for all requests) so it looks like there won't be any choice but to recreate the RE as local variables. There is also a possibility (ugly one) of serializing the array of RE to a byte array and de-serializing it in the process method. Thoughts? We'll have to benchmark the recreation of REs as local variables to see the impact on performance. If it's not too bad, then that'll be the fix. Please open a bugzilla item for this with your observations from your original message and your fix idea above. Thanks, 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]
Re: org.xml.sax.SAXParseException
I did get tomcat 5.0.14 'out of the box'. I originally tried 5.0.16, but had the same problem, and my instructor suggested trying 5.0.14. I also tried 4.2.something, with the same problem. I did get version 3.1.1a of tomcat to work, however. My instructor thinks I have some xml parser on my computer that is being invoked in place of the appropriate xml parser, but I don't know where to even begin to look for such a thing. any other suggestions? thanks, Brett Dans un e-mail daté du 12/29/2003 3:46:05 PM W. Europe Standard Time, [EMAIL PROTECTED] a écrit : Howdy, You get this out of the box, or have you modified manager.xml in any way? Anyways, don't bother with 5.0.14 (even though it should be fine), use 5.0.16 which is stable. Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 28, 2003 2:09 PM To: [EMAIL PROTECTED] Subject: org.xml.sax.SAXParseException I'm having trouble getting tomcat 5.0.14 running on win ME. I have not set my classpath. I have set CATALINA_HOME (C:\jakarta-tomcat-5.0.14) and CATALINA_BASE and JAVA_HOME. I get the following error: INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.14\conf\Catalina\localhost\manager.xml Dec 26, 2003 6:56:35 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup declarations contained or pointed to by the document type declaration must be well-formed. org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkn own Source) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source) at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Un know n Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1548) at org.apache.catalina.startup.ContextConfig.defaultConfig(ContextConfig.j ava: 612) at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:744) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig. java :257) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleS uppo rt.java:166) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4116 ) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.j ava: 866) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:850) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.core.StandardHostDeployer.addChild(StandardHostDepl oyer .java:831) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.commons.beanutils.MethodUtils.invokeMethod(MethodUtils.java: 252) at org.apache.commons.digester.SetNextRule.end(SetNextRule.java:256) at org.apache.commons.digester.Rule.end(Rule.java:276) at org.apache.commons.digester.Digester.endElement(Digester.java:1058) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndEl ement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDi spat cher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkn own Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at
RE: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status
We are using RedHat 9, Kernel 2.4.20-20.9. JVM 1.4.2_01-b06. We are using Postgres and created our own database connection pooling api. I will try setting the environment variable LD_ASSUME_KERNEL=2.4.1. When you refer to a 'thread dump' are you referring to running netstat and viewing the threads running on the ports Tomcat is set up on? Or is there another way to get a thread dump? (sorry, for my ignorance on linux) Thanks for the help. -Original Message- From: Remy Maucherat [mailto:[EMAIL PROTECTED] Sent: Thursday, December 25, 2003 2:11 AM To: Tomcat Users List Subject: Re: All threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status alan sparago wrote: I am using Tomcat 5.0.16 standalone serving as both an http/https web server and servlet container. This error occurred in our QA environment and has caused Tomcat to hang and not service any requests. This error seemed to occur when no users were using the site at the time, but about 4 DAYS earlier we preformed a stress test simulating 1200 semi-simultaneous users and everything worked perfectly without any errors. Since the stress test we are only accessing the application as an occasional single user, the last time being about 8 hours prior to this error happening. Most parameters in the server.xml file are the default values (the maxThreads value is set to 150). Our log file is in xml format and contains the following error; loggerorg.apache.tomcat.util.threads.ThreadPool/logger levelSEVERE/level classorg.apache.tomcat.util.threads.ThreadPool/class methodlogFull/method thread13/thread messageAll threads (150) are currently busy, waiting. Increase maxThreads (150) or check the servlet status/message fyi. Nowhere in my application is the code creating any threads. If running Linux 2.4 with tweaks, and esp RH 9, use LD_ASSUME_KERNEL=2.4.1. This kind of report is not very useful without a thread dump once the issue occurs and all threads appear deadlocked, BTW. If there's actually a bug in the Tomcat code, then it's the only way to identify where it is. We are very close to our site being live so any help or information would be greatly appreciated. Would tomcat 4.1.29 be more stable? No, it is the same connector anyway. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - 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]
URL-rewriting
Hi All, I want to be able to use url-rewriting in an application I have. I want to transform urls like http://localhost:8080/infoglueDeliver/products/productX.html to http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitle =products/productX.html I have checked out the http://www.tuckey.org/urlrewrite-package but I'm not sure how to write the regexp to accomplish what I want. Anyone good at these things? Regards, Mattias Bogeblad
RE: URL-rewriting
Howdy, I'm not an expert on Apache's mod-rewrite, so I'll give you one possible pue java solution: a fairly simple filter (a javax.servlet.Filter filter). Map the filter /* and code your redirection rules in java. Actually, you might want to look at the balancer webapp (tomcat 5) which has a StringMatchRule that you can use. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mattias Bogeblad [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 12:57 PM To: Tomcat Users List Subject: URL-rewriting Hi All, I want to be able to use url-rewriting in an application I have. I want to transform urls like http://localhost:8080/infoglueDeliver/products/productX.html to http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitl e =products/productX.html I have checked out the http://www.tuckey.org/urlrewrite-package but I'm not sure how to write the regexp to accomplish what I want. Anyone good at these things? Regards, Mattias Bogeblad 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]
Thread Safe JSP/Servlets
I understand how to write thread-safe software in general, but I suddenly realized that I don't understand what, if anything, Tomcat shares among different sessions (i.e., different users accessing the same JSP application) and would therefore be thread sensitive. For example, in my servlets, I have only constant class fields--no instance fields. All user-specific information is stored in session attributes that exist only between user login and logout. However, it finally dawned on me that my JSP pages are quietly being turned into servlets behind my back (this is despite my occassionally referencing the generated *_jsp files while debugging), and those servlets DO have instance fields. My specific question is whether Tomcat keeps the instance fields for JSP servlets separate by session. My more general request is for a pointer to best practices documentation on how to keep JSPs and servlets thread safe. Merrill Cornish - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Thread Safe JSP/Servlets
Instance variables in a JSP will be shared among requests, so you could have an issue. Note however, that you have to go out of your way to declare instance variables in a JSP (by putting them in a %! //declaration block % rather than a plain old % //scriptlet block %). All non-declarative scriptlets and all static page content go into the service method of the JSP, so they're threadsafe. -john. -Original Message- From: Merrill Cornish [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:55 PM To: [EMAIL PROTECTED] Subject: Thread Safe JSP/Servlets I understand how to write thread-safe software in general, but I suddenly realized that I don't understand what, if anything, Tomcat shares among different sessions (i.e., different users accessing the same JSP application) and would therefore be thread sensitive. For example, in my servlets, I have only constant class fields--no instance fields. All user-specific information is stored in session attributes that exist only between user login and logout. However, it finally dawned on me that my JSP pages are quietly being turned into servlets behind my back (this is despite my occassionally referencing the generated *_jsp files while debugging), and those servlets DO have instance fields. My specific question is whether Tomcat keeps the instance fields for JSP servlets separate by session. My more general request is for a pointer to best practices documentation on how to keep JSPs and servlets thread safe. Merrill Cornish - 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]
[Q] Tomcat ZoneAlarm?
This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Tomcat ZoneAlarm?
Just allow Tomcat to access the internet. - Original Message - From: Riaan Oberholzer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 29, 2003 01:14 PM Subject: [Q] Tomcat ZoneAlarm? This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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: Thread Safe JSP/Servlets
you have to go out of your way to declare instance variables in a JSP (by putting them in a %! //declaration block % John, After I posted the question, I started browsing the generated _jsp file in earnest. I had decided that % ... % stuff was safe since it gets up in its own method rather than instance fields. Thanks for the reassurance. Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Tomcat ZoneAlarm?
It doesn't work... I get a The page cannot be displayed. I try to access it using http://x.x.x.x:8080/; where x.x.x.x is my ip number. I can ping the IP number, so the server is alive... I just can't access Tomcat on it. --- epyonne [EMAIL PROTECTED] wrote: Just allow Tomcat to access the internet. - Original Message - From: Riaan Oberholzer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 29, 2003 01:14 PM Subject: [Q] Tomcat ZoneAlarm? This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Tomcat ZoneAlarm?
Hi! Riaan Oberholzer wrote: This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? In general, it is very advisable to know what a firewall does and how it works before installing one. In general, ZoneAlarm is a (rather simple) packet filter, i.e. a piece of software that examines network packets as they arrive at or depart from the machine and decides on a set of rules to allow or deny them. If you want a so protected machine to run tomcat and access it from beyond the firewall, you need to add a rule that allows requests from external sources directed at port 80 (or whatever you set your tomcat to listen on) on the local machine and also to allow the responses from tomcat to any external host. If you want to use SSL, you will have to allow those request/response-pairs as well. You should, however concider wether you really need a firewall, if your machine is a pure server that does not serve other purposes. In that case, you should just close all ports you don't need. A closed port is no risk and if the listening software has flaws, a firewall wouldn't protect you either. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Tomcat ZoneAlarm?
Thanks... I know what a firewall is and what it does. Problem is, with the free version of ZoneAlarm you cannot manually specify ports to allow access on. I know you CAN get it to work, but how I do not know. I need the firewall. It is my home PC on a ADSL connection, permanently connected to the internet. So I use it for basicly everything I do on the internet. --- Philipp Taprogge [EMAIL PROTECTED] wrote: Hi! Riaan Oberholzer wrote: This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? In general, it is very advisable to know what a firewall does and how it works before installing one. In general, ZoneAlarm is a (rather simple) packet filter, i.e. a piece of software that examines network packets as they arrive at or depart from the machine and decides on a set of rules to allow or deny them. If you want a so protected machine to run tomcat and access it from beyond the firewall, you need to add a rule that allows requests from external sources directed at port 80 (or whatever you set your tomcat to listen on) on the local machine and also to allow the responses from tomcat to any external host. If you want to use SSL, you will have to allow those request/response-pairs as well. You should, however concider wether you really need a firewall, if your machine is a pure server that does not serve other purposes. In that case, you should just close all ports you don't need. A closed port is no risk and if the listening software has flaws, a firewall wouldn't protect you either. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Connector attribute serverSocketTimeout in server.xml
Can anyone point me in the direction of a resource to explain the Connector attribute serverSocketTimeout? I haven't found any reference to it in the jakarta site or this mailing list. Thanks. -john. _ john d. hume 561-266-6256 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Q] Tomcat ZoneAlarm?
Riaan: If you are using windows XP you are better off setting the port with the firewall build into XP. To do this go into network, right click the adapter and you should be able to find the fire wall setting there. you can tell it to deny all except... The except is what you would be interested in. Shawn Zernik Internetwork Consulting www.internetworkconsulting.net -Original Message- From: Riaan Oberholzer [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 1:58 PM To: Tomcat Users List Subject: Re: [Q] Tomcat ZoneAlarm? Thanks... I know what a firewall is and what it does. Problem is, with the free version of ZoneAlarm you cannot manually specify ports to allow access on. I know you CAN get it to work, but how I do not know. I need the firewall. It is my home PC on a ADSL connection, permanently connected to the internet. So I use it for basicly everything I do on the internet. --- Philipp Taprogge [EMAIL PROTECTED] wrote: Hi! Riaan Oberholzer wrote: This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? In general, it is very advisable to know what a firewall does and how it works before installing one. In general, ZoneAlarm is a (rather simple) packet filter, i.e. a piece of software that examines network packets as they arrive at or depart from the machine and decides on a set of rules to allow or deny them. If you want a so protected machine to run tomcat and access it from beyond the firewall, you need to add a rule that allows requests from external sources directed at port 80 (or whatever you set your tomcat to listen on) on the local machine and also to allow the responses from tomcat to any external host. If you want to use SSL, you will have to allow those request/response-pairs as well. You should, however concider wether you really need a firewall, if your machine is a pure server that does not serve other purposes. In that case, you should just close all ports you don't need. A closed port is no risk and if the listening software has flaws, a firewall wouldn't protect you either. HTH Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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: [Q] Tomcat ZoneAlarm?
I am using ZoneAlarm Pro at home and I don't have any problem with Tomcat. I don't know if the free version has this feature or not. You can set ZoneAlarm to the learning mode. That means ZA will allow the application or program that you install to perform its function. Then you can scale back afterward. - Original Message - From: Riaan Oberholzer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, December 29, 2003 01:40 PM Subject: Re: [Q] Tomcat ZoneAlarm? It doesn't work... I get a The page cannot be displayed. I try to access it using http://x.x.x.x:8080/; where x.x.x.x is my ip number. I can ping the IP number, so the server is alive... I just can't access Tomcat on it. --- epyonne [EMAIL PROTECTED] wrote: Just allow Tomcat to access the internet. - Original Message - From: Riaan Oberholzer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, December 29, 2003 01:14 PM Subject: [Q] Tomcat ZoneAlarm? This is not a Tomcat issue, but I've tried desperately and could find no answer elsewhere... can someone please tell me how to get Tomcat working with ZoneAlarm (free version) as firewall? __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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] __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.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: [Q] Tomcat ZoneAlarm?
Riaan, I run Tomcat with ZoneAlarm Pro at home and it works. Not only does Tomcat need to be able to access the Internet (even though it's not actually accessing anything outside the localhost) as Phil said, but the browser you are using also needs to be able to access the Internet. The two times I get Page cannot be displayed is 1) I've forgotten to start my standalone version of Tomcat (I still haven't succeeded in getting it to run as a service), or 2) I've forgotten and left ZoneAlarm's manual Internet lock on (the [Z|A] tray icon is a padlock). Merrill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Q] Tomcat ZoneAlarm?
I've used ZoneAlarm in the past. If I remember correctly, you have to select the program and check it for server. If you don't, it blocks inbound traffic. if it is already checked for server, do a right click and it should give you additional properties like blocking all other ports for the application. peter Riaan Oberholzer [EMAIL PROTECTED] wrote: Thanks... I know what a firewall is and what it does. Problem is, with the free version of ZoneAlarm you cannot manually specify ports to allow access on. I know you CAN get it to work, but how I do not know. I need the firewall. It is my home PC on a ADSL connection, permanently connected to the internet. So I use it for basicly everything I do on the internet. - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
Re[2]: Context docBase + linux
AS wat was the path name you created /home/webbapptest or user/home/webbapptest or /user/home/webbapptest path was /home/webapptest. That's a user webapptest home directory. I've created user /home/webapptest (with WEB-INF/classes, etc.) for java web applications and added in server.xml line Context docBase=/home/webapptest path=/w...restarted Tomcat. And application with path /w doesn't work. Tomcat logs are showing: StandardContext[/w]: Error initializing resources: Document base /home/webapptest does not exist or is not a readable directory if you are under unix, the chmod will do this read man chmod How to do that directory readable? Thanks. -- Best regards, Algirdas mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Algirdasmailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MOD_JK (Apache+Tomcat)
Hello, I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1 I am working on the Connector MOD_JK.SO which I build from the source and put in /modules directory. When I run my Tomcat first and then Apache and then acceess http://My.domian.name/kuki it does not work... it says Page cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot find this file anywhere. Can anyone help me out in connecting Apache and Tomncat. Here are my Config Files: --- SERVER.XML --- # added following after Server Port=8005 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info workersConfig=/usr/local/tomcat4/conf/jk/workers.properties jkLog=/usr/local/tomcat4/logs/mod_jk.log/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Host name=my.domain.name debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki reloadable=true ~~~ --- WORKERS.PROPERTIES --- workers.CATALINA_HOME=/usr/local/tomcat4 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=my.domain.name worker.ajp13.type=ajp13 worker.ajp13.lbfactor=5 ~~~ --- MOD_JK.CONF this file is AUTO GENERATED --- ## Auto generated on Mon Dec 29 14:10:45 MST 2003## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/tomcat4/logs/mod_jk.log JkLogLevel info VirtualHost my.domain.name ServerName my.domain.name JkMount /kuki ajp13 JkMount /kuki/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 /VirtualHost ~~~ HTTPD.CONF Listen My.IP.ADDR.ESS:80 IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule ServerName my.domain.name:80 JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /kuki ajp13 JkMount /kuki/* ajp13 ~~~ Can anyone please GUIDE me on this Connection Process? THANKS! and HAPPY NEW YEAR! HARI OM _ Get reliable dial-up Internet access now with our limited-time introductory offer. http://join.msn.com/?page=dept/dialup - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Newbie with problems during tomcat application install
My system is a laptop running Linux Redhat 9. I have installed Tomcat 5.0.14 from a binary download distribution. The sample applications work perfectly. I can compile my application with no problems. But when I issue the ant command ant install I receive the following output : ___ Buildfile: build.xml prepare: compile: install: BUILD FAILED /home/bkimelman/tomcat1/build.xml:365: Could not create task or type of type: deploy. Ant could not find the task or a class this task relies upon. This is common and has a number of causes; the usual solutions are to read the manual pages then download and install needed JAR files, or fix the build file: - You have misspelt 'deploy'. Fix: check your spelling. - The task needs an external JAR file to execute and this is not found at the right place in the classpath. Fix: check the documentation for dependencies. Fix: declare the task. - The task is an Ant optional task and optional.jar is absent Fix: look for optional.jar in ANT_HOME/lib, download if needed - The task was not built into optional.jar as dependent libraries were not found at build time. Fix: look in the JAR to verify, then rebuild with the needed libraries, or download a release version from apache.org - The build file was written for a later version of Ant Fix: upgrade to at least the latest release version of Ant - The task is not an Ant core or optional task and needs to be declared using taskdef. Remember that for JAR files to be visible to Ant tasks implemented in ANT_HOME/lib, the files must be in the same directory or on the classpath Please neither file bug reports on this problem, nor email the Ant mailing lists, until all of these causes have been explored, as this is not an Ant bug. Total time: 13 seconds __ I followed all the instructions in the sample build.xml file with respect to copying files into the appropriate locations. I then reran the ant command with the debugging option ant -d install According to the debugging output from ant, the compilation classpath does indeed contain a reference to the JAR file which contains the DeployTask class file. __ Here is the relevant portion from my build.xml file. I created this file by copying the sample build.xml file and making the appropriate changes. 340 !-- Install Target == -- 341 342 !-- 343 344 The install target tells the specified Tomcat 5 installation to dynamically 345 install this web application and make it available for execution. It does 346 *not* cause the existence of this web application to be remembered across 347 Tomcat restarts; if you restart the server, you will need to re-install all 348 this web application. 349 350 If you have already installed this application, and simply want Tomcat to 351 recognize that you have updated Java classes (or the web.xml file), use the 352 reload target instead. 353 354 NOTE: This target will only succeed if it is run from the same server that 355 Tomcat is running on. 356 357 NOTE: This is the logical opposite of the remove target. 358 359 -- 360 361 target name=install depends=compile 362description=Install application to servlet container 363 364 deploy url=${manager.url} 365username=${manager.username} 366password=${manager.password} 367path=${app.path} 368 war=file://${build.home}/ 369 370 /target __ Any ideas as to where I should look for the problem ??
SV: URL-rewriting
Hi and thanx for the suggestion but I want to try the rewrite module first as that offers all flexibility I need. The package I named is a pure java implementation of Apache mod-rewrite so I thought I benefit from it if possible. Anyone else who can contribute? Regards Mattias Bogeblad -Ursprungligt meddelande- Från: Shapira, Yoav [mailto:[EMAIL PROTECTED] Skickat: den 29 december 2003 19:13 Till: Tomcat Users List Ämne: RE: URL-rewriting Howdy, I'm not an expert on Apache's mod-rewrite, so I'll give you one possible pue java solution: a fairly simple filter (a javax.servlet.Filter filter). Map the filter /* and code your redirection rules in java. Actually, you might want to look at the balancer webapp (tomcat 5) which has a StringMatchRule that you can use. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mattias Bogeblad [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 12:57 PM To: Tomcat Users List Subject: URL-rewriting Hi All, I want to be able to use url-rewriting in an application I have. I want to transform urls like http://localhost:8080/infoglueDeliver/products/productX.html to http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitl e =products/productX.html I have checked out the http://www.tuckey.org/urlrewrite-package but I'm not sure how to write the regexp to accomplish what I want. Anyone good at these things? Regards, Mattias Bogeblad 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]
Tomcat 5 and class importing problems
Hello all, sorry this is long, but it takes time to explain, I'm having a frustrating issue with JSP files and trying to import our custom classes. Originally the classes were developed when Tomcat 3 was out and being used, so putting all of our compiled (*.class) files into webapps\WEB-INF\classes worked fine -- the JSPs all ran and could see import the classes just dandy. When we upgraded to Tomcat 4, the classes were no longer visible. After some research and testing, we found that placing a: %@ page import=MyClass % At the top of each JSP file solved the problem. Kinda cumbersome to add that for every class that we used, but it worked. Now we are attempting to upgrade to Tomcat 5 and are again having class loading issues. The import line is causing the following error: D:\Jakarta5\work\Catalina\166.70.225.99\_\org\apache\jsp\site_jsp.java:8 : '.' expected import MyClass; Obviously the compiler is expecting a package name in order to import external classes (which I realize is probably a function of javac, not of tomcat). The first thing I did was to convert our entire class library to packages (it originally wasn't when it was developed several years ago). I then copied these classes to the WEB-INF\classes folder and the application began running. However, the next problem arose when some of our code was doing dynamic class instantiation (using Class.forName()) since all of the class names had changed. So, of course, I fixed that throughout the code, which brought me to my present position: serialization. Many of our classes contain state information which we serialize to a database. However, now that all of the class names have changed, we cannot deserialize any of our existing objects because the class names don't match (ClassCastException is what's being thrown, if I remember right). Realizing that we cannot lose our serialized objects (since they contain all of our customers' data), I have been looking into other options. Some of the things I have tried are putting the class files (the original -- before repackaging them) into JAR files, changing the scratch directory for compilation in hopes that the compiler will find our classes, and moving classes into various folders to see if they can be found. So, now that I've spoke my novel, here's my question: Is there a way I can simply allow Tomcat to import *.class from webapps\WEB-INF\classes\ and have them all available to my JSP (like it used to work in Tomcat 3)? The problem is simple -- I need my non-packaged classes to be available to my .JSP files. Yes, I realize that we should have the files all in the same package from the beginning, but we don't. Our hope is that finding a solution that will make it work will cost us less time/money than rebuilding all of the serialized objects in our customers' databases (which I haven't thought of a good way to do that yet, either). Any help or suggestions that anyone has is GREATLY appreciated. I've been fairly impressed with the Jakarta community as I've used the products over the past several years. Thanks in advance, Jeff P.S. Theoretically it shouldn't make a difference, but this is being deployed on a Windows Server 2003 machine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IIS6 connection toTomcat on Win 2003 Server
Greetings. Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 isapi_redirector2.dll New to Java and I did fry finding answers before subscribing. When I found http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.html I really thought I'd made it. IIS is serving pages normal with the WWW service in IIS 5.0 isolation mode. Virtual dir for the dll is configured. Web Service extensions status for the dll is set to allow the dll. Registry contains the required reg entrys per www.rit.edu Tomcat is working fine on the url/:8080. jsp and servlets all work on 8080. server.xml http://localhost/examples/index.html or serverdrive:\inetpub\wwwroot\examples\index.html displays ok. When one of the example links is selected I get The page cannot be displayed error message. Expected to receive a tomcat error msg. It was the regular MS error page.. Have been thru the server.xml and workers2.properties several times. What else can I do? Any ideas would really be appreciated. Thanks Happy New Year Stew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 connection toTomcat on Win 2003 Server
It *looks* like the guide you followed did not include the changes to web service extensions to allow the ISAPI application to run. In the IIS manager, click on the Web Service Extensions folder. On the right side, click on the Add a new Web service extension link. Type in any Extension name you want (I used Jakarta-Tomcat), then click the Add button and add the isapi_redirect2.dll file. Then check the Set extension status to Allowed box at the bottom and click OK. You'll have to restart IIS (right click on your computer name in the IIS Manager, then click All Tasks -- Restart IIS) before it'll take effect. Give that a shot! Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: IIS6 connection toTomcat on Win 2003 Server Greetings. Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 isapi_redirector2.dll New to Java and I did fry finding answers before subscribing. When I found http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.htm l I really thought I'd made it. IIS is serving pages normal with the WWW service in IIS 5.0 isolation mode. Virtual dir for the dll is configured. Web Service extensions status for the dll is set to allow the dll. Registry contains the required reg entrys per www.rit.edu Tomcat is working fine on the url/:8080. jsp and servlets all work on 8080. server.xml http://localhost/examples/index.html or serverdrive:\inetpub\wwwroot\examples\index.html displays ok. When one of the example links is selected I get The page cannot be displayed error message. Expected to receive a tomcat error msg. It was the regular MS error page.. Have been thru the server.xml and workers2.properties several times. What else can I do? Any ideas would really be appreciated. Thanks Happy New Year Stew - 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]
manager
maybe this is already covered on the tomcat website or in some FAQ, but i can't seem to find the answer i'm looking for... i want to turn off all the tomcat administration tools (manager, admin, etc) and the html documentation that's available through the root context... reason being that the machine is never updated or maintained via these tools and so (even though they have a password) the management apps are just a potential security issue. how exactly should i go about this? thanks, jon _ Scanned on 30 Dec 2003 00:26:36 Scanning by http://erado.com _ Scanned on 30 Dec 2003 00:26:37 Scanning by http://erado.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
(Probably) Basic Config Problem
Pardon my newbieness, please. I have installed tomcat 4.1.29 in accrodance with the instructions... or so I believe... When I attempt to run the startup script I get an error logged in the error log file, as follows: tac[root]:/root- $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.29-src/catalina/src Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.29-src/catalina/src Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.29- src/catalina/src/temp Using JAVA_HOME: /usr/local/j2sdk1.4.2_03 tac[root]:/root- cat /usr/local/jakarta-tomcat-4.1.29- src/catalina/src/logs/catalina.out Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap tac[root]:/root- ps -ef |grep tomcat|grep -v grep tac[root]:/root- Any help would be appreciated! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MOD_JK (Apache+Tomcat)
Hari: You're trying to do too much too soon. Get the Apache - Tomcat connection through mod_jk to work before you try to get your own webapp to work. Use the Tomcat example servlets to verify that mod_jk is correctly installed and functional. If you can run the servlets through Apache (without :8080 in the URL) then you know mod_jk is okay, and you can focus exclusively on your webapp. Webapp deployment and mod_jk are both complicated enough on their own without trying to mix the issues together. Jerry Hari Om wrote: Hello, I am using APache 2.0.47 and Tomcat 4.1.27 on SuSE Linux 8.1 I am working on the Connector MOD_JK.SO which I build from the source and put in /modules directory. When I run my Tomcat first and then Apache and then acceess http://My.domian.name/kuki it does not work... it says Page cannot be found wonder why? I also try to see MOD_JK.LOG file but I cannot find this file anywhere. Can anyone help me out in connecting Apache and Tomncat. Here are my Config Files: --- SERVER.XML --- # added following after Server Port=8005 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/usr/local/apache2/modules/mod_jk.so jkDebug=info workersConfig=/usr/local/tomcat4/conf/jk/workers.properties jkLog=/usr/local/tomcat4/logs/mod_jk.log/ Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Host name=my.domain.name debug=0 appBase=webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true / Context path=/kuki docBase=/home/kuki/kuki/webapps/kuki reloadable=true ~~~ --- WORKERS.PROPERTIES --- workers.CATALINA_HOME=/usr/local/tomcat4 workers.java_home=$(JAVA_HOME) ps=/ worker.list=ajp13 worker.ajp13.port=8009 worker.ajp13.host=my.domain.name worker.ajp13.type=ajp13 worker.ajp13.lbfactor=5 ~~~ --- MOD_JK.CONF this file is AUTO GENERATED --- ## Auto generated on Mon Dec 29 14:10:45 MST 2003## IfModule !mod_jk.c LoadModule jk_module /usr/local/apache2/modules/mod_jk.so /IfModule JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/tomcat4/logs/mod_jk.log JkLogLevel info VirtualHost my.domain.name ServerName my.domain.name JkMount /kuki ajp13 JkMount /kuki/* ajp13 JkMount /examples ajp13 JkMount /examples/* ajp13 /VirtualHost ~~~ HTTPD.CONF Listen My.IP.ADDR.ESS:80 IfModule !mod_jk.c LoadModule jk_module modules/mod_jk.so /IfModule ServerName my.domain.name:80 JkWorkersFile /usr/local/tomcat4/conf/jk/workers.properties JkLogFile /usr/local/apache2/logs/mod_jk.log JkLogLevel debug JkMount /examples ajp13 JkMount /examples/* ajp13 JkMount /kuki ajp13 JkMount /kuki/* ajp13 ~~~ Can anyone please GUIDE me on this Connection Process? THANKS! and HAPPY NEW YEAR! HARI OM _ Get reliable dial-up Internet access now with our limited-time introductory offer. http://join.msn.com/?page=dept/dialup - 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]
servlet gets smtp relay denied error
I have written a JavaMail servlet to mail documents at user request. (User selects a document from the web page and enters an email address; when the Mail it now button is clicked, the servlet is called and the document sent as an attachment to an email message.) The servlet is deployed as a Tomcat webapp, which is called by Apache through mod_jk.. When I invoke it from a browser on the same network as the server, it works as expected. An email is sent to the specified address, with the attachment. But when I invoke it from a browser outside of my network, the message does not get sent. Catalina.out shows the servlet throwing the following exceptions: Transport exception: javax.mail.SendFailedException: Sending failed; nested exception is: class javax.mail.SendFailedException: Invalid Addresses; nested exception is: class javax.mail.SendFailedException: 550 5.7.1 [EMAIL PROTECTED]... Relaying denied The email address is correct and valid---I can send a test message and receive it at that address. The mail server is configured to deny relays for anybody not on the LAN, but there is no relay request---the servlet runs on the same box as the smtp server (which is, in fact, on the same box as my Apache, Tomcat and DNS servers). Why does it matter where the browser that sends the request resides? Thanks for whatever help you can offer. Jerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 connection toTomcat on Win 2003 Server
isapi_redirect2.dll is/was added/in the Web Service Extensions. My gut feeling is its something in the server.xml, workers2.properties, jk2.properties or some other file(s) I may have left out.. Where does the web.xml fall in to all of this? Web, tomcat and java directories have read execute permissions for the IUSR user. Is there any reason to bump that up to write create? Log files seem to be getting updated ok and there isn't any scarie log entries that point to any thing. Really appreciate your help and getting back. Thanks. It *looks* like the guide you followed did not include the changes to web service extensions to allow the ISAPI application to run. In the IIS manager, click on the Web Service Extensions folder. On the right side, click on the Add a new Web service extension link. Type in any Extension name you want (I used Jakarta-Tomcat), then click the Add button and add the isapi_redirect2.dll file. Then check the Set extension status to Allowed box at the bottom and click OK. You'll have to restart IIS (right click on your computer name in the IIS Manager, then click All Tasks -- Restart IIS) before it'll take effect. Give that a shot! Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: IIS6 connection toTomcat on Win 2003 Server Greetings. Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 isapi_redirector2.dll New to Java and I did fry finding answers before subscribing. When I found http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.htm l I really thought I'd made it. IIS is serving pages normal with the WWW service in IIS 5.0 isolation mode. Virtual dir for the dll is configured. Web Service extensions status for the dll is set to allow the dll. Registry contains the required reg entrys per www.rit.edu Tomcat is working fine on the url/:8080. jsp and servlets all work on 8080. server.xml http://localhost/examples/index.html or serverdrive:\inetpub\wwwroot\examples\index.html displays ok. When one of the example links is selected I get The page cannot be displayed error message. Expected to receive a tomcat error msg. It was the regular MS error page.. Have been thru the server.xml and workers2.properties several times. What else can I do? Any ideas would really be appreciated. Thanks Happy New Year Stew - 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: servlet gets smtp relay denied error
When I invoke it from a browser on the same network as the server, it works as expected. An email is sent to the specified address, with the attachment. But when I invoke it from a browser outside of my network, the message does not get sent. I don't have first hand experience in this class, but I got a theory. One possible problem is that your mail server is not looking at the connection to determine if it is a relay but at the message. Have the servlet write out the text of the message to a file or console OR look at one of the messages sent from inhouse to see how the message is formed. Also does/can your mail server send a response to the address attempting the relay? That could help determine why the mail server thinks it's a relay. The mail server is configured to deny relays for anybody not on the LAN, but there is no relay request---the servlet runs on the same box as the smtp server (which is, in fact, on the same box as my Apache, Tomcat and DNS servers). Why does it matter where the browser that sends the request resides? Now for a real stretch, does your server have a public or private IP assigned or both? If both, then consider that the request is being associated with the public IP when attached from outside and the private when from inside. If TC is using the public IP in the request to the mail server then is the mail server set to allow a relay from it's public IP? I know this might end up being a bunch of fertilizer, but no one had resonded and every now and then I get lucky. Good Luck Doug Parsons SCJP - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Did i forget anything when reinstalling TomCat 4.1.27 ?
Hi guys, a quick helping hand, please! I have changed the tomcat environment into a new fisical server. I ve used Winzip to compress and extract it. At the new server, the Tomcat's admin page is up, but whenever i call my app, i get this message:The requested resource (/Portal.jsp) is not available. Of course, the server.xml is the same as the old one. Any help is wellcome... José Euclides Junior - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: IIS6 connection toTomcat on Win 2003 Server
This is a good resource that I've found: http://virtualict.net/support/kb/iis6-Tomcat5-JK2.html Not sure if it'll help you out or not, but it's worth a shot. Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 7:17 PM To: Tomcat Users List Subject: RE: IIS6 connection toTomcat on Win 2003 Server isapi_redirect2.dll is/was added/in the Web Service Extensions. My gut feeling is its something in the server.xml, workers2.properties, jk2.properties or some other file(s) I may have left out.. Where does the web.xml fall in to all of this? Web, tomcat and java directories have read execute permissions for the IUSR user. Is there any reason to bump that up to write create? Log files seem to be getting updated ok and there isn't any scarie log entries that point to any thing. Really appreciate your help and getting back. Thanks. It *looks* like the guide you followed did not include the changes to web service extensions to allow the ISAPI application to run. In the IIS manager, click on the Web Service Extensions folder. On the right side, click on the Add a new Web service extension link. Type in any Extension name you want (I used Jakarta-Tomcat), then click the Add button and add the isapi_redirect2.dll file. Then check the Set extension status to Allowed box at the bottom and click OK. You'll have to restart IIS (right click on your computer name in the IIS Manager, then click All Tasks -- Restart IIS) before it'll take effect. Give that a shot! Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 4:56 PM To: [EMAIL PROTECTED] Subject: IIS6 connection toTomcat on Win 2003 Server Greetings. Windows 2003 server running IIS 6.0. (IIS 5.0 isolation mode) j2sdk1.4.2_03 Jakarta Tomcat 5.0.16 isapi_redirector2.dll New to Java and I did fry finding answers before subscribing. When I found http://www.rit.edu/~ack5504/tomcat-iis6-howto/narantugs-sengee-guide.h tm l I really thought I'd made it. IIS is serving pages normal with the WWW service in IIS 5.0 isolation mode. Virtual dir for the dll is configured. Web Service extensions status for the dll is set to allow the dll. Registry contains the required reg entrys per www.rit.edu Tomcat is working fine on the url/:8080. jsp and servlets all work on 8080. server.xml http://localhost/examples/index.html or serverdrive:\inetpub\wwwroot\examples\index.html displays ok. When one of the example links is selected I get The page cannot be displayed error message. Expected to receive a tomcat error msg. It was the regular MS error page.. Have been thru the server.xml and workers2.properties several times. What else can I do? Any ideas would really be appreciated. Thanks Happy New Year Stew - 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: manager
$ cd $CATALINA_HOME/webapps $ rm admin.xml manager.xml $ rm -rf tomcat-docs You could also nuke $CATALINA_HOME/server/webapps for good measure (or to save disk space :), but Tomcat won't find the 'admin' or 'manager' webapps without the xml files. Jonathan Locke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] maybe this is already covered on the tomcat website or in some FAQ, but i can't seem to find the answer i'm looking for... i want to turn off all the tomcat administration tools (manager, admin, etc) and the html documentation that's available through the root context... reason being that the machine is never updated or maintained via these tools and so (even though they have a password) the management apps are just a potential security issue. how exactly should i go about this? thanks, jon _ Scanned on 30 Dec 2003 00:26:36 Scanning by http://erado.com _ Scanned on 30 Dec 2003 00:26:37 Scanning by http://erado.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: (Probably) Basic Config Problem
Well, you are running from the source-distro. After you have built Tomcat, you need to set CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.29-src/build or CATALINA_HOME=/usr/local/jakarta-tomcat-4.1.29-src/dist (depending on whether you used the command 'ant' or 'ant dist' to build Tomcat. John King [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Pardon my newbieness, please. I have installed tomcat 4.1.29 in accrodance with the instructions... or so I believe... When I attempt to run the startup script I get an error logged in the error log file, as follows: tac[root]:/root- $CATALINA_HOME/bin/startup.sh Using CATALINA_BASE: /usr/local/jakarta-tomcat-4.1.29-src/catalina/src Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.1.29-src/catalina/src Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.29- src/catalina/src/temp Using JAVA_HOME: /usr/local/j2sdk1.4.2_03 tac[root]:/root- cat /usr/local/jakarta-tomcat-4.1.29- src/catalina/src/logs/catalina.out Exception in thread main java.lang.NoClassDefFoundError: org/apache/catalina/startup/Bootstrap tac[root]:/root- ps -ef |grep tomcat|grep -v grep tac[root]:/root- Any help would be appreciated! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Connector attribute serverSocketTimeout in server.xml
Hume, John - NA US HQ Delray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anyone point me in the direction of a resource to explain the Connector attribute serverSocketTimeout? I haven't found any reference to it in the jakarta site or this mailing list. Thanks. It's the value of SO_TIMEOUT for the ServerSocket. I don't really recommend messing with it unless you *really* know what you are doing :). -john. _ john d. hume 561-266-6256 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URL-rewriting
With TC 5.x, Servlet-mapping happens very early (long before any non-TC specific code has a chance :). With TC 4.1.x, it still happens before the Filters get called, but it is still possible to use a (Tomcat-specific) Valve to do the rewrite. (N.B. Valves get called after the Mapper in TC 5.x, so this won't help you there :). Overall (regardless of what you use to implement re-writing), I'd go with Yoav's suggestion of using a Filter that calls rd.forward on the re-written URI. IMHO, you will have a lot more hair at the end of it ;-). Mattias Bogeblad [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi and thanx for the suggestion but I want to try the rewrite module first as that offers all flexibility I need. The package I named is a pure java implementation of Apache mod-rewrite so I thought I benefit from it if possible. Anyone else who can contribute? Regards Mattias Bogeblad -Ursprungligt meddelande- Från: Shapira, Yoav [mailto:[EMAIL PROTECTED] Skickat: den 29 december 2003 19:13 Till: Tomcat Users List Ämne: RE: URL-rewriting Howdy, I'm not an expert on Apache's mod-rewrite, so I'll give you one possible pue java solution: a fairly simple filter (a javax.servlet.Filter filter). Map the filter /* and code your redirection rules in java. Actually, you might want to look at the balancer webapp (tomcat 5) which has a StringMatchRule that you can use. Yoav Shapira Millennium ChemInformatics -Original Message- From: Mattias Bogeblad [mailto:[EMAIL PROTECTED] Sent: Monday, December 29, 2003 12:57 PM To: Tomcat Users List Subject: URL-rewriting Hi All, I want to be able to use url-rewriting in an application I have. I want to transform urls like http://localhost:8080/infoglueDeliver/products/productX.html to http://localhost:8080/infoglueDeliverDev/ViewPage.action?navigationTitl e =products/productX.html I have checked out the http://www.tuckey.org/urlrewrite-package but I'm not sure how to write the regexp to accomplish what I want. Anyone good at these things? Regards, Mattias Bogeblad 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]
Re: [OT] custom tags in a page
Easy question first: If you don't need BodyTag, don't use it, since it is a potential memory hog. If you need to process it in a loop, use IterationTag instead. (of course this assumes TC 4.x or higher) Hard question last: Without seeing your JSP page, I can't tell you exactly why Jasper chooses to create two methods. However, popular candidates are: 1) The different calls to 'msgtag' specify different attributes sets. 2) One or more of the 'msgtag' invocations is nested within the body of another Tag. The reason to use method-calls is to (try) and prevent any single method in the resulting .class from exceding 64K (at which point javac pucks :). Antony Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I wrote two custom tags. One is used only once in the page(msgtag) while the other one is used multiple times(outtag) similar to JSTL c:out. Both classes extends BodyTagSupport. When I looked at the compiled servlet code both tags are called in different ways. Each use of msgtag is made a method call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. outtag is invoked directly in servlet. Why the difference ?. Is this behavior can be controlled through coding ?. Which one is better ?. Why Tomcat is creating one method per each tag invocation.? Why not manage it like an object. Each time it is getting an instance from a pool ? BTW Extending TagSupport or BodyTagSupport is better. I have no need to process the body ? Any performance gain ? rgds Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Building 5.1 from Source
Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. Ramakrishna Rallapalli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: 2 way SSL ( client authentication)
The ssl-howto has instructions for generating a self-signed Server-cert. You can't use a self-signed client-cert (Ok, I'm lying, but it's for your own good: You can with PureTLS, but for your own good, I'm going to make you look it up yourself :). The client-cert needs to be signed by someone in your TrustStore. Amjad Shahrour [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all, I am trying to implement 2 way SSL ( client authentication) on tomcat 4. I am following all steps. But still have something missing. ( all documentations descrips how to deal with certificates that are varified by CA). I need to know how to generate a normal self-signed certificate and how to use it in a proper way. Thnx. Amjad Shahrour Application Developer Tel: +966.2.653.3334 ext 213 [EMAIL PROTECTED] www.labbaik.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] custom tags in a page
Thank you for the reply. 'msgtag' don't have attributes. The other tag 'outtag' have attributes and it is invoked in service method itself . No tags are nested. But I cannot understand the logic in creating a separate method call for each tag invocation. In each method it is using same code other than the retrieved tag instance is assigned to a new variable and methods are invoked on this. Is there any particular reason for doing this ?. My reason for asking this question is to know and learn how pooling works. rgds Antony Paul - Original Message - From: Bill Barker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:36 AM Subject: Re: [OT] custom tags in a page Easy question first: If you don't need BodyTag, don't use it, since it is a potential memory hog. If you need to process it in a loop, use IterationTag instead. (of course this assumes TC 4.x or higher) Hard question last: Without seeing your JSP page, I can't tell you exactly why Jasper chooses to create two methods. However, popular candidates are: 1) The different calls to 'msgtag' specify different attributes sets. 2) One or more of the 'msgtag' invocations is nested within the body of another Tag. The reason to use method-calls is to (try) and prevent any single method in the resulting .class from exceding 64K (at which point javac pucks :). Antony Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I wrote two custom tags. One is used only once in the page(msgtag) while the other one is used multiple times(outtag) similar to JSTL c:out. Both classes extends BodyTagSupport. When I looked at the compiled servlet code both tags are called in different ways. Each use of msgtag is made a method call. If I put 2 msgtag(both are exacly same) in JSP it creates 2 methods. outtag is invoked directly in servlet. Why the difference ?. Is this behavior can be controlled through coding ?. Which one is better ?. Why Tomcat is creating one method per each tag invocation.? Why not manage it like an object. Each time it is getting an instance from a pool ? BTW Extending TagSupport or BodyTagSupport is better. I have no need to process the body ? Any performance gain ? rgds Antony Paul - 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: Building 5.1 from Source
I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. Ramakrishna Rallapalli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - 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: Building 5.1 from Source
When I run ant it is running cvs and it fails and continue processing other tasks. I dont have CVS in path. Antony Apul. - Original Message - From: Ramakrishna Rallapalli [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:56 AM Subject: RE: Building 5.1 from Source I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. Ramakrishna Rallapalli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - 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: Building 5.1 from Source
Although the CVS is put in path , still I faced problem in getting the files checkout from CVS. Ramakrishna -Original Message- From: Antony Paul [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 12:09 PM To: Tomcat Users List Subject: Re: Building 5.1 from Source When I run ant it is running cvs and it fails and continue processing other tasks. I dont have CVS in path. Antony Apul. - Original Message - From: Ramakrishna Rallapalli [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:56 AM Subject: RE: Building 5.1 from Source I tried setting up the proxy details, but still it could not get files from CVS. Thanks for your reply. I will try out with 5.0.16. -Original Message- From: Bill Barker [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 30, 2003 11:45 AM To: [EMAIL PROTECTED] Subject: Re: Building 5.1 from Source Yoav is largely correct. If you are using the 5.0.16 source distro, then *nothing* that doesn't ship with requires CVS (which is s nice, for us poor people sitting behind firewalls :). You probably need to modify your 'build.properties' file to point to the correct place for servlet-api-5 et. al. Since I'm guessing that your problem is with the firewall, also make sure to un-comment and set the 'proxy.host' and 'proxy.port' attributes in your 'build.properties' file. Ramakrishna Rallapalli [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] om... Hi, I am trying to build 5.1 from source. But unable to run the build script. It looks for a download target in the build.xml file. And its unable to check out the files from CVS erpository. Can anyone help me out? Regards , Ramakrishna - 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]