Tomcat subdirectories BASIC authentication
Dear Tomcat users, i would ask you if is it possibile in Tomcat 5.5 to protect subdirectories of my deployed application. I'll explain an example. Suppose i have deployed my app in /application. This application has two subdirectories, subdir_1, subdir_2, but only in the url not in the file system. /application /application/subdir_1 /application/subdir_2 Suppose i have two user, user_1,user_2. I would like to do that user_1 has a full access in my application, but user_2 only subdir_1. When user_2 try to go in /application/subdir_1 will be request him username and password. i've tried this configuration but doesn't work: tomcat-users.xml: user username=user_1 password=pass1 roles=admin,manager,application,subdir_1,subdir_2/ user username=user_2 password=pass2 roles=subdir_1/ In the application web.xml: security-role role-nameapplication/role-name /security-role security-role role-namesubdir_1/role-name /security-role security-role role-namesubdir_2/role-name /security-role security-constraint web-resource-collection web-resource-nameEntire Application/web-resource-name url-pattern/application/url-pattern url-pattern/application/subdir_1/url-pattern url-pattern/application/subdir_2/url-pattern /web-resource-collection auth-constraint role-nameapplication/role-name /auth-constraint /security-constraint security-constraint web-resource-collection web-resource-nameApplication/web-resource-name url-pattern/application/subdir_1/*/url-pattern /web-resource-collection auth-constraint role-nameapplicazione/role-name role-namesubdir_1/role-name /auth-constraint /security-constraint I can proted the entire application with /* in security constraint, but not single subdirectories . Wehere is a mistake? Is it possible to do this in Tomcat 5.5? Thanks in advance -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Pool Exhausted
Martin Gainty wrote: dbcp parameters are located in a *.jocl file located on your classpath Kristen - you can safely ignore this. It doesn't apply in your case. Martin - Please read the entire thread before you post. It was made quite clear how the pool was configured and it wasn't with a jocl file. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: Wehere is a mistake? You don't need to include the context path in the url-pattern elements. Is it possible to do this in Tomcat 5.5? This is possible in all Tomcat versions. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Hi Mark, thanks for your reply. But i didn't understarnd what you said. Where i have to define that user_2 can access only in subdir_1? Can you give me an example? 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Wehere is a mistake? You don't need to include the context path in the url-pattern elements. Is it possible to do this in Tomcat 5.5? This is possible in all Tomcat versions. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: Hi Mark, thanks for your reply. But i didn't understarnd what you said. Where i have to define that user_2 can access only in subdir_1? Can you give me an example? If you don't understand terms I used, you really need to read the servlet specification. Mark 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Wehere is a mistake? You don't need to include the context path in the url-pattern elements. Is it possible to do this in Tomcat 5.5? This is possible in all Tomcat versions. 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: Tomcat subdirectories BASIC authentication
I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Hi Mark, thanks for your reply. But i didn't understarnd what you said. Where i have to define that user_2 can access only in subdir_1? Can you give me an example? If you don't understand terms I used, you really need to read the servlet specification. Mark 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Wehere is a mistake? You don't need to include the context path in the url-pattern elements. Is it possible to do this in Tomcat 5.5? This is possible in all Tomcat versions. 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 -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Running multiple tomcat instances with Tomcat 6.0.14
Hi, Thanks for sharing a very valuable information with the users of apache tomcat but there is also a very simple way to run multiple instances of apache tomcat 6 given in the post on under given blog; http://www.itoperationz.com/2009/07/multiple-instances-of-apache-tomcat-6-on-debain5-lenny/ Regards, Azhar Ali prasad.gowda wrote: Hi, I have a setup like this for running multiple instance of tomcat installation CATALINA_HOME is set to the tomcat installation dir (D:/apache-tomcat-6.0.14) CATALINA_BASE is set to the personal tomcat instance (D:/test/tomcat) Under my personal tomcat dir(D:/test/tomcat), I have the following dir/files conf Catalina localhost context.xml catalina.policy server.xml tomcat-users.xml web.xml lib logs webapps Contents of context.xml are as follows - In the D:/test/LATEST/docs directory, I have a index.html page and index.html is part of the welcome-file-list in web.xml The personal tomcat instance is configured to run on port 6060. When user types in http://localhost:6060 I expect to see the contents of index.html but I see a blank page - no errors, nothing in the accesslog The same setup works fine with tomcat 5.0.24 but not in tomcat 6.x Is there some other configuration that needs to be done to get this running on Tomcat 6.x? Thanks, Prasad -- View this message in context: http://www.nabble.com/Running-multiple-tomcat-instances-with-Tomcat-6.0.14-tp15065011p24983794.html Sent from the Tomcat - User mailing list archive at Nabble.com.
RE: Connection Pool Exhausted
that is only one solution what is your non-jocl solution? 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. Date: Sat, 15 Aug 2009 09:50:37 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Connection Pool Exhausted Martin Gainty wrote: dbcp parameters are located in a *.jocl file located on your classpath Kristen - you can safely ignore this. It doesn't apply in your case. Martin - Please read the entire thread before you post. It was made quite clear how the pool was configured and it wasn't with a jocl file. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009
RE: Tomcat subdirectories BASIC authentication
As we are learning There are some things that Tomcat can do and some things Tomcat cannot do if you want to look at how other webappservers accomplish url-pattern and security-constraint read http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540 ping me offline for a solution you can use rather than Tomcat certified solution that wont work 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. Date: Sat, 15 Aug 2009 11:30:10 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat subdirectories BASIC authentication Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get free photo software from Windows Live http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009
Re: Running multiple tomcat instances with Tomcat 6.0.14
azharalibuttar wrote: Hi, Thanks for sharing a very valuable information with the users of apache tomcat but there is also a very simple way to run multiple instances of apache tomcat 6 given in the post on under given blog; http://www.itoperationz.com/2009/07/multiple-instances-of-apache-tomcat-6-on-debain5-lenny/ That isn't great advice. There are much better ways to run multiple instances that to just do multiple installations. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Pool Exhausted
Martin Gainty wrote: that is only one solution No it isn't. You didn't answer the question asked which was How do I set the connection pool size to 1. what is your non-jocl solution? Read the thread. Hassan has already answered the question. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Martin Gainty wrote: As we are learning There are some things that Tomcat can do and some things Tomcat cannot do There are may things you can't do with Tomcat. However, Tomcat can do this. if you want to look at how other webappservers accomplish url-pattern and security-constraint read http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540 That description of web.xml applies to any spec compliant servlet container. However, given that the OP doesn't know what a context path is that probably won't help. However, the Servlet spec will. ping me offline for a solution you can use Encouraging off-line communication for on-topic posts is totally unacceptable behaviour on this list. The community learns from other people's questions and answers. Encouraging on-topic questions to be taken off-line prevents the community from learning from each other. rather than Tomcat certified solution that wont work This is completely untrue. Security constraints do work in Tomcat. It would be a major bug if they did not. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Connection Pool Exhausted
set numActive=1 is not a long term solution mark 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. Date: Sat, 15 Aug 2009 12:57:01 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Connection Pool Exhausted Martin Gainty wrote: that is only one solution No it isn't. You didn't answer the question asked which was How do I set the connection pool size to 1. what is your non-jocl solution? Read the thread. Hassan has already answered the question. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Windows Live™: Keep your life in sync. http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009
Re: Connection Pool Exhausted
Martin Gainty wrote: set numActive=1 is not a long term solution mark It isn't meant to be. For the umpteenth time, read the thread and understand the context before you comment. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat subdirectories BASIC authentication
if the proposed solution is not conformant to spec or is not a TC solution yelling at the op or anyone else (even though what you're saying is technically correct) still does not provide (a TC Servlet-spec) solution that will work for the client the end result is that the client gets ticked and *everyone* loses that client or customer i ask again..the answer is? 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. Date: Sat, 15 Aug 2009 13:04:02 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Tomcat subdirectories BASIC authentication Martin Gainty wrote: As we are learning There are some things that Tomcat can do and some things Tomcat cannot do There are may things you can't do with Tomcat. However, Tomcat can do this. if you want to look at how other webappservers accomplish url-pattern and security-constraint read http://edocs.bea.com/wls/docs61/webapp/web_xml.html#1039540 That description of web.xml applies to any spec compliant servlet container. However, given that the OP doesn't know what a context path is that probably won't help. However, the Servlet spec will. ping me offline for a solution you can use Encouraging off-line communication for on-topic posts is totally unacceptable behaviour on this list. The community learns from other people's questions and answers. Encouraging on-topic questions to be taken off-line prevents the community from learning from each other. rather than Tomcat certified solution that wont work This is completely untrue. Security constraints do work in Tomcat. It would be a major bug if they did not. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get back to school stuff for them and cashback for you. http://www.bing.com/cashback?form=MSHYCBpubl=WLHMTAGcrea=TEXT_MSHYCB_BackToSchool_Cashback_BTSCashback_1x1
RE: Connection Pool Exhausted
from my experience setting numActive to 1 is NOT a l/t solution 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. Date: Sat, 15 Aug 2009 13:12:13 +0100 From: ma...@apache.org To: users@tomcat.apache.org Subject: Re: Connection Pool Exhausted Martin Gainty wrote: set numActive=1 is not a long term solution mark It isn't meant to be. For the umpteenth time, read the thread and understand the context before you comment. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get your vacation photos on your phone! http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM
RE: Connection Pool Exhausted
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Connection Pool Exhausted from my experience setting numActive to 1 is NOT a l/t solution No one ever suggested it was; it's simply a debugging technique to make it easier to find the connection leak. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat subdirectories BASIC authentication
From: gabriele.fatig...@gmail.com [mailto:gabriele.fatig...@gmail.com] On Behalf Of Gabriele Fatigati Subject: Re: Tomcat subdirectories BASIC authentication I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. As Mark said, you must not include the context path in the url-pattern. Hint: the context path in your case is /application. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Martin Gainty wrote: if the proposed solution is not conformant to spec There is a spec compliant solution to the OPs question... or is not a TC solution ...and Tomcat supports that spec compliant solution. yelling at the op or anyone else Whose yelling? I don't see any shouting on this thread. I see an OP who wants to be spoon-fed the answer rather than doing a little research and actually learn something and I see you throwing misdirection and inaccurate information around but I don't see any yelling. (even though what you're saying is technically correct) still does not provide (a TC Servlet-spec) solution that will work for the client Yet again, there is a perfectly simple spec compliant solution and the OP has pointers they need to find it. the end result is that the client gets ticked and *everyone* loses that client or customer There is no client or customer here, just members of the Tomcat user community. This community has some ground rules which have been better described than I ever could by others: http://catb.org/~esr/faqs/smart-questions.html http://slash7.com/pages/vampires and people are expected to abide by them. i ask again..the answer is? A simple three step solution. 1. Read the Servlet specification. Any version would do but since the OP is using Tomcat 5.5, the Servlet 2.4 spec would be best. 2. Understand what a context path is. 3. Read my original answer again. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Running multiple tomcat instances with Tomcat 6.0.14
From: azharalibuttar [mailto:az...@itoperationz.com] Subject: Re: Running multiple tomcat instances with Tomcat 6.0.14 Thanks for sharing a very valuable information with the users of apache tomcat but there is also a very simple way to run multiple instances of apache tomcat 6 given in the post on under given blog; http://www.itoperationz.com/2009/07/multiple-instances-of-apache- tomcat-6-on-debain5-lenny/ Instead of following the above rather brute-force advice from a 3rd party, you could always read the section on Multiple Tomcat Instances in the RUNNING.txt file that comes with every real Tomcat download. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Connection Pool Exhausted
Okay, so let's say I set my db connection pool size to one, where do I look to see what connection doesn't get closed like it should? Is there a particular log file, place to look in the Lambda Probe, etc, and then how do I trace that to the source code? My apologies if the answers to these are really obvious, I'm new to this. Thanks! Kristen Quoting Caldarale, Charles R chuck.caldar...@unisys.com: From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Connection Pool Exhausted from my experience setting numActive to 1 is NOT a l/t solution No one ever suggested it was; it's simply a debugging technique to make it easier to find the connection leak. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - 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: Tomcat subdirectories BASIC authentication
Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Connection Pool Exhausted
From: kwal...@sbceo.org [mailto:kwal...@sbceo.org] Subject: RE: Connection Pool Exhausted where do I look to see what connection doesn't get closed like it should? Now you've reached the hard part. You'll need to take thread dumps to find out what threads are running and where they are. Most will be stuck in the connection pool, waiting for one to come available - that will tell you where the connections are being acquired, and you should follow the logic from there to make sure the code is using a finally clause to guarantee connections are being closed. You should also look at threads not waiting in the pool, since one of those may well have acquired your one and only connection and is now stuck somewhere else. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Pool Exhausted
I know I'm coming late to the party and starting with the original post to boot. I see a third party app (not developed by Kristen) that ran perfectly before a restart caused some problems. Given this, I'm of the feeling there's a config problem OR some other app on the same tomcat instance is leaking the connections. Below, I see two Resource ... / elements in your Context ... ... /Context. Is that really in the config or am I seeing a cut/paste problem? Are there anything other webapps running on this tomcat that might access that db pool? Given this started with a reboot, could you think of anything that might have changed between that reboot and the last time tomcat started before that? --David kwal...@sbceo.org wrote: Apologies for hijacking a previous thread - hopefully this post will start a new thread. Hi everyone, I run uPortal 2.53 on Ubuntu with java-1.5.0-sun-1.5.0.18, tomcat5.5.25, Apache2, mod_jk. I have run uPortal for over two years using the Ubuntu install of Tomcat 5.0. A few weeks ago I restarted Tomcat 5.0 and got a rendering error from uPortal. Since this is our live site, I panicked and installed Tomcat 5.5.25 manually. The site seemed happy enough and I went home thinking the problem was solved. Unfortunately, uPortal came down during the night and was showing a uPortal error on the main page. When I checked the logs I saw errors over and over and over again indicating that the connection pool was exhausted and a connection to the database could not be made. Here is what the error in the log looks like: Caused by: org.springframework.dao.DataAccessResourceFailureException: RDBMServices sql error trying to get connection to uportal; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted I have been troubleshooting this for weeks now. I have updated the mysql connector driver from mysql-connector-java-3.1.12-bin.jar to mysql-connector-java-5.1.8-bin.jar. We were running on a Feisty Fawn box - I reinstalled the whole site on Jaunty Jacolope and still see the same problem. I have tried messing around with ROOT.XML. Here is what is there now: Context path= docBase=ROOT crossContext=true Resource name=jdbc/PortalDb auth=Container type=javax.sql.DataSource username=MYUSERNAME password=MYPASSWORD driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/uportal_revert maxActive=100 maxIdle=30 maxWait=1 removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true/ Resource name=jdbc/PersonDb auth=Container type=javax.sql.DataSource username= MYUSERNAME password= MYPASSWORD driverClassName=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/uportal_revert maxActive=100 maxIdle=30 maxWait=1 removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true/ !-- Disables restart persistence of sessions -- Manager pathname=/ /Context The site does not go down unless there is some load on it. I can make the problem happen by simulating load with JMeter. Also, I installed Lambda Probe to see if I can see anything there, but I am not really sure what to look for. I am leaning towards believing that there is something misconfigured in Tomcat given that the mysql/java/apache/mod_jk configuration is the same that we have had for the last two years and the site ran fine. Tomcat is the only thing I have really changed. It might be a leak, but I have not added any code to the code we have used for the past two years, and I am unsure of how to detect if it is a leak. Does anyone have any troubleshooting tips or advice? Right now I have a cronjob restarting Tomcat every hour to keep the site hobbling along, but this is really terrible to do on a live site. Thanks in advance! Kristen -- David Smith Programmer/Analyst College of Agriculture and Life Sciences Cornell University B32 Morrison Hall Ithaca, NY 14853 Phone: (607) 255-4334 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Connection Pool Exhausted
From: David Smith [mailto:d...@cornell.edu] Subject: Re: Connection Pool Exhausted some other app on the same tomcat instance is leaking the connections. Can't be another app - the connections are declared local to this webapp. As David states, finding out what changed before the restart may well be critical to the diagnosis. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Remote logging
Hello everybody, I have deployed a web application within a remote Tomcat server and now I need to access the Tomcat logging for debugging purposes. Anybody knows whether is available a web application to monitor this remotely - in analogy with the Manager application? Or any other techniques you would suggest to make this possible through a remote approach? Many thanks! Daniele
Re: Remote logging
Daniele Development-ML wrote: Hello everybody, I have deployed a web application within a remote Tomcat server and now I need to access the Tomcat logging for debugging purposes. Anybody knows whether is available a web application to monitor this remotely - in analogy with the Manager application? Or any other techniques you would suggest to make this possible through a remote approach? Lots of ways to do it. Probably the easiest is to use lambdaprobe. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Why? 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection Pool Exhausted
On Sat, Aug 15, 2009 at 7:08 AM, kwal...@sbceo.org wrote: Okay, so let's say I set my db connection pool size to one, where do I look to see what connection doesn't get closed like it should? Chuck already gave you the sophisticated (thread dump) approach. Alternatively, from the Department of Quick Hackery :-) : If you're familiar with the control flow of whatever's going on, it may be incredibly obvious: show list of widgets, OK, show an individual widget, BOOM -- so the list-of-widgets query wasn't properly closed. Otherwise, if possible, tail your DB's query log -- the last successful query there will be the area to start investigating. HTH, and good luck! -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Bad reference to the css maybe? Yes, to the css. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Bad reference to the css maybe? Yes, to the css. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.it Tel: +39 051 6171722 g.fatigati [AT] cineca.it -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
And very very strage, with user_1 pages has correct layout, with user 2 no! 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Bad reference to the css maybe? Yes, to the css. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.it Tel: +39 051 6171722 g.fatigati [AT] cineca.it -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.it Tel: +39 051 6171722 g.fatigati [AT] cineca.it -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: And very very strage, with user_1 pages has correct layout, with user 2 no! I think you need to read this. http://catb.org/~esr/faqs/smart-questions.html Mark 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Dear Marc, My question was referred to css problem.. After BASIC authentication, sometimes page layout is wrong. So, how can avoid this? Your suggested me that maybe there are wrong css link in source pages. I've checked and are correct. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: And very very strage, with user_1 pages has correct layout, with user 2 no! I think you need to read this. http://catb.org/~esr/faqs/smart-questions.html Mark 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Gabriele Fatigati wrote: Dear Marc, My question was referred to css problem.. After BASIC authentication, sometimes page layout is wrong. So, how can avoid this? Your suggested me that maybe there are wrong css link in source pages. I've checked and are correct. Clearly, something is not correct. Again, read this: http://catb.org/~esr/faqs/smart-questions.html Mark 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: And very very strage, with user_1 pages has correct layout, with user 2 no! I think you need to read this. http://catb.org/~esr/faqs/smart-questions.html Mark 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? - 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: Tomcat subdirectories BASIC authentication
could you read the servlet 3.0 spec at http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html in the meanwhile could you display the following items web.xml user_1 and css user_2 and css molte grazie Martin Gainty __ Note de déni et de confidentialité 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: Sat, 15 Aug 2009 19:56:18 +0200 Subject: Re: Tomcat subdirectories BASIC authentication From: g.fatig...@cineca.it To: users@tomcat.apache.org And very very strage, with user_1 pages has correct layout, with user 2 no! 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Bad reference to the css maybe? Yes, to the css. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark 2009/8/15 David Smith d...@cornell.edu: Mark Thomas wrote: Gabriele Fatigati wrote: I kow what is url-pattern tag , but simply i don't understand how i have to write security coinstraints. But you clearly don't know what a context path is. Read the servlet spec. It explains this. You told me: you don't need to include the context path in the url-pattern elements And i renew my question :), What i have to write in url-pattern in this specific case? The servlet spec also explains how to write security constraints. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org May I add the servlet spec is a _very_ readable document -- nothing like the many RFCs that govern stuff like URLs and HTTP protocol. --David - 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 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it -- Ing. Gabriele Fatigati Parallel programmer CINECA Systems Tecnologies Department Supercomputing Group Via Magnanelli 6/3, Casalecchio di Reno (BO) Italy www.cineca.itTel: +39 051 6171722 g.fatigati [AT] cineca.it - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org _ Get your vacation photos on your phone! http://windowsliveformobile.com/en-us/photos/default.aspx?OCID=0809TL-HM
RE: Tomcat subdirectories BASIC authentication
From: Martin Gainty [mailto:mgai...@hotmail.com] Subject: RE: Tomcat subdirectories BASIC authentication could you read the servlet 3.0 spec at http://jcp.org/aboutJava/communityprocess/pr/jsr315/index.html The servlet 3.0 spec is not appropriate; it's not approved and not implemented. The 2.4 spec is the correct level for the Tomcat version the OP is using. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat subdirectories BASIC authentication
Try installing Firebug on an install of Firefox and watch Firebug's Net tab. You'll see all the requests, response codes and more as the page loads. Should be able to figure out what's happening in short order. --David Gabriele Fatigati wrote: And very very strage, with user_1 pages has correct layout, with user 2 no! 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Mm, there are css link in the source of the page. But i've checked and i think are correct. How can avoid this behaviour? 2009/8/15 Gabriele Fatigati g.fatig...@cineca.it: Bad reference to the css maybe? Yes, to the css. 2009/8/15 Mark Thomas ma...@apache.org: Gabriele Fatigati wrote: Well, now i can authenticate subdirectories. But for some strange reason, web pages, after BASIC authentication has very bad layout! I attached an example. Attachments are blocked on this list so no-one can see your example. Why? Bad reference to the css maybe? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
checking of jvm params in a running tomcat
Hi, I use JAVA_OPTS='-Xms256m -Xmx1024m' and now I'd like to check if the running tomcat really picking up this, how to check? without installing the tomcat manager? thanks. -- View this message in context: http://www.nabble.com/checking-of-jvm-params-in-a-running-tomcat-tp24990162p24990162.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: checking of jvm params in a running tomcat
From: Angelo Chen [mailto:angelochen...@yahoo.com.hk] Subject: checking of jvm params in a running tomcat I use JAVA_OPTS='-Xms256m -Xmx1024m' and now I'd like to check if the running tomcat really picking up this, how to check? JConsole is probably the easiest platform-independent way. But since you didn't tell us the JVM version or the platform you're running on, it's hard to give you any more options. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org