Re: share session between 2 different webapp
On 03/08/2009 04:53, zhang99 wrote: can http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On be used if 2 web application are different? Let say 2 web app are deployed on same tomcat server. i looking for way, if i login to web app1, when i go to web app2, i do not need to login Yes, this is the purpose of the SingleSignOn Valve. p - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: RE: Occasional NoClassDefFoundError, but disappears after couple of restarts
Hi, Caldarale, Charles R wrote: The problem I have is that occasionally after I restart Tomcat, the startup fails with NoClassDefFoundError or ClassNotFoundException for every servlet listener that's being added from web.xml. This kind of error can be caused by having the same class(es) in multiple locations in a given branch of the classloader tree, such as in both a webapp's WEB-INF/lib and in Tomcat's lib directory (or on the system classpath). Have you checked that? I removed the obvious suspect, a duplicate postgresql driver that appeared in both WEB-INF/lib and [tomcat install dir]/lib. Unfortunately this did not seem to help. Last night I needed to restart the production server for a configuration change and I needed 22(!) restarts for Tomcat to start up correctly. It really seems that there's a race condition going on somehow. I mean, if it was a structural problem then Tomcat would simply never start up, wouldn't it? These are the libraries the web app currently uses: In WEB-INF/lib slf4j-jdk14-1.5.2.jar slf4j-api-1.5.2.jar regexp.jar quartz-1.5.2.jar jnp-client.jar jbosssx-client.jar jbosssx-as-client.jar jboss-security-spi.jar jboss-remoting.jar jboss-logging-spi.jar jboss-j2ee.jar jboss-integration.jar jboss-ejb3-security-client.jar jboss-ejb3-proxy-client.jar jboss-ejb3-core-client.jar jboss-ejb3-common-client.jar jboss-common-core.jar jboss-client.jar jboss-aspect-jdk50-client.jar jboss-aop-client.jar hibernate-annotations.jar concurrent.jar commons-logging-1.0.4.jar commons-digester-1.6.jar commons-collections-3.1.jar commons-beanutils-1.7.0.jar In [tomcat install dir]/lib mail.jar activation.jar postgresql-8.3-603.jdbc3.jar The Jboss libraries are the Jboss client libraries and are needed to consume EJBs from a remote Jboss AS instance. Maybe there are some classes somewhere that conflict with those of Tomcat, but if that would be true it's still hard to understand why starting up fails in production but never on a local workstation. Anyone has any idea? Grtz, Arjan -- It's a cult. If you've coded for any length of time, you've run across someone from this warped brotherhood. Their creed: if you can write complicated code, you must be good.
Re: Occasional NoClassDefFoundError, but disappears after couple of restarts
M4N - Arjan Tijms wrote: I removed the obvious suspect, a duplicate postgresql driver that appeared in both WEB-INF/lib and [tomcat install dir]/lib. Unfortunately this did not seem to help. Last night I needed to restart the production server for a configuration change and I needed 22(!) restarts for Tomcat to start up correctly. It really seems that there's a race condition going on somehow. I mean, if it was a structural problem then Tomcat would simply never start up, wouldn't it? A reasonable conclusion. The Jboss libraries are the Jboss client libraries and are needed to consume EJBs from a remote Jboss AS instance. Maybe there are some classes somewhere that conflict with those of Tomcat, but if that would be true it's still hard to understand why starting up fails in production but never on a local workstation. Does the production box have more cores than the dev box? If there was a race condition you would be more likely to see it with more cores. Anyone has any idea? There was a sync issue in the webappclassloader fixed in 6.0.19. Although the symptoms were different, it might be worth trying 6.0.20. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: share session between 2 different webapp
is there any example webapp that using this feature ? -- View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24787864.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: Occasional NoClassDefFoundError, but disappears after couple of restarts
A couple months ago I had a slightly different setting but with the same strange result - NoClassDefFoundErrors which occurred on a particular jsp page in my app, but only if it was the first jsp accessed following a restart (and remained in the error state until the next restart). If it was not the first jsp accessed, then everything came up fine (with nothing in the configuration or app changing in between). I also figured it's some classloader bug in Tomcat, not entirely a race condition (since it did happen consistently), but something that manifests itself depending on the order of class loading. I never did find out for sure what the problem was (maybe it's the sync issue Mark refers to below), but I stumbled upon a workaround, which I do not quite understand, which fixed this for good: I changed the order of the first two statements in the jsp, the first was one that accessed java.net.URI (a system class) and the second the session bean declaration (a custom app-specific class). Although the two statements were unrelated to each other and their order should not have made any difference, this solved the problem (switching them back did reintroduce the error, consistently). I still suspect the problem was with the order of classloading. So, not sure if this will help, but in the off chance that your issue is related to the one I was experiencing, you might want to try fiddling with the order in which classes are accessed/loaded by Tomcat (either via their xml reference, or their actual content's first statements) and hopefully something will work. Yes, it sounds strange, but it worked for me in a reproducible manner. Good luck :-) Amichai Mark Thomas wrote: M4N - Arjan Tijms wrote: I removed the obvious suspect, a duplicate postgresql driver that appeared in both WEB-INF/lib and [tomcat install dir]/lib. Unfortunately this did not seem to help. Last night I needed to restart the production server for a configuration change and I needed 22(!) restarts for Tomcat to start up correctly. It really seems that there's a race condition going on somehow. I mean, if it was a structural problem then Tomcat would simply never start up, wouldn't it? A reasonable conclusion. The Jboss libraries are the Jboss client libraries and are needed to consume EJBs from a remote Jboss AS instance. Maybe there are some classes somewhere that conflict with those of Tomcat, but if that would be true it's still hard to understand why starting up fails in production but never on a local workstation. Does the production box have more cores than the dev box? If there was a race condition you would be more likely to see it with more cores. Anyone has any idea? There was a sync issue in the webappclassloader fixed in 6.0.19. Although the symptoms were different, it might be worth trying 6.0.20. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
virtual hosts for chrooted Tomcat
Hi all, I'm preparing for deploying Tomcat based web applications on a dedicated server (finally!). I have experience with Tomcat webapps on my local Windows machine, but am making myself familiar with a real-life situation on a Ubuntu Linux server. From what I've read, chrooting Tomcat seems a sensible security measure, documented in detail in O'Reilly's Tomcat: the Definitive Guide (http://oreilly.com/catalog/tomcat/chapter/ch06.pdf). Before I start messing around, however, I would like to clarify some concepts. If I 1. setup Tomcat for virtual hosts, serving webapps from another directory than %TOMCAT_HOME%/webapps, say /var/www/virtualhosts/[virtualhost]/ 2. install Tomcat in its chroot jail at /home/chroot/tomcat ...will Tomcat be able to serve these webapps? In other words: is it possible to have Tomcat serve web applications that are physically located outside the chroot jail within which Tomcat is running? I am considering this option because I would like to configure the webapps under /var/www/virtualhosts/[virtualhost]/ for chrooted SSH/SFTP access as well. If this is not possible, are there perhaps other common guidelines for configuring virtual hosts for a chrooted Tomcat? I'm aware of and apologise for the basic level of these questions; any hints would be really appreciated! Ron Van den Branden - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Occasional NoClassDefFoundError, but disappears after couple of restarts
A. Rothman wrote: A couple months ago I had a slightly different setting but with the same strange result - NoClassDefFoundErrors which occurred on a particular jsp page in my app, but only if it was the first jsp accessed following a restart (and remained in the error state until the next restart). If it was not the first jsp accessed, then everything came up fine (with nothing in the configuration or app changing in between). I also figured it's some classloader bug in Tomcat, not entirely a race condition (since it did happen consistently), but something that manifests itself depending on the order of class loading. If you can provide a cut-down copy of that JSP that reproduces the problem on a clean Tomcat install, I'd be happy to take a look. Just create a new bugzilla entry and provide the JSP as an attachment. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: share session between 2 different webapp
zhang99 wrote: is there any example webapp that using this feature ? It works with any webapp. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tribes
Filip- Needless to say a product is as good as its documentation. I wanted to try tribes but without proper docs/articles and my limited knowledge it's tough and make me look at other options. All I wanted to do is messaging with help of tribes in between 5 tomcat instances. I wanted to have some code in my startup to instantiate the channel and when required all instances should receive or send messages to one another. Can you do the write up of an article on how to do this? I understand your valuable time and I volunteer to do an article on tribes for messaging but only if I understand? Can you help please? Filip Hanik - Dev Lists wrote: that is cause *one* of my flaws as a developer is that I'm not very good at writing and maintaining docs there is a bit more here http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html the rest is in the code of the library, which isn't that big. if you have any specific questions let me know Filip Jorge Medina wrote: Is there a way to get more documentation on the Tribes package ? I would like to reuse the dynamic membership discovery feature of Tribes, but many of the links are not working on the page http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html Thanks -Jorge - 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/Tribes-tp22085738p24789563.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: share session between 2 different webapp
sorry, what i mean is i looking for example that i can follow. any example available? -- View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24789601.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: share session between 2 different webapp
zhang99 wrote: sorry, what i mean is i looking for example that i can follow. any example available? Have you looked at the documentation? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts for chrooted Tomcat
Ron Van den Branden wrote: Hi all, I'm preparing for deploying Tomcat based web applications on a dedicated server (finally!). I have experience with Tomcat webapps on my local Windows machine, but am making myself familiar with a real-life situation on a Ubuntu Linux server. From what I've read, chrooting Tomcat seems a sensible security measure, documented in detail in O'Reilly's Tomcat: the Definitive Guide (http://oreilly.com/catalog/tomcat/chapter/ch06.pdf). Before I start messing around, however, I would like to clarify some concepts. If I 1. setup Tomcat for virtual hosts, serving webapps from another directory than %TOMCAT_HOME%/webapps, say /var/www/virtualhosts/[virtualhost]/ 2. install Tomcat in its chroot jail at /home/chroot/tomcat ...will Tomcat be able to serve these webapps? No, chrooting really does limit filesystem access to directories to within a specified directory tree. Whatever you want to access from a chrooted process must reside within that same chroot restriction. You might be able to set up chrooting so that Tomcat is able to access all virtual hosts, and so that each sftp/ssh update account only has access to the specific virtualhost directory tree, but for this case the Tomcat chroot point must be a common point above all the virtual hosts. So, if you f.ex. have a directory structure /a/b/tomcat /a/b/vhost1 /a/b/vhost2 ... then, if your Tomcat process is chrooted to /a/b/tomcat, it will not be able to access any directory which is not below the /a/b/tomcat directory. This is the whole and sole point of chrooting: the root directory accessible to a process is changed to something else than the real root directory of the underlying filesystem. Instead, if you chroot tomcat to /a/b, then it will be able to access anything wihtin /a/b, including all three abovementioned directories. Also, when you run a process chrooted, copies of all files needed by the process must exist within the chrooted environment (f.ex. all JDK files needed by Tomcat). Note though, that these (chrooting) questions have little or no relation with Tomcat as is, but would be more properly handled in an OS-related forum. -- ..Juha - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: virtual hosts for chrooted Tomcat
Hi, Juha Laiho schreef: No, chrooting really does limit filesystem access to directories to within a specified directory tree. Whatever you want to access from a chrooted process must reside within that same chroot restriction. Ok, this confirms my supposition, thanks. Note though, that these (chrooting) questions have little or no relation with Tomcat as is, but would be more properly handled in an OS-related forum. I fully agree with you; hoping for an answer I set out by knocking on a familiar door in that big world. Thanks ever so much for your elaborate and kind help. Kind regards, Ron - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: share session between 2 different webapp
i looked at http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On before posting here. any real sample? -- View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24790963.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: share session between 2 different webapp
zhang99 wrote: i looked at http://tomcat.apache.org/tomcat-6.0-doc/config/host.html#Single%20Sign%20On before posting here. any real sample? So go ahead and try it. -- Mikolaj Rydzewski m...@ceti.pl - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: IP-based virtual hosting with Tomcat(6)
Uma - If you are really serious about using 1 SSL certificate for all your connections, you need to understand SSL much better than it appears you do at the moment. Some things to note: 1) The Common Name of the SSL *must* match the name the user gives in the hostname portion of the URL he enters in his browser, or else the browser will complain. It doesn't matter if the name is provided as an IP address or a normal string name. 2) The direness of the complaint is totally dependent on the browser and the version of said browser. 3) To have one certificate match multiple hostnames, you need a wildcard certificate, where the common name is like *.domain.name. Do tons of research before attempting. 4) Internet Explorer interprets wildcard names differently than other browsers, and the spec as far as I can tell. Where host.domain.name will match the above, host.sub.domain.name will not. IE is the only browser I've found that imposes this limitation. And I don't think you can do *.*.domain.name to get around it either. Try posting to an SSL group to find someone more knowledgeable. Jeff -Original Message- From: uma...@comcast.net [mailto:uma...@comcast.net] Sent: Wednesday, July 29, 2009 5:13 PM To: Tomcat Users List Subject: Re: IP-based virtual hosting with Tomcat(6) Mark, If I wanted to use the same SSL certificate for all virtual hosts does it follow that Thanx, /U *** NOTICE * This message is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (call us collect at 512-343-9100) and immediately delete this message and all its attachments.
Re: Trouble setting up virtual host
I guess nobody is willing to help me any further on the below? _ From: Lisa D Beggs/AC/VCU ldbe...@vcu.edu To: Tomcat Users List users@tomcat.apache.org Date: 07/30/2009 12:47 PM Subject: Re: Trouble setting up virtual host Thanks to all those that have helped with this issue. I contacted our Networking department to make sure that both ports 80 and 443 were open inbound to the server and that they were open from both VCU and external networks (outside VCU). The issue was on their end and it has been resolved! I am also able to connect to my application using the virtual host www.fmdreports.vcu.edu/InfoViewApp (which automatically loads the logon.jsp page). However, what I would really like to have happen is to only have to type in www.fmdreports.vcu.edu or fmdreports.vcu.edu and not have to type the /InfoViewApp after it and have set it to load the login page which is www.fmdreports.vcu.edu/InfoViewApp/logon.jsp Here is a copy of what I have in the host element..how can I accomplish the above? Host name=fmdreports.vcu.edu appBase=webappps/InfoViewApp unpackWARs=false autoDeploy=true xmlValidation=false xmlNamespaceAware=false Aliaswww.fmdreports.vcu.edu/Alias /Host _ Change is the essence of life. Be willing to surrender what you are, for what you could become. Lisa D. Beggs Information Technology Specialist Business Application Services Phone: 804 828-2098 Fax: 804 828-0322 Don't be a phishing victim - VCU and other reputable organizations will never use email to request that you reply with your password, social security number or confidential personal information. For more details visit http://infosecurity.vcu.edu/phishing.html From: Mark Eggers its_toas...@yahoo.com To: Tomcat Users List users@tomcat.apache.org Date: 07/27/2009 10:55 PM Subject: Re: Trouble setting up virtual host As usual, late to the thread. I'll use C) then: C) on another workstation : - close the browser and re-open it. - in the browser, find the place where you can clear the cache. - do it (clear the cache) - request the URL : http://adm138/InfoViewApp - indicate the result here : A: Internet Explorer cannot display the webpage This usually means that the other workstation cannot translate between the name you gave the host on the other workstation (adm138) and the IP address of your server. I also noticed that while you use the fully qualified name in the other example (www.fmdreports.vcu.edu) you use the short name in your tests (adm138). There are several things to try here, to see where the breakdown is. I'll use numbers since everyone else is using letters. 1. From another workstation, open a DOS window (if it's Windows) or a UNIX shell command (if it's UNIX), and type the following: ping adm138 1a) If you get: Ping could not find the host adm138, then the other workstation does not know how to translate between the name and the IP address. 1b) If you get: Four lines with a bunch of numbers, then the other workstation knows how to translate between the name and the IP address 2. From another workstation, open a DOS window (if it's Windows) or a UNIX shell command (if it's UNIX) and type the following: ping adm138.fmdreports.vcu.edu 2a) If you get: Ping could not find the host adm138.fmdreports.vcu.edu, then the other workstation does not know how to translate between the name and the IP address. 2b) If you get: Four lines with a bunch of numbers, then the other workstation knows how to translate between the name and the IP address adm138.fmdreports.vcu.edu may be the fully qualified name, but this depends on how your network administrator has set up something called DNS. Firewall check == Windows comes with a built-in firewall. On XP/Professional it's located in Start-Control Panel-Network Connections. You'll have to single-click on the active network (the one your server connects to) to see Change Firewall Settings on the left hand side. Once you click on that (Change Firewall Settings), you should be able to edit the settings by selecting Exceptions tab. Hopefully you'll see two entries for Java(TM) Platform SE Binary. Make sure that the JRE you're using to run Tomcat is there (by clicking on edit and reading the properties). Short term fix (once you've checked your firewall) == If you have administrative privileges on the other workstation (Windows) or root access (UNIX), you can add some information in a file called hosts. On Windows, it's located in the %windir%\System 32\drivers\etc directory. In UNIX it's located in /etc The line you need to add is the following: aaa.bbb.ccc.ddd adm138 where aaa.bbb.ccc.ddd is the IP address of the machine with your Tomcat server. If the fully qualified name
Re: Tribes
I will work on better docs, in the mean time, quick start is here http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html On 08/03/2009 06:02 AM, nash4403X wrote: Filip- Needless to say a product is as good as its documentation. I wanted to try tribes but without proper docs/articles and my limited knowledge it's tough and make me look at other options. All I wanted to do is messaging with help of tribes in between 5 tomcat instances. I wanted to have some code in my startup to instantiate the channel and when required all instances should receive or send messages to one another. Can you do the write up of an article on how to do this? I understand your valuable time and I volunteer to do an article on tribes for messaging but only if I understand? Can you help please? Filip Hanik - Dev Lists wrote: that is cause *one* of my flaws as a developer is that I'm not very good at writing and maintaining docs there is a bit more here http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html the rest is in the code of the library, which isn't that big. if you have any specific questions let me know Filip Jorge Medina wrote: Is there a way to get more documentation on the Tribes package ? I would like to reuse the dynamic membership discovery feature of Tribes, but many of the links are not working on the page http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html Thanks -Jorge - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How do you handle 'rewrite queries' ?
Hi writing web app to replace an existing open source application (musicbrainz lucene search) that handles queries of the form http://host/?query=...type=...fmt=... and also the alternative form of http://host/ws/type/?queryfmt=... using something called lighttpd.conf , http://bugs.musicbrainz.org/browser/search_server/branches/lucene_server/admin/lighttpd.conf My servlet only handles the first case at the moment how would/Should I achieve this conversion using Apache Tomcat ( version 6) thanks for any help Paul - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: IP-based virtual hosting with Tomcat(6)
Maybe this will be helpfull to you? http://www.openssl.org/docs/apps/x509v3_config.html#Subject_Alternative_Name_ I am not sure how well that extension is supported in browsers and other ssl clients, or can you get a CA to sign a certificate that contains these extensions. But, I wouldn't be surprised if there were no problems with any of that because there are scenarios in which its useful to have same certificate be valid for a url that contains a host name or ip address.. What I do know is that I used a single self signed certificate (with subject alt names for: IP Address=10.0.100.11 IP Address=10.0.100.12 IP Address=10.0.100.13 IP Address=10.0.100.14 ) locally for testing on 4 app servers that ran a load balanced app. We tested the app with urls like https://10.0.100.11/ https://10.0.100.12/ and so on. On Wed, Jul 29, 2009 at 10:44 PM, uma...@comcast.net wrote: My second issue is perhaps more serious: is there an underlying assumption with virtual hosts that they are bound by distinct security constraints? I mean, is there an implicit assumption, for instance, that distinct virtual hosts would use distinct SSL certificates? I plan to (rather, need to) use the same SSL certificate for all vHosts. Thanx again! /U -- Why? Because YES!
Re: Trouble setting up virtual host
On Mon, Aug 3, 2009 at 7:31 AM, Lisa D Beggs/AC/VCUldbe...@vcu.edu wrote: I guess nobody is willing to help me any further on the below? I gave you the answer in the very first reply in this thread. -- 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: Trouble setting up virtual host
From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Date: 08/03/2009 11:28 AM Subject: Re: Trouble setting up virtual host On Mon, Aug 3, 2009 at 7:31 AM, Lisa D Beggs/AC/VCUldbe...@vcu.edu wrote: I guess nobody is willing to help me any further on the below? I gave you the answer in the very first reply in this thread. -- If I remember correctly, the answer you gave me is not appropriate for my situation. I can not rename my application directory folder with ROOT. I must keep my application directory structure. -- 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: Trouble setting up virtual host
On Mon, Aug 3, 2009 at 8:39 AM, Lisa D Beggs/AC/VCUldbe...@vcu.edu wrote: -- If I remember correctly, the answer you gave me is not appropriate for my situation. I can not rename my application directory folder with ROOT. I must keep my application directory structure. Why? Since you don't want that structure to be apparent? In any case, I gave you two solutions; so if you truly can't or won't use the second, use the first. -- 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: Trouble setting up virtual host
From: Hassan Schroeder hassan.schroe...@gmail.com To: Tomcat Users List users@tomcat.apache.org Date: 08/03/2009 11:44 AM Subject: Re: Trouble setting up virtual host On Mon, Aug 3, 2009 at 8:39 AM, Lisa D Beggs/AC/VCUldbe...@vcu.edu wrote: -- If I remember correctly, the answer you gave me is not appropriate for my situation. I can not rename my application directory folder with ROOT. I must keep my application directory structure. Why? Since you don't want that structure to be apparent? In any case, I gave you two solutions; so if you truly can't or won't use the second, use the first. -- Well you obviously chose not to read that I have gotten much further than the first time I posted on this forum and am well beyond the initial problem I was having. It's really sad that I decided to come here to get the help of people who with more experience than myself and learn something instead I feel I have been more chastised because of my lack of knowledge. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble setting up virtual host
Lisa D Beggs/AC/VCU wrote: I guess nobody is willing to help me any further on the below? Just because you're called Lisa then... Because, as Hassan mentioned, you already got all the answers. There are 2 ways to do what you want. And in both cases, your directory structure will change somewhat. That's how it is, no way around it. #1 consists of renaming the existing ROOT application to something else, and then rename your application to ROOT. This does not change the directory structure below whatever is the top directory of your application. It just changes the top directory name of your application. In other words, suppose you currently have (tomcat installation directory)/webapps/ROOT/* and (tomcat installation directory)/webapps/YourApp/* then ROOT should be renamed to XYZ, and then YourApp should be renamed to ROOT. That's it. Except that you should stop Tomcat before you do that, and restart Tomcat when it's done. #2 solution consists of using Virtual Hosts. You already have one, although you probably don't know that. It is represented by the single Host name=localhost... ... /Host section in your server.xml. The trick consists of creating a second one, very similar but with some attributes changed in it. But anyway, in that case, you will have to move your application, which is currently in (tomcat installation directory)/webapps/YourApp/* somewhere else. So which one do you prefer ? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble setting up virtual host
Lisa D Beggs/AC/VCU wrote: -- Well you obviously chose not to read that I have gotten much further than the first time I posted on this forum and am well beyond the initial problem I was having. It's really sad that I decided to come here to get the help of people who with more experience than myself and learn something instead I feel I have been more chastised because of my lack of knowledge. Now don't start crying. This is a though forum, full of terrible machos delighting in jargon, java, servlet specs and the like. Gotta show these guys some spunk, or you'll get nowhere. Plus, you really have no reason to complain. You've already gotten, from at least 3 of us, what amounts to a complete manual about posting to forums, the WWW, webservers, network connectivity, DNS and more. Most of it duplicating information easily available on Google and computers 101. Plus, the solution is now tantalisingly close. It would be a pity to give up now. So, what do you say ? :-) - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: FW: JNDIRealm and roleNested
Mark Thomas wrote: --- Original Message --- From: Payne, George (ghp5h) gh...@eservices.virginia.edu I still don't know the answer to the questions I originally posed below, if anyone can help, I'd very much appreciate it. If I produced a binary patch for 6.0.20 and instructions on how to install it would you be able to test it for us? Positive feedback would greatly increase the chances of this patch getting into the 6.0.x branch. George replied off-list that he would be willing to test this. So for George and anyone else that wants to test this you'll need to do the following. 1. Understand that this is development code, made available for testing purposes. In no way should this be construed to be any form of ASF release. 2. Download and install Tomcat 6.0.20. 3. Create the following directory structure under CATALINA_HOME/lib: org/apache/catalina/realm 4. Download this file: http://people.apache.org/~markt/dev/JNDIRealm.class and place it in the CATALINA_HOME/lib/org/apache/catalina/realm directory you just created. 5. Re-read point 1 :) 6. Configure your JNDI realm as normal. There are some extra options. Read through the code: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/realm/JNDIRealm.java?annotate=797162 to see what they are. 6. Start Tomcat 7. Let us know how you get on. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Trouble setting up virtual host
On Mon, Aug 3, 2009 at 9:00 AM, Lisa D Beggs/AC/VCUldbe...@vcu.edu wrote: -- Well you obviously chose not to read that I have gotten much further than the first time I posted on this forum and am well beyond the initial problem I was having. No, you're *back to the original problem* you posted about, which is what you again asked for help with just two hours ago: However, what I would really like to have happen is to only have to type in www.fmdreports.vcu.edu or fmdreports.vcu.edu and not have to type the /InfoViewApp after it and have set it to load the login page which is www.fmdreports.vcu.edu/InfoViewApp/logon.jsp :: which was answered by my first reply. Again, two simple options: choose one. And nobody, as far as I've noticed, is chastising anyone... -- 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
after setting timeouts got puzzling results
Hi, We are running with apache loadbalancer and 19 tomcat workers loadbalanced. I went through the timeout document and other documents, and my apache access log in detail before choosing the timeout values. I am seeing a bit surprising results after setting timeouts. Earlier we did not have connect_timeout, prepost_timeout, reply_timeout, recovery_options and ping_mode set. After going through the documents and analyzing our application logs for timings I set the following values. ping_mode = A reply_timeout=6 recorvery_options=3 socket_connect_timeout=5000 Ping_timeout is set to the default value that is 1. I saw that one of the tomcat instances had out of memory errors and loadbalacer still showed that worker in good state for 24 hours. I felt after setting these timeouts infact it should have detected conditions like this quickly. What am I missing? Thanks, Madhuri - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: after setting timeouts got puzzling results
Madhuri Patwardhan wrote: Hi, We are running with apache loadbalancer and 19 tomcat workers loadbalanced. I went through the timeout document and other documents, and my apache access log in detail before choosing the timeout values. I am seeing a bit surprising results after setting timeouts. Earlier we did not have connect_timeout, prepost_timeout, reply_timeout, recovery_options and ping_mode set. After going through the documents and analyzing our application logs for timings I set the following values. ping_mode = A reply_timeout=6 recorvery_options=3 socket_connect_timeout=5000 Ping_timeout is set to the default value that is 1. I saw that one of the tomcat instances had out of memory errors and loadbalacer still showed that worker in good state for 24 hours. I felt after setting these timeouts infact it should have detected conditions like this quickly. What am I missing? One thing that is missing above, and would help someone to answer, are the versions of Apache, mod_jk and Tomcat you are using. (At least I suppose it is mod_jk). - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
How to hide x-poweredBY response header
Hi, Although I´ve set false to xpoweredBy tag, it continues to appear in response headers. init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param How to hide the following information? X-Powered-By: Servlet 2.4; JBoss-4.2.0.GA_CP02 (build: SVNTag=JBPAPP_4_2_0_GA_CP02 date=200801291544)/Tomcat-5.5 Thanks, Andre -- View this message in context: http://www.nabble.com/How-to-hide-x-poweredBY-response-header-tp24796578p24796578.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: How to hide x-poweredBY response header
acastanheira2001 wrote: Hi, Although I´ve set false to xpoweredBy tag, it continues to appear in response headers. init-param param-namexpoweredBy/param-name param-valuefalse/param-value /init-param Where did you read that was the way to set it? That isn't what the Tomcat docs say. How to hide the following information? X-Powered-By: Servlet 2.4; JBoss-4.2.0.GA_CP02 (build: SVNTag=JBPAPP_4_2_0_GA_CP02 date=200801291544)/Tomcat-5.5 But given you are using JBoss, it could be completely different. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tribes
i like Ant javadoc as a follow-up task for javac ..(part of the build process) you create the package/class javadoc task will automatically create 'linted html' ANTS javadoc also has ability to read css stylesheet so you can bold method explanations italicise annotations http://ant.apache.org/manual/CoreTasks/javadoc.html prob the only thing ant javadoc wont do is translate to german,swedish,french.. you would also need to add in examples.. another format would be pdf which would easily be accomplished thru FOP 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: Mon, 3 Aug 2009 08:52:27 -0600 From: devli...@hanik.com To: users@tomcat.apache.org Subject: Re: Tribes I will work on better docs, in the mean time, quick start is here http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html On 08/03/2009 06:02 AM, nash4403X wrote: Filip- Needless to say a product is as good as its documentation. I wanted to try tribes but without proper docs/articles and my limited knowledge it's tough and make me look at other options. All I wanted to do is messaging with help of tribes in between 5 tomcat instances. I wanted to have some code in my startup to instantiate the channel and when required all instances should receive or send messages to one another. Can you do the write up of an article on how to do this? I understand your valuable time and I volunteer to do an article on tribes for messaging but only if I understand? Can you help please? Filip Hanik - Dev Lists wrote: that is cause *one* of my flaws as a developer is that I'm not very good at writing and maintaining docs there is a bit more here http://tomcat.apache.org/tomcat-6.0-doc/config/cluster-channel.html the rest is in the code of the library, which isn't that big. if you have any specific questions let me know Filip Jorge Medina wrote: Is there a way to get more documentation on the Tribes package ? I would like to reuse the dynamic membership discovery feature of Tribes, but many of the links are not working on the page http://tomcat.apache.org/tomcat-6.0-doc/tribes/introduction.html Thanks -Jorge - 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
max number of concurrent requests(update)
Hello comunity: I found a thread from 2007 about concurrent requests usefull, but i would like to reopen it to refresh it with more comunity experiences up to now. this is the thread i am taking about: http://markmail.org/message/pyxmvbeqjgj6a2q7 Any body has experience with long running request (for example:those which wait for an event)?if the answer is yes, i would like to know what is maximun number of concurrent long running request you have had? which hardware capacity do you used to achieve this maximun? I am using jmeter to test it on my specific project and then i am goint bring you my results. Any one knows where i can found this blog post which was made by Filip hanik about scalability of tomcat with NIO connector: (this is the original link but does not work) http://blog.covalent.net/roller/covalent/entry/20070308 (this short reference works but i would like to have acces to the original one) http://www.javalobby.org/java/forums/t92965.html thanks Martin lima-peru - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Access to home page
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 7/31/2009 1:07 AM, Mohit Anchlia wrote: And you do feel forced to comment. This is a forum and no one is forcing you to answer. My last post wasn't a complete troll: there's actually good information in there. But you're right: I'm free to post or not. mohitanch...@gmail.com-bozo = 1; - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XIIACgkQ9CaO5/Lv0PDY2ACeNgMaKGJBVm9oAREC7aoDUt4z K6IAn1JdPJ9lDn0DO6PwstXxmFoIG0dX =ov74 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying grails application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Juan, On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote: It turned out there is some delay between clicking the link to deploy and the application being available. I somehow expected this process to be almost instantaneous. I won't use the manager app, so I've never really noticed that the deployment process is not synchronous. I'm not surprised, though: the manager app is probably just saying to Tomcat please deploy this application. Tomcat responds by saying okay, I'll do my best and then the manager app responds to you (the user). Tomcat does the deployment at its leisure. By the way, what is the preferred way to deploy war files to a tomcat installation? from the admin console? copying the file directly? It all depends on your environment, really. We only do webapp deployments when we do a release... maybe every 3-6 months. Since we don't need any fancy continuous service or anything like that, we just shut down Tomcat, delete the deployment directory, unwar the new version, and start Tomcat again. Your requirements may warrant a more complicated solution. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XUEACgkQ9CaO5/Lv0PCLrACgjsZLNAEoMrSS7zYDGoZaiROq oWkAn0eJhy3vCn7fS0Xt5X5Ni28rEbQg =l2GS -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: max number of concurrent requests(update)
El uso de características no bloqueando requiere usando los conectadores del HTTP de ABRIL o del NIO. El conectador clásico del HTTP de java.io y los conectadores de AJP no los apoyan. Lea por favor la configuración basada acontecimiento para los conectadores asincrónicos del NIO en http://tomcat.apache.org/tomcat-6.0-doc/aio.html Cualquier configuración para NIOConnector sería encontrada allí Saludos Cordiales desde EEUU Martin __ Respete por favor las derechas de la gente en esta lista y no intercepte y no modifique este mensaje para sus propios propósitos From: jpdelato...@pucp.edu.pe To: users@tomcat.apache.org CC: cpier...@sparus-software.com) Subject: max number of concurrent requests(update) Date: Mon, 3 Aug 2009 16:32:51 -0500 Hello comunity: I found a thread from 2007 about concurrent requests usefull, but i would like to reopen it to refresh it with more comunity experiences up to now. this is the thread i am taking about: http://markmail.org/message/pyxmvbeqjgj6a2q7 Any body has experience with long running request (for example:those which wait for an event)?if the answer is yes, i would like to know what is maximun number of concurrent long running request you have had? which hardware capacity do you used to achieve this maximun? I am using jmeter to test it on my specific project and then i am goint bring you my results. Any one knows where i can found this blog post which was made by Filip hanik about scalability of tomcat with NIO connector: (this is the original link but does not work) http://blog.covalent.net/roller/covalent/entry/20070308 (this short reference works but i would like to have acces to the original one) http://www.javalobby.org/java/forums/t92965.html thanks Martin lima-peru - 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: Tomcat is stopped any errors
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chun, On 7/31/2009 11:28 AM, Lin Chun wrote: now we add the memory to 1G with the paramertsjava.args=-Xms256m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=360 -Dsun.rmi.dgc.server.gcInterval=360 the pb is solved If you have a 512MB virtual machine, then you are only prolonging the death of Tomcat. Try running with a fixed heap of 256MB. Do you need a bigger heap? optimizeit.enable=false optimizeit.hotspot=false I don't know either about this config, maybe is something link to Apache, the person who installed Tomcat5.5+mod_jk+Apache 2 has set it. OptimizeIt is a Java debugger/profiler/etc. and has nothing to do with Apache httpd. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XmEACgkQ9CaO5/Lv0PDuhgCgwGoxbaIj6Kwkj76F32oBFI9y WGQAoJt5RC8yMcWH12wXZSFKKYNN059K =ciM0 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: DigestAuthenticator failure: java.sql.SQLException: Operation not allowed after ResultSet closed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Digilloyd, On 7/31/2009 1:59 PM, DIGLLOYD INC wrote: Thank you. Any snippet on the right way to to the Realm/Resource thing? It's been so long I don't remember the right way Simple: just put this in your WEB-INF/context.xml file: Resource name=jdbc/MyDataSource description=[whatever] auth=Container type=javax.sql.DataSource maxActive=1 maxIdle=1 maxWait=1 url=@DATABASE_URL@ username=@DATABASE_USERNAME@ password=@DATABASE_PASSWORD@ driverClassName=@DATABASE_DRIVER@ removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true testOnBorrow=true validationQuery=/* ping */ SELECT 1 / Obviously, fill-in the appropriate values above. You should also have in your web.xml something like this: resource-ref description[whatever]/description res-ref-namejdbc/MyDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ...but I've found that it is not strictly necessary. I think it's because Tomcat knows that any Resource in WEB-INF/context.xml should automatically be available in the visible JNDI context for the webapp. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XxcACgkQ9CaO5/Lv0PDGcgCePI8NTUrVpCUyYKPBBOhhRnnW aUQAoJAJEt2j0asnrgCDla49v5G1FQ7F =F0rT -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying grails application
Christopher Schultz wrote: Juan, On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote: It turned out there is some delay between clicking the link to deploy and the application being available. I somehow expected this process to be almost instantaneous. I won't use the manager app, so I've never really noticed that the deployment process is not synchronous. I'm not surprised, though: the manager app is probably just saying to Tomcat please deploy this application. Tomcat responds by saying okay, I'll do my best and then the manager app responds to you (the user). Tomcat does the deployment at its leisure. Nope. Deployment via the manager app is synchronous. Time taken to deploy will depend how big the war is and how long your app takes to start. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Deploying grails application
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 8/3/2009 6:06 PM, Mark Thomas wrote: Christopher Schultz wrote: Juan, On 7/30/2009 4:39 PM, Juan Pablo Romero Méndez wrote: It turned out there is some delay between clicking the link to deploy and the application being available. I somehow expected this process to be almost instantaneous. I won't use the manager app, so I've never really noticed that the deployment process is not synchronous. I'm not surprised, though: the manager app is probably just saying to Tomcat please deploy this application. Tomcat responds by saying okay, I'll do my best and then the manager app responds to you (the user). Tomcat does the deployment at its leisure. Nope. Deployment via the manager app is synchronous. Time taken to deploy will depend how big the war is and how long your app takes to start. Good to know. I wonder what Juan meant when he said instantaneous: I had assumed that the response came back from the server, but the app wasn't yet deployed. Maybe he thought that as soon as the mouse was clicked, the application would immediately be available, rather than having to wait until the response was received. Is there a possibility for an asynchronous deploy? I ask because I've seen some (badly written) applications that take several minutes to initialize. In these cases, could a request timeout break a deployment? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3YIsACgkQ9CaO5/Lv0PDYnACfeJBiP6tblTaLSDYZwmT0C2wU I+wAnjxAppfwjaoBJqhUMXlp/9Xt2sip =6t5o -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: after setting timeouts got puzzling results
Hi, I am using apache 2.2.11 and mod_jk 1.2.28 and tomcat version 5.5.27 and 5.5.20 Thanks, Madhuri --- On Mon, 8/3/09, André Warnier a...@ice-sa.com wrote: From: André Warnier a...@ice-sa.com Subject: Re: after setting timeouts got puzzling results To: Tomcat Users List users@tomcat.apache.org Date: Monday, August 3, 2009, 1:48 PM Madhuri Patwardhan wrote: Hi, We are running with apache loadbalancer and 19 tomcat workers loadbalanced. I went through the timeout document and other documents, and my apache access log in detail before choosing the timeout values. I am seeing a bit surprising results after setting timeouts. Earlier we did not have connect_timeout, prepost_timeout, reply_timeout, recovery_options and ping_mode set. After going through the documents and analyzing our application logs for timings I set the following values. ping_mode = A reply_timeout=6 recorvery_options=3 socket_connect_timeout=5000 Ping_timeout is set to the default value that is 1. I saw that one of the tomcat instances had out of memory errors and loadbalacer still showed that worker in good state for 24 hours. I felt after setting these timeouts infact it should have detected conditions like this quickly. What am I missing? One thing that is missing above, and would help someone to answer, are the versions of Apache, mod_jk and Tomcat you are using. (At least I suppose it is mod_jk). - 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: DigestAuthenticator failure: java.sql.SQLException: Operationnot allowed after ResultSet closed
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: DigestAuthenticator failure: java.sql.SQLException: Operationnot allowed after ResultSet closed Simple: just put this in your WEB-INF/context.xml file: Make that your META-INF/context.xml file, not WEB-INF. - 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.
Re: Deploying grails application
Christopher Schultz wrote: On 8/3/2009 6:06 PM, Mark Thomas wrote: Nope. Deployment via the manager app is synchronous. Time taken to deploy will depend how big the war is and how long your app takes to start. Good to know. I wonder what Juan meant when he said instantaneous: I think he must have been using one of those 'special' computers that have infinite CPU, infinite storage and infinite memory where everything happens instantly :) I had assumed that the response came back from the server, but the app wasn't yet deployed. Maybe he thought that as soon as the mouse was clicked, the application would immediately be available, rather than having to wait until the response was received. Maybe. Is there a possibility for an asynchronous deploy? I ask because I've seen some (badly written) applications that take several minutes to initialize. Anything is possible. In these cases, could a request timeout break a deployment? No. If you are connected directly to Tomcat, Tomcat won't timeout the request (your client might). If you go via a proxy it will depend on proxy settings. Either way, if the request does time out, the deployment will still carry on and complete normally. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 5 clustering
+1, the documentation is great on clustering as Chuck mentioned. You will in due time have to make some important decisions regarding the type of cluster you wish to create (HA, HP), number of nodes and multicasting options etc It is worth reading carefuly. RGS Steven Yates | Consultant | SpringSource North Sydney | steven.ya...@springsource.com | Mob: +61 413 712 459 SpringSource Tool Suite is now FREE! Visit http://www.springsource.com/products/sts Caldarale, Charles R wrote: From: Given Shirinda [mailto:given.shiri...@sita.co.za] Subject: Tomcat 5 clustering I have linux server running,where I am running tomcat 5.I want to cluster tomcat 5 for load balancing.I got no idea where to start. The doc is always a good place: http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html - 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.
what exactly happens when timeouts are set and tomcat has outofmemory errors.
Hi, Can somebody go over the details of what exactly happens when tomcat instance has outOfmemory errors and there are following timeouts set in a loadbalancer worker config. This is my understanding. ping_mode=A, ping_timeout=1, reply_timeout=6 and recorver_options=3 If the timeouts are set as above then CPing/Cpong test for connect and prepost will work. When a new real request is sent to this tomcat instance, it should hit reply_timeout because it has outofmemory errors. Then depending on no. of retries set (it is default, for me so 2), this instance will be tried once again. Second time also it should not get reply within reply_timeout and at that point it should be marked in ERR state. However, I don't see that. I don't see it being marked in ERR state. The state is still OK inspite of this tomcat instance having outofmemory errors. Could somebody explain what am I missing? Also, what does recorvery option mean in this case? Is it possible to explain what happens when I set recovery options? what happens when I set it to 3? What will happen if I set it to 7? I am really hoping to get more understanding of how this works. Thanks, Madhuri --- On Mon, 8/3/09, Madhuri Patwardhan madhuri_patward...@yahoo.com wrote: From: Madhuri Patwardhan madhuri_patward...@yahoo.com Subject: Re: after setting timeouts got puzzling results To: Tomcat Users List users@tomcat.apache.org, a...@ice-sa.com Date: Monday, August 3, 2009, 6:12 PM Hi, I am using apache 2.2.11 and mod_jk 1.2.28 and tomcat version 5.5.27 and 5.5.20 Thanks, Madhuri --- On Mon, 8/3/09, André Warnier a...@ice-sa.com wrote: From: André Warnier a...@ice-sa.com Subject: Re: after setting timeouts got puzzling results To: Tomcat Users List users@tomcat.apache.org Date: Monday, August 3, 2009, 1:48 PM Madhuri Patwardhan wrote: Hi, We are running with apache loadbalancer and 19 tomcat workers loadbalanced. I went through the timeout document and other documents, and my apache access log in detail before choosing the timeout values. I am seeing a bit surprising results after setting timeouts. Earlier we did not have connect_timeout, prepost_timeout, reply_timeout, recovery_options and ping_mode set. After going through the documents and analyzing our application logs for timings I set the following values. ping_mode = A reply_timeout=6 recorvery_options=3 socket_connect_timeout=5000 Ping_timeout is set to the default value that is 1. I saw that one of the tomcat instances had out of memory errors and loadbalacer still showed that worker in good state for 24 hours. I felt after setting these timeouts infact it should have detected conditions like this quickly. What am I missing? One thing that is missing above, and would help someone to answer, are the versions of Apache, mod_jk and Tomcat you are using. (At least I suppose it is mod_jk). - 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: what exactly happens when timeouts are set and tomcat has outofmemory errors.
Madhuri Patwardhan wrote: Hi, Can somebody go over the details of what exactly happens when tomcat instance has outOfmemory errors and there are following timeouts set in a loadbalancer worker config. This is my understanding. ping_mode=A, ping_timeout=1, reply_timeout=6 and recorver_options=3 If the timeouts are set as above then CPing/Cpong test for connect and prepost will work. When a new real request is sent to this tomcat instance, it should hit reply_timeout because it has outofmemory errors. That depends on the state of the JVM. It might appear to work normally, it might fail to respond at all. Once on OOM has occurred Tomcat has to be assumed to be in an unknown state and should be restarted. I have seen Tomcat instances apparently recover from an OOM. It all depends why the OOM occurred and what Tomcat was doing at the time. Then depending on no. of retries set (it is default, for me so 2), this instance will be tried once again. Second time also it should not get reply within reply_timeout and at that point it should be marked in ERR state. However, I don't see that. I don't see it being marked in ERR state. The state is still OK inspite of this tomcat instance having outofmemory errors. Could somebody explain what am I missing? In short, you are incorrectly assuming that once an OOM has occurred Tomcat will no longer respond to requests. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: what exactly happens when timeouts are set and tomcat has outofmemory errors.
Before I set the timeouts thats how it worked. The tomcat instance in outof memory state would be eventually marked in ERR state. I thought by using timeouts it would set it to ERR state early. I do need to restart the tomcat instance in outofmemory error but how would I know tomcat instance is in that state unless I keep checking logs of all tomcat instances. I used the ERR indication on jkstatus page to know if there is something wrong with tomcat instance. Actually, before setting the following timeouts, I would see tomcat instances get marked to ERR state. After, setting these timeouts that is not happening as much as it happened before. After setting these timeouts I have got lot more error reports of website access errors. Do you know anything about recovery options? Thanks, Madhuri --- On Mon, 8/3/09, Mark Thomas ma...@apache.org wrote: From: Mark Thomas ma...@apache.org Subject: Re: what exactly happens when timeouts are set and tomcat has outofmemory errors. To: Tomcat Users List users@tomcat.apache.org Date: Monday, August 3, 2009, 6:49 PM Madhuri Patwardhan wrote: Hi, Can somebody go over the details of what exactly happens when tomcat instance has outOfmemory errors and there are following timeouts set in a loadbalancer worker config. This is my understanding. ping_mode=A, ping_timeout=1, reply_timeout=6 and recorver_options=3 If the timeouts are set as above then CPing/Cpong test for connect and prepost will work. When a new real request is sent to this tomcat instance, it should hit reply_timeout because it has outofmemory errors. That depends on the state of the JVM. It might appear to work normally, it might fail to respond at all. Once on OOM has occurred Tomcat has to be assumed to be in an unknown state and should be restarted. I have seen Tomcat instances apparently recover from an OOM. It all depends why the OOM occurred and what Tomcat was doing at the time. Then depending on no. of retries set (it is default, for me so 2), this instance will be tried once again. Second time also it should not get reply within reply_timeout and at that point it should be marked in ERR state. However, I don't see that. I don't see it being marked in ERR state. The state is still OK inspite of this tomcat instance having outofmemory errors. Could somebody explain what am I missing? In short, you are incorrectly assuming that once an OOM has occurred Tomcat will no longer respond to requests. 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: Access to home page
Yes there was good information. Most of the time I write to forum to see if someone has better or new ideas even though to some it may sound stupid :) On Mon, Aug 3, 2009 at 2:54 PM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 7/31/2009 1:07 AM, Mohit Anchlia wrote: And you do feel forced to comment. This is a forum and no one is forcing you to answer. My last post wasn't a complete troll: there's actually good information in there. But you're right: I'm free to post or not. mohitanch...@gmail.com-bozo = 1; - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XIIACgkQ9CaO5/Lv0PDY2ACeNgMaKGJBVm9oAREC7aoDUt4z K6IAn1JdPJ9lDn0DO6PwstXxmFoIG0dX =ov74 -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
Re: DigestAuthenticator failure: java.sql.SQLException: Operation not allowed after ResultSet closed
Thank you! (and thanks to Chuck also) Lloyd Chambers http://diglloyd.com http://macperformanceguide.com/ [Mac OS X 10.5.7 Intel, Tomcat 6.0.20] On Aug 3, 2009, at 3:05 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Digilloyd, On 7/31/2009 1:59 PM, DIGLLOYD INC wrote: Thank you. Any snippet on the right way to to the Realm/Resource thing? It's been so long I don't remember the right way Simple: just put this in your WEB-INF/context.xml file: Resource name=jdbc/MyDataSource description=[whatever] auth=Container type=javax.sql.DataSource maxActive=1 maxIdle=1 maxWait=1 url=@DATABASE_URL@ username=@DATABASE_USERNAME@ password=@DATABASE_PASSWORD@ driverClassName=@DATABASE_DRIVER@ removeAbandoned=true removeAbandonedTimeout=30 logAbandoned=true testOnBorrow=true validationQuery=/* ping */ SELECT 1 / Obviously, fill-in the appropriate values above. You should also have in your web.xml something like this: resource-ref description[whatever]/description res-ref-namejdbc/MyDataSource/res-ref-name res-typejavax.sql.DataSource/res-type res-authContainer/res-auth /resource-ref ...but I've found that it is not strictly necessary. I think it's because Tomcat knows that any Resource in WEB-INF/context.xml should automatically be available in the visible JNDI context for the webapp. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkp3XxcACgkQ9CaO5/Lv0PDGcgCePI8NTUrVpCUyYKPBBOhhRnnW aUQAoJAJEt2j0asnrgCDla49v5G1FQ7F =F0rT -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
how to get realm name
Hi, I want to digest the users credentials the same way as Digest authentication: RealmBase.Digest(username + : + somehowGetRealm() + : + password, MD5, UTF-8); I have been looking through the code and API, but cannot find a way to get the realm name to perform the digest. How do you get it? Or the LoginConfig? Or some non-Facade'd Standard object? thanks, -Rob - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: how to get realm name
RealmBase is abstract select a subclass that best accomplishes your functionality e.g. DataSourceRealm, UserDatabaseRealm, JNDIRealm, JAASRealm, JDBCRealm, JAASMemoryLoginModule, MemoryRealm hth 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: r...@koberg.com To: users@tomcat.apache.org Subject: how to get realm name Date: Mon, 3 Aug 2009 18:45:33 -0700 Hi, I want to digest the users credentials the same way as Digest authentication: RealmBase.Digest(username + : + somehowGetRealm() + : + password, MD5, UTF-8); I have been looking through the code and API, but cannot find a way to get the realm name to perform the digest. How do you get it? Or the LoginConfig? Or some non-Facade'd Standard object? thanks, -Rob - 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: share session between 2 different webapp
1.I came across documentation on this,but cannot find real example on how to use ? any tutorial on this? 2. is there any sample war that i can try out on this? -- View this message in context: http://www.nabble.com/share-session-between-2-different-webapp-tp24784997p24801578.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: share session between 2 different webapp
From: zhang99 [mailto:second_co...@yahoo.com] Subject: Re: share session between 2 different webapp 1.I came across documentation on this,but cannot find real example on how to use ? any tutorial on this? You seem to think this is more difficult than it really is. Just follow the doc: uncomment the SingleSignOn valve in server.xml and you're done - it's that simple. No changes are required to webapp code. 2. is there any sample war that i can try out on this? Any set of webapps that have security constraints can be used. The standard manager and host-manager webapps that come with Tomcat both have security constraints specified in their web.xml files; you can add whatever constraints you want to whatever webapps you want. Read the servlet spec for details about security constraints. - 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: how to get realm name
From: Robert Koberg [mailto:r...@koberg.com] Subject: how to get realm name I have been looking through the code and API, but cannot find a way to get the realm name to perform the digest. I can't find any direct mechanism either, if you don't want to use Tomcat internal classes. Here's a rather ugly method, but it might work. The web.xml for the webapp is accessible as a String via the JMX path: Catalina:WebModule://[host]/[appName]:none:none:Attributes:deploymentDescriptor Once retrieved, you could parse that for the login-config element. (You could also just read in the web.xml file, if running from an expanded war file.) It does seem odd that there's not a standard API to retrieve the login-config values, but I suppose that's because it's intended to be used only by container-managed authentication. Note that if you leave out the realm-name element, it defaults to [host]:[port], which is easily retrievable from the Request object via getServerName() and getServerPort(). - 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: how to get realm name
On Aug 3, 2009, at 9:21 PM, Caldarale, Charles R wrote: From: Robert Koberg [mailto:r...@koberg.com] Subject: how to get realm name I have been looking through the code and API, but cannot find a way to get the realm name to perform the digest. snip/ Note that if you leave out the realm-name element, it defaults to [host]:[port], which is easily retrievable from the Request object via getServerName() and getServerPort(). This one would work well for me and give a slightly simpler config. I am using an html form to front the digest authentication instead of the browser's dialog, so a user would never see the realm name. thanks! -Rob - Chuck - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Log file rotation
Hi All, We are using Tomcat with IIS 6.0 with the the ISAPI redirector and I have realized that the log file is growing and growing. What I want to know how do I rotate the ISAPI log file ? Windows Registry values are like below log_file=d:\tomcat\logs\isapi.log log_level=debug Thanks, Vikram