Test scripts for functional testing of tomcat.
Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all the tomcat features? Actually, I am working on porting of tomcat to my own operating system. Being done with the porting, I need to ensure that all the standard tomcat FUNCTIONALITY is properly working on the new platform. Is there any automatic test-framework/scripts available that will do this conformance for me? - Sajad Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com
Re: FW: JAAS Realm with JDBC Authentication
Geofrey Rainey wrote: Hi Mark, Yes i've read that document many times. However still need a few pointers on writing the Login Module and how it integrates with the Callbackhandler to create the popup dialog. I can't really find any comprehensive doco on this. If you are talking about the standard browser popup login dialog : this popup dialog is built-in into the browser. The browser automatically pops it up when it requests some webserver resource which happens to be protected, and receives a certain status code response from the server (401 Unauthorized), along with a WWW-Authenticate: HTTP header . When the user fills in this dialog (user-id, password) and clicks OK, the browser re-issues the same request, together with a new HTTP request header Authorization: containing some coded form of the user-id/password. It is then the webserver's job to decode this, and grant access or not. See here for details : http://tools.ietf.org/html/rfc1945#section-11 The gist is : you will not find the creation of this login dialog window in any server-side code, because it is a browser-side thing. The server just sends a 401 response to make it happen. The above is valid for the HTTP Basic and Digest authentication schemes. Things are different if you are talking of an AAA scheme that uses a HTML login page, SSL etc.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
mod_jk on Windows 2008 x64
Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The worker.properties resists in the same dir as the httpd.conf and has only one worker defiend. Is there are any known issue to use Apache 2.2.11 + Tomcat 6.0.18 + JDK x64 + and mod_jk 1.2.28 on this system? Greetings Alexander Diedler
How can i make two tomcat instances use same lib directory?
Hi, I have two tomcat instances running on a server. They use same jars. I want to create a directory that holds the comman libraries and my tomcat instances use libraries from that directory. So if i change one of the jars i will not have to deploy the jar into the two tomcat directories. I am looking forword to your suggestions. Have a nice day. Ümit
Re: Test scripts for functional testing of tomcat.
Sajad Bashir Qadri wrote: Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all the tomcat features? Tomcat version? Have you looked at the built in tests? Actually, I am working on porting of tomcat to my own operating system. Being done with the porting, I need to ensure that all the standard tomcat FUNCTIONALITY is properly working on the new platform. Is there any automatic test-framework/scripts available that will do this conformance for me? Huh? Tomcat is pure Java. If Java is available for your OS there is nothing to do. If this is some custom OS it is Java you need ot test, not Tomcat. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Windows 2008 x64
On 07.07.2009 10:07, Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The worker.properties resists in the same dir as the httpd.conf and has only one worker defiend. Is there are any known issue to use Apache 2.2.11 + Tomcat 6.0.18 + JDK x64 + and mod_jk 1.2.28 on this system? From your subject line I guess we are talking about a usual AMD/Intel 64 Bit system, not IA64 (Itanium)? Where did you get your 64 bit module from? As far as I know, we don't have any 64 bit binaries for mod_jk on the distribution site yet. Only the isapi versions for 64 bits are there yet. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Windows 2008 x64
Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The worker.properties resists in the same dir as the httpd.conf and has only one worker defiend. And the error log says? Is there are any known issue to use Apache 2.2.11 + Tomcat 6.0.18 + JDK x64 + and mod_jk 1.2.28 on this system? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: How can i make two tomcat instances use same lib directory?
ümit kara wrote: Hi, I have two tomcat instances running on a server. They use same jars. I want to create a directory that holds the comman libraries and my tomcat instances use libraries from that directory. So if i change one of the jars i will not have to deploy the jar into the two tomcat directories. I am looking forword to your suggestions. Read all the text files in the root of your Tomcat installation. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Custom Valve
Hey Chris, Thanks a lot for the detailed reply. At the moment, I have written a class that extends AccessLogValve.java. I deactivated the AccessLogValve from the server.xml and Valve className=my.Valve element to your Engine for this new Extended Valve.(We wanted it at Engine level.) Works completely fine! Thanks for the clarification :) Its just that I had no idea about this component when I started the internship. Since I dont have a lot of time, I prefered to get some help on this list.(Which I got! More than Enough actually) I thank you and Chuck for that. hats off! honestly. I just needed to create a simple Valve and see how to deploy it. (Like a prototype to test what can be possible if we use the Valve component.)It was pretty easy once I actually understood how to do it. Now I just need to call an event and mount this monitored info Thanks once again, S On Wed, Jul 1, 2009 at 2:35 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sumit, On 7/1/2009 4:02 AM, Sumit D wrote: - Extend the ValveBase class, Implement LifeCycle (not obligatory) - write invoke method implementation - compile and create its .jar file and put it in Catalina_Home/lib - point it using the context.xml or server.xml (depending on the choice at what [level] to implement the Valve) All looks correct. @ Chris, Sorry but i dont quite understand what you meant by Many of us get paid for our software work... I meant that nobody on this list is going to write your software for you unless you pay them. You can get help and tips, and maybe some working code, but at some point, you're going to have to do the work yourself. Or if you can give me a really basic idea to write a very basic Valve , that would be great. The Valve code is easy (and you probably already have it written, compiled, and working). The hard part is designing the logging component that you mentioned in your original post. This is what I meant by you're going to have to do the work yourself: you need to design your own logging object that consumes log messages and does something with them. We have no idea what that component should do and how it fits into your architecture. You seem to be asking for help to do something that is very unclear. I can think of many ways to write logging statements to files/databases/syslog/whatever but you've not really asked a specific question. You have basically asked I want to write a logging valve, and I thought I'd start by extending AccessLogValve. Anyone have any ideas?!. This is not a very directed question. You aren't going to get very directed feedback (at least not from me). Posting your code would help. Describing what you think you might want to do with your code would help. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpLWAEACgkQ9CaO5/Lv0PC+oACgr0Kt7m0OpYapM6wiSlztf8i5 lToAn05E/obNNHvp+99OBdqIHvG22oMN =2CcI -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: JAAS Realm with JDBC Authentication
Please ask your questions. Am Dienstag, 7. Juli 2009 00:51:29 schrieb Geofrey Rainey: Hi Mark, Yes i've read that document many times. However still need a few pointers on writing the Login Module and how it integrates with the Callbackhandler to create the popup dialog. I can't really find any comprehensive doco on this. regards, Geoff. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, 7 July 2009 10:44 a.m. To: Tomcat Users List Subject: Re: FW: JAAS Realm with JDBC Authentication Geofrey Rainey wrote: Hello, I'm writing a Login Module to autheniticate users and basing my code on the example provided by Sun whereby the CallBackHandler prompts users from the command line. However I'd like to do this using the web server dialog box and JDBC auth to the database. Any ideas would be helpful. Look at Tomcat's own JAASRealm and DataSourceRealm. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org == For more information on the Television New Zealand Group, visit us online at tvnz.co.nz == CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: mod_jk on Windows 2008 x64
Hello, Yes, it is an AMD Opteron CPU with 64-Bit. I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. Greetings Alexander Diedler Von: Rainer Jung [rainer.j...@kippdata.de] Gesendet: Dienstag, 7. Juli 2009 11:16 An: Tomcat Users List Betreff: Re: mod_jk on Windows 2008 x64 On 07.07.2009 10:07, Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The worker.properties resists in the same dir as the httpd.conf and has only one worker defiend. Is there are any known issue to use Apache 2.2.11 + Tomcat 6.0.18 + JDK x64 + and mod_jk 1.2.28 on this system? From your subject line I guess we are talking about a usual AMD/Intel 64 Bit system, not IA64 (Itanium)? Where did you get your 64 bit module from? As far as I know, we don't have any 64 bit binaries for mod_jk on the distribution site yet. Only the isapi versions for 64 bits are there yet. Regards, Rainer - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: mod_jk on Windows 2008 x64
Hello, There were no errorlogs because the http Service failed to start without any more information. Alexander Diedler Von: Mark Thomas [ma...@apache.org] Gesendet: Dienstag, 7. Juli 2009 11:20 An: Tomcat Users List Betreff: Re: mod_jk on Windows 2008 x64 Alexander Diedler wrote: Hi, I do several installations in the past with success for Windows 2003 and mod_jk with Apache Webserver, but now i am stopping at a Windows 2008 Server. The Apache Webserver don´t start during I add the lines for JkMount, JKLogfile, and worker.properties in the httpd.conf. The worker.properties resists in the same dir as the httpd.conf and has only one worker defiend. And the error log says? Is there are any known issue to use Apache 2.2.11 + Tomcat 6.0.18 + JDK x64 + and mod_jk 1.2.28 on this system? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: mod_jk on Windows 2008 x64
I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. How do you install Tomcat in 32bit with an x64 exe and jdk? Also, have you tried compiling the software? HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
AW: mod_jk on Windows 2008 x64
Correct me if neccessary, but Tomcat is still available in 32bit, but to start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some forums I found entries, that I have to copy from SVN repository the current tomcat5.exe, renamed it to Tomcat6.exe and everything works. But there is no problem with the tomcat server, the server is still running and available through Port 8080. But the mod_jk will not work. Greetings Alexander Diedler Von: Serge Fonville [serge.fonvi...@gmail.com] Gesendet: Dienstag, 7. Juli 2009 12:50 An: Tomcat Users List Betreff: Re: mod_jk on Windows 2008 x64 I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. How do you install Tomcat in 32bit with an x64 exe and jdk? Also, have you tried compiling the software? HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Where does System.out.println go by default
Hi, I have a tag-library in WEB-INF/lib which I use from inside OpenCms. The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. Can someone help and tell me how to get access to them ? Best regards, Yves - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: AW: mod_jk on Windows 2008 x64
check the binaries in %JAVA_HOME%\jre\bin\server are 64bit? check the binaries in %JAVA_HOME%\jre\bin\client are 64 bit? Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. From: adied...@tecracer.de To: users@tomcat.apache.org Date: Tue, 7 Jul 2009 12:53:14 +0200 Subject: AW: mod_jk on Windows 2008 x64 Correct me if neccessary, but Tomcat is still available in 32bit, but to start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some forums I found entries, that I have to copy from SVN repository the current tomcat5.exe, renamed it to Tomcat6.exe and everything works. But there is no problem with the tomcat server, the server is still running and available through Port 8080. But the mod_jk will not work. Greetings Alexander Diedler Von: Serge Fonville [serge.fonvi...@gmail.com] Gesendet: Dienstag, 7. Juli 2009 12:50 An: Tomcat Users List Betreff: Re: mod_jk on Windows 2008 x64 I install the Apache Webserver in 32-bit Tomcat in 32 Bit, with 64-Bit tomcat6.exe Java JDK from Sun site in 64-bit Version mod_jk Binaries from the 32-bit folder of Tomcat FTP Server because there is no 64-bit mod_jk. How do you install Tomcat in 32bit with an x64 exe and jdk? Also, have you tried compiling the software? HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290
Re: mod_jk on Windows 2008 x64
Correct me if neccessary, but Tomcat is still available in 32bit, but to start with a 64-bit JRE the exe has to replace with a 64-Bit version. In some forums I found entries, that I have to copy from SVN repository the current tomcat5.exe, renamed it to Tomcat6.exe and everything works. But there is no problem with the tomcat server, the server is still running and available through Port 8080. But the mod_jk will not work. I may be wrong, but with Java, there is nog 64 or 32 bit, it is WORA, so I do not see how recompiling the java source would be useful if chaning platform... And for Mod_JK, since that is a module for apache (I believe) it can be 32-bit just fine... Why exactly do you think you need it to be x64? How much memory is in the machine? What have you already tried? HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does System.out.println go by default
The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google for: tomcat stdout http://tomcat.apache.org/tomcat-5.5-doc/logging.html HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Test scripts for functional testing of tomcat.
From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, July 07, 2009 2:47 PM To: Tomcat Users List Subject: Re: Test scripts for functional testing of tomcat. Sajad Bashir Qadri wrote: Hi, Is there any test framework/scripts available which can do automatic FUNCTIONAL testing of all the tomcat features? Tomcat version? Have you looked at the built in tests? [SAJAD] Tomcat 6.0.20. tests seem to be unit tests, I am looking for runtime functionality testing, say - ensure that the JSP compilation works properly, the security realms are properly setup, etc. Actually, I am working on porting of tomcat to my own operating system. Being done with the porting, I need to ensure that all the standard tomcat FUNCTIONALITY is properly working on the new platform. Is there any automatic test-framework/scripts available that will do this conformance for me? Huh? Tomcat is pure Java. If Java is available for your OS there is nothing to do. If this is some custom OS it is Java you need ot test, not Tomcat. [Sajad] My OS supports clustering of processes. I run multiple tomcat processes in a cluster and want to ensure that the whole cluster conforms to Tomcat standard functionality. Mark Sajad Please do not print this email unless it is absolutely necessary. The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: FW: JAAS Realm with JDBC Authentication
I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? Cheers, Geoff. -Original Message- From: Oliver Block [mailto:li...@oliver-block.eu] Sent: Tuesday, 7 July 2009 10:25 p.m. To: users@tomcat.apache.org Subject: Re: FW: JAAS Realm with JDBC Authentication Please ask your questions. Am Dienstag, 7. Juli 2009 00:51:29 schrieb Geofrey Rainey: Hi Mark, Yes i've read that document many times. However still need a few pointers on writing the Login Module and how it integrates with the Callbackhandler to create the popup dialog. I can't really find any comprehensive doco on this. regards, Geoff. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Tuesday, 7 July 2009 10:44 a.m. To: Tomcat Users List Subject: Re: FW: JAAS Realm with JDBC Authentication Geofrey Rainey wrote: Hello, I'm writing a Login Module to autheniticate users and basing my code on the example provided by Sun whereby the CallBackHandler prompts users from the command line. However I'd like to do this using the web server dialog box and JDBC auth to the database. Any ideas would be helpful. Look at Tomcat's own JAASRealm and DataSourceRealm. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org == For more information on the Television New Zealand Group, visit us online at tvnz.co.nz == CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org == For more information on the Television New Zealand Group, visit us online at tvnz.co.nz == CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Where does System.out.println go by default
It goes to catalina.out file. -Original Message- From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Tuesday, July 07, 2009 4:44 PM To: Tomcat Users List Subject: Re: Where does System.out.println go by default The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google for: tomcat stdout http://tomcat.apache.org/tomcat-5.5-doc/logging.html HTH Regards, Serge Fonville - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org Checked by AVG - www.avg.com Version: 8.5.375 / Virus Database: 270.13.5/2220 - Release Date: 07/05/09 17:54:00 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: load testing
On 6/7/09 21:27, Logan, James S wrote: We have been involved with load testing several sites that deploy a Tomcat server. I replied to your previous post on the 2nd. I said: OS/version? Tomcat/version? Which Tomcat monitoring tool? Your description of the behaviour isn't very clear. It seems that you're saying that your test clients are logging in and getting a unique session id. This is normal. When you login with a web browser you get a unique session id for each different browser. This is also normal. Can you be clearer about what you expect to happen and what, if anything, is different to your expectation? When running a Load session, for some reason, each HTTP request will generate a login, when monitoring the server. Is this what you expect to happen, and if not, why not? The server is being monitored from the server-side and each request to the server will display a sessionid associated with the login id of the virtual client. Is this what you expect to happen, and if not, why not? However, when I login in manually I only see one sessionid associated with a login id as I navigate the site and request a page, and once I fire up another browser, and do the same navigation, I see the second sessionid. Is this what you expect to happen, and if not, why not? Have you folks seen this type of behavior on a Tomcat site, where virtual clients login generate multiple sessionids under load, running virtual client is 10, and the server see 20 sessionids? I'll give you a clue, in advance of a more detailed explanation of your problem: are you properly url encoding each link in the web application? p James - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: load testing
On 6/7/09 21:27, Logan, James S wrote: We have been involved with load testing several sites that deploy a Tomcat server. When running a Load session, for some reason, each HTTP request will generate a login, when monitoring the server. The server is being monitored from the server-side and each request to the server will display a sessionid associated with the login id of the virtual client. However, when I login in manually I only see one sessionid associated with a login id as I navigate the site and request a page, and once I fire up another browser, and do the same navigation, I see the second sessionid. Have you folks seen this type of behavior on a Tomcat site, where virtual clients login generate multiple sessionids under load, running virtual client is 10, and the server see 20 sessionids? Also, it's usually frowned upon to hijack someone else's thread, even if you've changed the content and subject line. Please start a completely new one when you reply. p James - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does System.out.println go by default
Serge Fonville wrote: The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google for: tomcat stdout http://tomcat.apache.org/tomcat-5.5-doc/logging.html And have a look at the Tomcat startup script (/etc/init.d/tomcat5.5), to see how Tomcat is actually started, and what it does with it's STDOUT. Chances are that it does some fancy footwork there. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: JAAS Realm with JDBC Authentication
Geofrey Rainey wrote: I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? You may want to search Google for tomcat +securityfilter, and read the various links there for information. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where does System.out.println go by default
Thanks for all your suggestions The startup-script seems to have done some magic, the log ended up in /var/log/daemon.log 2009/7/7 André Warnier a...@ice-sa.com: Serge Fonville wrote: The taglib works fine. It logs some messages to System.out, but I can not find them... Could it be that tomcat (5.5 on debian lenny) swallows this kind of logging by default? I am aware that this kind of logging is *bad*, but I need to access these logs asap. I'd google for: tomcat stdout http://tomcat.apache.org/tomcat-5.5-doc/logging.html And have a look at the Tomcat startup script (/etc/init.d/tomcat5.5), to see how Tomcat is actually started, and what it does with it's STDOUT. Chances are that it does some fancy footwork there. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: JAAS Realm with JDBC Authentication
Geofrey Rainey wrote: I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? Yes. It also handles DIGEST, FORM and CLIENT-CERT. Where the integration / extension is required is to hook into your user database. The JAASRealm only hooks into tomcat-users.xml. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Sticky session and ModJK Load Balancer
Rainer Jung wrote: On 06.07.2009 20:27, Emilio Recio wrote: Mark Thomas wrote: Emilio Recio wrote: Hi, i have installed Apache 2.2 and two Tomcat 6 whit load balancing in cluster mode using mod_jk module and setting sticky session in TRUE, and memory replication. I was testing my project and work perfect. We have a dilemma using sticky session or not using it, with my team work. Setting sticky-session in TRUE, it works fine, even when one tomcat fails-over. When set to FALSE i can see that the session have some data loss, and the project start to fail. I was reading the book Professional Apache Tomcat 6, goggle searches and all kind of information in the net. The recommendation is: use sticky-session in TRUE with memory replication. Nobody mention concrete arguments, and need that to make a report to the system administrator, to make him understand why we need to use sticky-session in TRUE. I would have thought the occasional data loss you see is argument enough. What more were you looking for? Mark Hi Mark, We are developing an e-commerce app. The application store in session a lot of information like user data, user history data, etc. The scenario is: 3 PC's, one with Apache 2.2, and the others have Tomcat 6. Apache has mod_jk to make load balancing, and the Tomcat 6 have configured in memory session replication, to support fail-over. STICKY SESSION FALSE: Some times: Tomcat1 after the login, has all the user info charged in session, when load balancer try to use the Tomcat2 some info is saved but other info is missing. We need to know good arguments to justify to the client, why we should use sticky session in true to avoid this missing data issue. The client doesn't want to use sticky session in TRUE, they arguments are: We loose performance in transactions and loose of loadbalancing (using sticky session in TRUE). Using sticky session in FALSE the Tomcat more idle attend the request that incoming and gain performance. One example: You have 4 users, two in tomcat1 and the other two in tomcat2. If users in tomcat2 logout, this stay idle when the other is attending the other two users. So, you loose load balancing. They arguments are partial true, using stick-session in TRUE , you have one tomcat attending a client session during its life cycle; even if this users are idle or has very active session. Its stable and fail-over tolerant. Of course you loose performance. So we need good arguments to explain why we need use, sticky session in true. My regards, Emilio Recio Usually you only use a custering solution like Tomcat session replication if you really need high availability. Clustering adds some complexity to the system, so in order to justify that you need a reason, which should be, that your user sessions are expensive, so you do not want to loose them under any circumstances. If so, your primary goal is stability not performance. Adding any high availability solution also reduces performance (but maybe only a bit). Why use sticky sessions when doing session replication? Because without sticky sessions, each request depends on the fact, that the replication of the previous request to the same session was completed successfully. So the correctness of your application depends the whole time on the completeness of the session replication (because requests will switch form node to node a lot without stickyness). Whenever something goes wrong with respect to session replication, a user will fail. This seems to be, what you actually oberve when working without stickyness. Your application is *not* replicating completely. Stiky off is a good setting for testing, but not for production. With stickyness, under normal operation you don't rely on the fact, that replication works. Only in case a node goes bad, the sessions fail over and then you need the correctness of the previous replications. Usually this only happens unplanned like maybe once a month or even fewer times. It is also much easier to track what's going on and maybe wrong, when you have stickyness, because then all requests for one session can be usually found in the log files of only one node. You don't have to consolidate them from multiple nodes. Concerning performance: If you only plan 2 Tomcat nodes, then you have to size the in order for one node to be able to carry the full load. Otherwise when a node crashes, although you have session replication, it could happen that the remaining node is not able to cope with the load. So an uneven load distribution between the two nodes is not a real problem, each one should be able to handle all requests. Under high session load (like e.g. more than 1.000 users logged in) usually the request load distributes good enough to not produce a very uneven load. In short: stability is more important then performance in high-availability situations and a two node cluster should be designed such that a single node can carry all the load.
Re: Sticky session and ModJK Load Balancer
Emilio Recio wrote: Rainer Jung wrote: On 06.07.2009 20:27, Emilio Recio wrote: Mark Thomas wrote: Emilio Recio wrote: Hi, i have installed Apache 2.2 and two Tomcat 6 whit load balancing in cluster mode using mod_jk module and setting sticky session in TRUE, and memory replication. I was testing my project and work perfect. We have a dilemma using sticky session or not using it, with my team work. Setting sticky-session in TRUE, it works fine, even when one tomcat fails-over. When set to FALSE i can see that the session have some data loss, and the project start to fail. I was reading the book Professional Apache Tomcat 6, goggle searches and all kind of information in the net. The recommendation is: use sticky-session in TRUE with memory replication. Nobody mention concrete arguments, and need that to make a report to the system administrator, to make him understand why we need to use sticky-session in TRUE. I would have thought the occasional data loss you see is argument enough. What more were you looking for? Mark Hi Mark, We are developing an e-commerce app. The application store in session a lot of information like user data, user history data, etc. The scenario is: 3 PC's, one with Apache 2.2, and the others have Tomcat 6. Apache has mod_jk to make load balancing, and the Tomcat 6 have configured in memory session replication, to support fail-over. STICKY SESSION FALSE: Some times: Tomcat1 after the login, has all the user info charged in session, when load balancer try to use the Tomcat2 some info is saved but other info is missing. We need to know good arguments to justify to the client, why we should use sticky session in true to avoid this missing data issue. The client doesn't want to use sticky session in TRUE, they arguments are: We loose performance in transactions and loose of loadbalancing (using sticky session in TRUE). Using sticky session in FALSE the Tomcat more idle attend the request that incoming and gain performance. One example: You have 4 users, two in tomcat1 and the other two in tomcat2. If users in tomcat2 logout, this stay idle when the other is attending the other two users. So, you loose load balancing. They arguments are partial true, using stick-session in TRUE , you have one tomcat attending a client session during its life cycle; even if this users are idle or has very active session. Its stable and fail-over tolerant. Of course you loose performance. So we need good arguments to explain why we need use, sticky session in true. My regards, Emilio Recio Usually you only use a custering solution like Tomcat session replication if you really need high availability. Clustering adds some complexity to the system, so in order to justify that you need a reason, which should be, that your user sessions are expensive, so you do not want to loose them under any circumstances. If so, your primary goal is stability not performance. Adding any high availability solution also reduces performance (but maybe only a bit). Why use sticky sessions when doing session replication? Because without sticky sessions, each request depends on the fact, that the replication of the previous request to the same session was completed successfully. So the correctness of your application depends the whole time on the completeness of the session replication (because requests will switch form node to node a lot without stickyness). Whenever something goes wrong with respect to session replication, a user will fail. This seems to be, what you actually oberve when working without stickyness. Your application is *not* replicating completely. Stiky off is a good setting for testing, but not for production. With stickyness, under normal operation you don't rely on the fact, that replication works. Only in case a node goes bad, the sessions fail over and then you need the correctness of the previous replications. Usually this only happens unplanned like maybe once a month or even fewer times. It is also much easier to track what's going on and maybe wrong, when you have stickyness, because then all requests for one session can be usually found in the log files of only one node. You don't have to consolidate them from multiple nodes. Concerning performance: If you only plan 2 Tomcat nodes, then you have to size the in order for one node to be able to carry the full load. Otherwise when a node crashes, although you have session replication, it could happen that the remaining node is not able to cope with the load. So an uneven load distribution between the two nodes is not a real problem, each one should be able to handle all requests. Under high session load (like e.g. more than 1.000 users logged in) usually the request load distributes good enough to not produce a very uneven load. In short: stability is more important then performance in high-availability situations and a two node cluster should be designed such that a single node
jsp:forward adds params to query-string
Hi, I have a simple jsp-page whose only purpose is to jsp:forward to my main controller-servlet, here it is: %@ page session=true % %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% jsp:forward page=/FormProcessor jsp:param name=o value=action1 / /jsp:forward The problem I have is that the request comes as POST to the servlet, but without the o-parameter. The o-param instead comes as query-string o=action1 Note that the post-request comes from an external URL. Does jsp:foward not preserve the original request? I would like to keep all POST Best regards, Yves - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: JAAS Realm with JDBC Authentication
Am Dienstag, 7. Juli 2009 13:55:17 schrieb Geofrey Rainey: However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? That's what the how-to says under 1. (See http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html#JAASRealm ) The LoginModule will receive the callbacks via it's initialize method: public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options) Best Regards, Oliver Block - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Solaris 10 mod_jk problems...
We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile /var/apache2/logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile/var/apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Send everything for context /examples to worker named worker1 (ajp13) JkMount /Example/* worker1 --- ** worker.properties from Windows box --- # Begins worker.properties here # Define path of .properties files and jdk # workers.tomcat_home=E:\IISSettings # ps=\ # Define workers using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=server name here worker.worker1.port=8309 --- Tried compiling from source but to no avail.. running ./configure --with-apxs=/usr/apache2/bin/apxs Error - gives error regarding /opt/SUNWspro/bin/cc missing Symbolic link to /usr/sfw/bin/gcc does not work ** thx for any help ct -- View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24375362.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Seeking authoritative answer re using Log4J with v6
Sorry for the delay, had a few vacation days. I ran some tests to verify Log4J config at webapp vs server level and had these additional observations: The log4j.properties file in CATALINA_HOME/lib is still used for initialization unless overridden in the default locations (log4j.properties or log4j.xml) by the webapp; using an alternate location via e.g. Spring Log4jContextListener will result in two LogManagers configured against the same files. JDK logging is still initialized by Tomcat's default logging.properties, resulting in several zero-length files in CATALINA_BASE/logs. So overall that's three changes to the Tomcat documentation for Log4J: Use tomcat-juli.jar and tomcat-juli-adapters.jar from the archives; don't build them yourself (until the build script is fixed) Webapp must configure Log4j from the default locations (log4j.xml or log4j.properties at top-level in the classpath) or else supply an empty file at one of these locations to suppress the one on the server classpath CATALINA_BASE/conf/logging.properties should be deleted or renamed. Jonathan Ross wrote: Thanks, this worked. I downloaded tomcat-juli.jar from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/, replaced my build with it, and now have log4j at the server level. (I still need to very the classloader order prefers log4j.jar in a webapp.) Mark Thomas-18 wrote: Mark Thomas wrote: I have checked recently (with 6.0.18) and it worked as expected and documented. I'll check 6.0.20 and post the results. 6.0.20 works for me as well. It looks very much like your build environment is broken. Rather than building the extras package yourself, just download it. This works for me with 6.0.18 and 6.0.20 as documented. Mark -- View this message in context: http://www.nabble.com/Seeking-authoritative-answer-re-using-Log4J-with-v6-tp24225048p24375677.html Sent from the Tomcat - User mailing list archive at Nabble.com.
Re: Solaris 10 mod_jk problems...
thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that does not match the platform. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile /var/apache2/logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile/var/apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Send everything for context /examples to worker named worker1 (ajp13) JkMount /Example/* worker1 --- ** worker.properties from Windows box --- # Begins worker.properties here # Define path of .properties files and jdk # workers.tomcat_home=E:\IISSettings # ps=\ # Define workers using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=server name here worker.worker1.port=8309 --- Tried compiling from source but to no avail.. running ./configure --with-apxs=/usr/apache2/bin/apxs Error - gives error regarding /opt/SUNWspro/bin/cc missing Symbolic link to /usr/sfw/bin/gcc does not work ** thx for any help ct - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DBCP and Firewall timeouts
unfortunately still not working. One thing that i noticed, when i clear my browser cookies, everything works fine again. One of the things we do is use cookie persistence to send a user to the same tomcat server (we need this for file uploads,etc). Is there anything in the session cookie that would cause this issue? Thanks AD On Thu, Jul 2, 2009 at 9:38 AM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 7/1/2009 5:01 PM, David Smith wrote: Christopher Schultz wrote: David, On 7/1/2009 10:49 AM, David Smith wrote: It would and the performance hit is minimal if you use the ping syntax in your validation query. I believe it looks like this: validationQuery=/* ping */ SELECT 1 Note that both the PING is only applicable for MySQL when using Connector/J, and SELECT 1 may only be applicable on certain databases (MySQL being one of them). Right and I double checked the original post that started this thread. AD described the environment as having MySQL 5.1 Apologies... the thread was broken somewhere along the way and the original message wasn't grouped with the others in my mail reader. The OP definitely said they were using MySQL 5.1. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkpMuHIACgkQ9CaO5/Lv0PADewCfVnBaTKaGS/bnDm7DZiWkTj8x 7JgAoMOO3vwM7gzLQXz8fWpGutVBclDR =mPNr -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Where is server.xml being loaded from?
Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as $|CATALINA_HOME|/conf/server.xml My question is: To avoid this kind of problem in the future, is there an output somewhere showing me where this file is truly being loaded from? Regards, Luciana Moreira -- This message has been signed by the PrivaSphere Mail Signature Service. smime.p7s Description: S/MIME cryptographic signature
Re: Where is server.xml being loaded from?
Luciana Moreira Sa de Souza Signed by - PrivaSphere AG wrote: Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as $|CATALINA_HOME|/conf/server.xml My question is: To avoid this kind of problem in the future, is there an output somewhere showing me where this file is truly being loaded from? Nope. That would probably be a question for a debian list. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DBCP and Firewall timeouts
Do you hold on to your connections in code or do you close them when done with each request? If you hold on to them, they can still timeout with or without a validationQuery set. --David AD wrote: unfortunately still not working. One thing that i noticed, when i clear my browser cookies, everything works fine again. One of the things we do is use cookie persistence to send a user to the same tomcat server (we need this for file uploads,etc). Is there anything in the session cookie that would cause this issue? Thanks AD On Thu, Jul 2, 2009 at 9:38 AM, Christopher Schultzch...@christopherschultz.net wrote: David, On 7/1/2009 5:01 PM, David Smith wrote: Christopher Schultz wrote: David, On 7/1/2009 10:49 AM, David Smith wrote: It would and the performance hit is minimal if you use the ping syntax in your validation query. I believe it looks like this: validationQuery=/* ping */ SELECT 1 Note that both the PING is only applicable for MySQL when using Connector/J, and SELECT 1 may only be applicable on certain databases (MySQL being one of them). Right and I double checked the original post that started this thread. AD described the environment as having MySQL 5.1 Apologies... the thread was broken somewhere along the way and the original message wasn't grouped with the others in my mail reader. The OP definitely said they were using MySQL 5.1. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Where is server.xml being loaded from?
Luciana Moreira Sa de Souza Signed by - PrivaSphere AG wrote: Hi, I have tomcat 5.5 on debian lenny and had some issues with permission on the server.xml. This happened due to the number of symbolic links that exist in this installation which make the final real location not so obvious as $|CATALINA_HOME|/conf/server.xml My question is: To avoid this kind of problem in the future, is there an output somewhere showing me where this file is truly being loaded from? Regards, Luciana Moreira -- This message has been signed by the PrivaSphere Mail Signature Service. Tomcat as distributed via tomcat.apache.org doesn't have any symlinks and no need to track such information. The Debian folks will be better able to help you in this case. Most people on this list will just advise you to drop the Debian distribution of tomcat in favor of the tomcat.apache.org distribution which performs rock solid w/o any symlinks. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DBCP and Firewall timeouts
we are using Jruby / Rails / Tomcat. I think what may be happening is that rails has its own connection pool in front of DBCP which could be causing the issue here, not sure yet. AD On Tue, Jul 7, 2009 at 12:20 PM, David Smithd...@cornell.edu wrote: Do you hold on to your connections in code or do you close them when done with each request? If you hold on to them, they can still timeout with or without a validationQuery set. --David AD wrote: unfortunately still not working. One thing that i noticed, when i clear my browser cookies, everything works fine again. One of the things we do is use cookie persistence to send a user to the same tomcat server (we need this for file uploads,etc). Is there anything in the session cookie that would cause this issue? Thanks AD On Thu, Jul 2, 2009 at 9:38 AM, Christopher Schultzch...@christopherschultz.net wrote: David, On 7/1/2009 5:01 PM, David Smith wrote: Christopher Schultz wrote: David, On 7/1/2009 10:49 AM, David Smith wrote: It would and the performance hit is minimal if you use the ping syntax in your validation query. I believe it looks like this: validationQuery=/* ping */ SELECT 1 Note that both the PING is only applicable for MySQL when using Connector/J, and SELECT 1 may only be applicable on certain databases (MySQL being one of them). Right and I double checked the original post that started this thread. AD described the environment as having MySQL 5.1 Apologies... the thread was broken somewhere along the way and the original message wasn't grouped with the others in my mail reader. The OP definitely said they were using MySQL 5.1. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Solaris 10 mod_jk problems...
Thx for the response.. Hardware : SunBlade 100 (Sparc) OS: Solaris 10 U7 (05/09) Apache: # /usr/apache2/bin/httpd -v Server version: Apache/2.0.63 Server built: Jan 18 2009 15:51:05 Good thoughts.. double checked to make sure and I do have the correct SPARC binary.. Here is the complete link. http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so the /usr/apache2/libexec directory is where I put the binary so it would pick up like all the other apache2 modules listed in /etc/apache2/httpd.conf ( LoadModule rewrite_module libexec/mod_rewrite.so ) ( LoadModule jk_module libexec/mod_jk.so ) # pwd /usr/apache2/libexec # ls -al mod_jk* -rw-r--r-- 1 root root 943144 Mar 21 18:40 mod_jk-1.2.28-httpd-2.0.X.so -rw-r--r-- 1 root bin 943144 Jun 29 13:59 mod_jk.so # ldd mod_jk.so libc.so.1 = /lib/libc.so.1 libm.so.2 = /lib/libm.so.2 /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 binary looks linked --- and it looks like mod_jk initializes --- # pwd /var/apache2/logs # tail mod_jk.log [Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized [Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized --- So far so good...? tk awarnier wrote: thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that does not match the platform. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile /var/apache2/logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile/var/apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Send everything for context /examples to worker named worker1 (ajp13) JkMount /Example/* worker1 --- ** worker.properties from Windows box --- # Begins worker.properties here # Define path of .properties files and jdk # workers.tomcat_home=E:\IISSettings # ps=\ # Define workers using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=server name here worker.worker1.port=8309 --- Tried compiling from source but to no avail.. running ./configure --with-apxs=/usr/apache2/bin/apxs Error - gives error regarding /opt/SUNWspro/bin/cc missing Symbolic link to /usr/sfw/bin/gcc does not work ** thx for any help ct - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- View this message in context: http://www.nabble.com/Solaris-10-mod_jk-problems...-tp24375362p24377783.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Problems downloading files. How to identify the CANCEL button?
Dear all, I need to log some information only after a user downloads or opens a file. I am using a servlet for that and the download part works fine. However I need to identify which button was clicked because in case the user clicks [CANCEL] I am not supposed to register any information. I put lots of messages on the code to understand how it works and even if I click [CANCEL] the messages will be printed showing that all commands will be executed no matter which button was clicked. Can someone help me to identify which button was clicked? Thanks Siomara === package servlets.comum; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; /** * Definition of class DownloadFile. */ public class DownloadFile extends HttpServlet { private String original_filename = MYFILE.txt; private String filename=C:\\ABC.txt; /** * Processes requests for both HTTP GET and POST methods. * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Filef= new File(filename); int length = 0; ServletOutputStream op = response.getOutputStream(); ServletContext context = getServletConfig().getServletContext(); String mimetype = context.getMimeType( filename ); System.out.println(here 1); // Set the response and go! response.setContentType( (mimetype != null) ? mimetype : application/octet-stream ); response.setContentLength( (int)f.length() ); response.setHeader( Content-Disposition, attachment; filename=\ + original_filename + \ ); System.out.println(here 2); // Stream to the requester. byte[] bbuf = new byte[filename.length()]; DataInputStream in = new DataInputStream(new FileInputStream(f)); while ((in != null) ((length = in.read(bbuf)) != -1)) { op.write(bbuf,0,length); } System.out.println(here 3); in.close(); System.out.println(here 4); op.flush(); System.out.println(here 5); op.close(); System.out.println(here 6); } /** * Handles the HTTP GET method. * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Handles the HTTP POST method. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Returns a short description of the servlet. */ public String getServletInfo() { return Short description; } } == Results: [Tue Jul 07 10:39:43 BRT 2009] info: postgres: Opened a new connection [Tue Jul 07 10:39:43 BRT 2009] info: postgres: Delivered connection from pool select arquivolicitacao.licitacaoid, arquivolicitacao.arquivoid, arquivo.tipoarquivoid, arquivo.tituloapresentacao, arquivo.nomeinterno, arquivo.localizacaofisica, arquivo.datapublicacaodou, tipoarquivo.descricao from arquivolicitacao, arquivo, tipoarquivo where arquivolicitacao.licitacaoid = 5 and arquivolicitacao.arquivoid = arquivo.arquivoid and arquivo.tipoarquivoid = tipoarquivo.tipoarquivoid order by datapublicacaodou desc here 1 here 2 here 3 here 4 here 5 here 6
Re: Solaris 10 mod_jk problems...
Dunno, but I have this nagging not-quite-sure memory tidbit : running ./configure --with-apxs=/usr/apache2/bin/apxs I have not compiled mod_jk very often, but isn't there something like apxs2 for Apache2 ? (I mean that apxs may be a leftover from an Apache 1.3 installation). If that doesn't lead anywhere, then another tentative speculation : your installed Apache2 binary was built using the Sun Solaris professional C compiler, which is not available by default on your current platform. You need to build mod_jk using that same compiler. When you refer to apxs in the build process, it retrieves the settings used to compile/build your Apache binary, but that leads him nowhere because you don't have that compiler available here. I hesitate to speculate further, because I am really not an expert at this kind of thing. But say just for the entertainment value : On http://www.sunfreeware.com, there is an Apache2 available for Solaris 10 Sparc. (There is even an Apache 2.2.11, which I would recommend rather than a 2.0.x. 2.2.x is the current version, and the differences with 2.0 in terms of configuration are minimal, if any). There are also apr and aprutils which, who knows, you might need also at some point. (Tomcat may like that e.g.). Anyway, these are all compiled with gcc. And.. on www.sunfreeware.com, there is also a gcc available. All of these are Solaris packages, installable with pkgadd, without recompilation. As far as I recall, they install in /usr/local/..., thus somewhere else than your current Apache 2.0, so other than port 80 it should not conflict. There is unfortunately no pre-packaged mod_jk to go with it, so that one you still have to build. But once you have installed the above, and with the correct --with-apxs link for ./configure, I would bet that mod_jk compiles and runs just fine. Caveat : by doing this, you may step into the dependencies maelstrom, with each of these packages telling you that you are missing this other indispensable package as a pre-requisite. But as my life conpanion is fond to say, no risk, no fun, and from your latest post, you seem to be able enough to master the process. (I recommend that you script it though, for posterity and future updates). HTH thekat wrote: Thx for the response.. Hardware : SunBlade 100 (Sparc) OS: Solaris 10 U7 (05/09) Apache: # /usr/apache2/bin/httpd -v Server version: Apache/2.0.63 Server built: Jan 18 2009 15:51:05 Good thoughts.. double checked to make sure and I do have the correct SPARC binary.. Here is the complete link. http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so the /usr/apache2/libexec directory is where I put the binary so it would pick up like all the other apache2 modules listed in /etc/apache2/httpd.conf ( LoadModule rewrite_module libexec/mod_rewrite.so ) ( LoadModule jk_module libexec/mod_jk.so ) # pwd /usr/apache2/libexec # ls -al mod_jk* -rw-r--r-- 1 root root 943144 Mar 21 18:40 mod_jk-1.2.28-httpd-2.0.X.so -rw-r--r-- 1 root bin 943144 Jun 29 13:59 mod_jk.so # ldd mod_jk.so libc.so.1 = /lib/libc.so.1 libm.so.2 = /lib/libm.so.2 /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 binary looks linked --- and it looks like mod_jk initializes --- # pwd /var/apache2/logs # tail mod_jk.log [Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized [Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized --- So far so good...? tk awarnier wrote: thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that does not match the platform. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory
RE: Solaris 10 mod_jk problems...
it means either gcc is not installed or is not available to your user account try $ which gcc /usr/bin/gcc as you can see my gcc is located in /usr/bin where did acquire mod_jk src distro? *Greets* Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 7 Jul 2009 10:36:10 -0700 From: l...@kewlcat.com To: users@tomcat.apache.org Subject: Re: Solaris 10 mod_jk problems... Thx for the response.. Hardware : SunBlade 100 (Sparc) OS: Solaris 10 U7 (05/09) Apache: # /usr/apache2/bin/httpd -v Server version: Apache/2.0.63 Server built: Jan 18 2009 15:51:05 Good thoughts.. double checked to make sure and I do have the correct SPARC binary.. Here is the complete link. http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/mod_jk-1.2.28-httpd-2.0.X.so the /usr/apache2/libexec directory is where I put the binary so it would pick up like all the other apache2 modules listed in /etc/apache2/httpd.conf ( LoadModule rewrite_module libexec/mod_rewrite.so ) ( LoadModule jk_module libexec/mod_jk.so ) # pwd /usr/apache2/libexec # ls -al mod_jk* -rw-r--r-- 1 root root 943144 Mar 21 18:40 mod_jk-1.2.28-httpd-2.0.X.so -rw-r--r-- 1 root bin 943144 Jun 29 13:59 mod_jk.so # ldd mod_jk.so libc.so.1 = /lib/libc.so.1 libm.so.2 = /lib/libm.so.2 /platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1 binary looks linked --- and it looks like mod_jk initializes --- # pwd /var/apache2/logs # tail mod_jk.log [Tue Jul 07 10:03:08.018 2009] [19704:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized [Tue Jul 07 10:03:09.018 2009] [19706:1] [info] init_jk::mod_jk.c (3183): mod_jk/1.2.28 initialized --- So far so good...? tk awarnier wrote: thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that does not match the platform. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile /var/apache2/logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile/var/apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Send everything for context /examples to worker named worker1 (ajp13) JkMount /Example/* worker1 --- ** worker.properties from Windows box --- # Begins
RE: FW: JAAS Realm with JDBC Authentication
Thankyou for the responses, they've been helpful. What do you folks think the best design would be to auth an application to our database based on the following information; Presently we have a custom login module that authenticates users to our database using JDBC. However we really need to integrate the auth to our AD. I have setup and tested a JNDI realm successfully, however a neccessary condition is that once AD auth is established they still need to be logged into the database server as that user (which might not necessarily exist in the db and thus should fail). Option 1: Login Module to auth to db using JDBC. Oracle users are auth against the directory using something called Oracle directory services. Option 2: Handled entirely by Login Module by firstly auth to AD, then auth to Db using the username. My preference I think is option 2, but can anyone think of a better method? Thank you for your responses. Cheers, Geofrey. -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Wednesday, 8 July 2009 12:51 a.m. To: Tomcat Users List Subject: Re: FW: JAAS Realm with JDBC Authentication Geofrey Rainey wrote: I am confused about integrating the JAAS Login Module with HTTP basic auth. I was under the impression that one had to handle this in a custom callback handler. However I'm now under the impression that the JAASRealm has a built-in callback hander that does this. Is this correct? Yes. It also handles DIGEST, FORM and CLIENT-CERT. Where the integration / extension is required is to hook into your user database. The JAASRealm only hooks into tomcat-users.xml. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org == For more information on the Television New Zealand Group, visit us online at tvnz.co.nz == CAUTION: This e-mail and any attachment(s) contain information that is intended to be read only by the named recipient(s). This information is not to be used or stored by any other person and/or organisation. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Problems downloading files. How to identify the CANCEL button?
at least 2 ways to determine the button selected 1)set a boolean property which is enabled on or off based on executed button class MyAction extends ActionSupport { private boolean submit; private boolean clear; public void setSubmit(boolean submit) { this.submit = submit; } public void setClear(boolean clear) { this.clear = clear; } public String execute() { if (submit) { doSubmit(); return submitResult; } if (clear) { doClear(); return clearResult; } return super.execute(); } }2)check the name of the button as indicated here class MyAction extends ActionSupport { private String buttonName; public void setButtonName(String buttonName) { this.buttonName = buttonName; } public String execute() { if (Submit.equals(buttonName)) { doSubmit(); return submitResult; } if (Clear.equals(buttonName)) { doClear(); return clearResult; } return super.execute(); } }http://cwiki.apache.org/WW/multiple-submit-buttons.html many other solutions are available from devs Martin __ Verzicht und Vertraulichkeitanmerkung Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. From: siom...@portosdobrasil.gov.br To: users@tomcat.apache.org Subject: Problems downloading files. How to identify the CANCEL button? Date: Tue, 7 Jul 2009 15:09:05 -0300 Dear all, I need to log some information only after a user downloads or opens a file. I am using a servlet for that and the download part works fine. However I need to identify which button was clicked because in case the user clicks [CANCEL] I am not supposed to register any information. I put lots of messages on the code to understand how it works and even if I click [CANCEL] the messages will be printed showing that all commands will be executed no matter which button was clicked. Can someone help me to identify which button was clicked? Thanks Siomara === package servlets.comum; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; /** * Definition of class DownloadFile. */ public class DownloadFile extends HttpServlet { private String original_filename = MYFILE.txt; private String filename=C:\\ABC.txt; /** * Processes requests for both HTTP GET and POST methods. * @param request servlet request * @param response servlet response */ protected void processRequest(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { Filef= new File(filename); int length = 0; ServletOutputStream op = response.getOutputStream(); ServletContext context = getServletConfig().getServletContext(); String mimetype = context.getMimeType( filename ); System.out.println(here 1); // Set the response and go! response.setContentType( (mimetype != null) ? mimetype : application/octet-stream ); response.setContentLength( (int)f.length() ); response.setHeader( Content-Disposition, attachment; filename=\ + original_filename + \ ); System.out.println(here 2); // Stream to the requester. byte[] bbuf = new byte[filename.length()]; DataInputStream in = new DataInputStream(new FileInputStream(f)); while ((in != null) ((length = in.read(bbuf)) != -1)) { op.write(bbuf,0,length); } System.out.println(here 3); in.close(); System.out.println(here 4); op.flush(); System.out.println(here 5); op.close(); System.out.println(here 6); } /** * Handles the HTTP GET method. * @param request servlet request * @param response servlet response */ protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Handles the HTTP POST method. * @param request servlet request * @param response servlet response */ protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { processRequest(request, response); } /** * Returns a short description of
jvmroute with 8080
Hello, is there any need for the jvmroute property if we are proxying all web requests through Apache to a Cisco load balancer that is balancing all the tomcat servers on http 8080? My understanding is this is for AJP only but wanted to be sure. Thanks AD - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: DBCP and Firewall timeouts
i vote against 2 different connection pools thats 2 configurations placing twice the load routing to the same DB not a good long term situation a more viable option is to port your RAILS code to GRAILS and all others Struts/JSF/Axis to use the same DBCP which would be configured within server.xml GlobalNamingResources the other option is to enforce all connections to be acquired thru some XA Transaction Management..XA would funnel all requests to a common connection pool via a TransactionManager..this is a big deal to configure as it can take connection requests from multiple servers..as this is oracle specific.. feel free to ping me offline for details http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adga1_xa.htm you will also want to up the number of connections from 8 allowed by DBCP to accomodate as seen here http://people.apache.org/~dirkv/dbcp/configuration.html as previously mentioned you want to place your config into GlobalNamingResources http://tomcat.apache.org/tomcat-5.5-doc/config/globalresources.html so all applications would be using the same DBCP configuration and same connection pool Martin Gainty __ Jogi és Bizalmassági kinyilatkoztatás/Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Ez az üzenet bizalmas. Ha nem ön az akinek szánva volt, akkor kérjük, hogy jelentse azt nekünk vissza. Semmiféle továbbítása vagy másolatának készítése nem megengedett. Ez az üzenet csak ismeret cserét szolgál és semmiféle jogi alkalmazhatósága sincs. Mivel az electronikus üzenetek könnyen megváltoztathatóak, ezért minket semmi felelöség nem terhelhet ezen üzenet tartalma miatt. Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 7 Jul 2009 12:31:53 -0400 Subject: Re: DBCP and Firewall timeouts From: straightfl...@gmail.com To: users@tomcat.apache.org we are using Jruby / Rails / Tomcat. I think what may be happening is that rails has its own connection pool in front of DBCP which could be causing the issue here, not sure yet. AD On Tue, Jul 7, 2009 at 12:20 PM, David Smithd...@cornell.edu wrote: Do you hold on to your connections in code or do you close them when done with each request? If you hold on to them, they can still timeout with or without a validationQuery set. --David AD wrote: unfortunately still not working. One thing that i noticed, when i clear my browser cookies, everything works fine again. One of the things we do is use cookie persistence to send a user to the same tomcat server (we need this for file uploads,etc). Is there anything in the session cookie that would cause this issue? Thanks AD On Thu, Jul 2, 2009 at 9:38 AM, Christopher Schultzch...@christopherschultz.net wrote: David, On 7/1/2009 5:01 PM, David Smith wrote: Christopher Schultz wrote: David, On 7/1/2009 10:49 AM, David Smith wrote: It would and the performance hit is minimal if you use the ping syntax in your validation query. I believe it looks like this: validationQuery=/* ping */ SELECT 1 Note that both the PING is only applicable for MySQL when using Connector/J, and SELECT 1 may only be applicable on certain databases (MySQL being one of them). Right and I double checked the original post that started this thread. AD described the environment as having MySQL 5.1 Apologies... the thread was broken somewhere along the way and the original message wasn't grouped with the others in my mail reader. The OP definitely said they were using MySQL 5.1. -chris - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Hotmail® has
Re: jsp:forward adds params to query-string
Yves Glodt ygl...@gmail.com wrote in message news:abd6c6120907070628v26c8b1d3jbd7e31708e30d...@mail.gmail.com... Hi, I have a simple jsp-page whose only purpose is to jsp:forward to my main controller-servlet, here it is: %@ page session=true % %@ page language=java contentType=text/html; charset=UTF-8 pageEncoding=UTF-8% jsp:forward page=/FormProcessor jsp:param name=o value=action1 / /jsp:forward The problem I have is that the request comes as POST to the servlet, but without the o-parameter. The o-param instead comes as query-string o=action1 Yes, this is what is specified in the Servlet spec. A jsp:param adds the parameter to the query-string. Note that the post-request comes from an external URL. Does jsp:foward not preserve the original request? I would like to keep all POST The POST parameters will still be available. What the Servlet will see (using request.getParameter(String) and friends) is the union of the query-string parameters and the POST parameters. Of course, u could have found this out faster by testing it yourself ;). Best regards, Yves - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Solaris 10 mod_jk problems...
check if you have a residual mod_jk.so Listener in server.xml e.g. Engine ... Listener className=org.apache.jk.config.ApacheConfig modJk=/path/to/mod_jk.so / /Engine also check to see of mod_jk auto-configure in $APACHE_HOME/conf/httpd.conf #To be added at the end of your httpd.conf Include $TOMCAT_HOME/conf/jk/mod_jk.conf-auto http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html Martin __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. Date: Tue, 7 Jul 2009 17:39:55 +0200 From: a...@ice-sa.com To: users@tomcat.apache.org Subject: Re: Solaris 10 mod_jk problems... thekat wrote: We have a Windows box running IIS with a tomcat connector.. I have been tasked to move this to Solaris 10 platform.. Is this a Sparc CPU, or X86 ? Maybe try : file /path_to_apache_httpd file /path_to_mod_jk.so Segmentation fault usually happens when trying to use a binary that does not match the platform. My attempts - found the binaries for mod_jk for Solaris apache2 (version 2.0.61) http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/solaris/jk-1.2.28/sparc/ --- native apache2 on Solaris U7 (05/09) is Server version: Apache/2.0.63 Using the binary from above give errors when running apache * [Mon Jun 29 15:51:16 2009] [notice] Apache/2.0.63 (Unix) DAV/2 mod_jk/1.2.28 configured -- resuming normal operations [Mon Jun 29 15:51:17 2009] [notice] child pid 8080 exit signal Segmentation fault (11) * (apache2) (additions) httpd.conf --- # Load mod_jk module # Update this path to match your modules location LoadModulejk_module libexec/mod_jk.so # Declare the module for IfModule directive (remove this line on Apache 2.x) ### AddModule mod_jk.c # Where to find workers.properties # Update this path to match your conf directory location (put workers.properties next to httpd.conf) JkWorkersFile /etc/apache2/workers.properties # Where to put jk shared memory # Update this path to match your local state directory or logs directory JkShmFile /var/apache2/logs/mod_jk.shm # Where to put jk logs # Update this path to match your logs directory location (put mod_jk.log next to access_log) JkLogFile/var/apache2/logs/mod_jk.log # Set the jk log level [debug/error/info] JkLogLevelinfo # Send everything for context /examples to worker named worker1 (ajp13) JkMount /Example/* worker1 --- ** worker.properties from Windows box --- # Begins worker.properties here # Define path of .properties files and jdk # workers.tomcat_home=E:\IISSettings # ps=\ # Define workers using ajp13 worker.list=worker1 # Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=server name here worker.worker1.port=8309 --- Tried compiling from source but to no avail.. running ./configure --with-apxs=/usr/apache2/bin/apxs Error - gives error regarding /opt/SUNWspro/bin/cc missing Symbolic link to /usr/sfw/bin/gcc does not work ** thx for any help ct - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Lauren found her dream laptop. Find the PC that’s right for you. http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290