Re: Access to home page

2009-07-29 Thread André Warnier
Mohit Anchlia wrote: tomcat 6: How can I limit access to the home page so that people are not able to access the home page? Now that is an interesting question. Usually people come here for information about the opposite problem : their page does not show up, and they want to know why. So

Re: Need some SSL Config help.

2009-07-29 Thread Wesley Acheson
I thought that you only had to set up on apache (httpd server). Thats the way I got it working. see http://tomcat.apache.org/tomcat-6.0-doc/ssl-howto.html#SSL%20and%20Tomcatrelevenat excet below *SSL and Tomcat* *It is important to note that configuring Tomcat to take advantage of secure

Re: Access to home page

2009-07-29 Thread Wesley Acheson
Are the other pages free to access? Is the situation that you want to limit the number of people viewing the page? Or do you want to control who visits it? If its who visits it you need authentication ? See http://tomcat.apache.org/tomcat-6.0-doc/realm-howto.html for the basics of

Re: Access to home page

2009-07-29 Thread Juha Laiho
Mohit Anchlia wrote: How can I limit access to the home page so that people are not able to access the home page? By not creating the home page (/index.html, /index.jsp, ...) at all, and making sure that directory indexing is disabled? Or is there a use case in your application where the home

Tomcat High CPU consommation

2009-07-29 Thread B.Henriet
Hello, We have sometimes Tomcat (5.x) who consume all the CPU (or 50 %) of the CPU constantly in our productions servers (Linux or Windows). Our applications aren't doing anything and the only solution is to restart Tomcat. I don't know if the problem is related to Tomcat or to the JVM (Sun)

Re: Tomcat High CPU consommation

2009-07-29 Thread Leon Rosenberg
Hello Benjamin, This sounds like an infinite loop - a bug in your application. This can happen if you don't use synchronization properly, for example write and read to/from Hashmap without synchronization from 2 parallel threads. When you detect this behaviour again, create a full thread dump by

RE: Tomcat High CPU consommation

2009-07-29 Thread B.Henriet
Thank you Leon, I will try kill -QUIT next time the problem will happen. But the problem occurred with two applications with Tomcat 5.0.28 and with Tomcat 5.5 . Regards, Benjamin -Original Message- From: Leon Rosenberg [mailto:rosenberg.l...@googlemail.com] Sent: mercredi 29 juillet

Re: Multiple applications

2009-07-29 Thread Peter Flynn
Hassan Schroeder wrote: On Tue, Jun 23, 2009 at 7:37 AM, Peter Flynn pfl...@ucc.ie wrote: I've been using Tomcat5 with Apache2 under RH5 to run Cocoon, but I now need to add Lucene and eXist. Is it possible to run multiple applications like this on the same machine using the same Tomcat server?

Re: Tomcat High CPU consommation

2009-07-29 Thread Leon Rosenberg
On Wed, Jul 29, 2009 at 12:30 PM, b.henr...@pepperone.be wrote: Thank you Leon, I will try kill -QUIT next time the problem will happen. But the problem occurred with two applications with Tomcat 5.0.28 and with Tomcat 5.5 . Well, if its a but in your application or one of the libs in your

Jasper compiler throws ConcurrentModificationException

2009-07-29 Thread Bram de Kruijff
Hi all, I am seeing a ConcurrentModificationException in the jasper compiler every now and then (v 6.0.18). Can not reproduce it on the spot (as it is probably a concurrency issue), but it always seems to occur when dispatching from my servlet to a jsp file. Code: RequestDispatcher

tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
hello there, I just wonder if there is an option to configure apache to serve as document root /tomcat/webapps/myapp I have in apache DocumentRoot /tomcat/webapps/myapp Directory /tomcat/webapps/myapp Options FollowSymlinks DirectoryIndex index.jsp AllowOverride None Allow from

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: hello there, I just wonder if there is an option to configure apache to serve as document root /tomcat/webapps/myapp Unless you are very careful (and you haven't been - /WEB-INF/ /META-INF/ are wide open), that is a really bad idea from a security point of view. It is

Re: Jasper compiler throws ConcurrentModificationException

2009-07-29 Thread Mark Thomas
Bram de Kruijff wrote: Hi all, I am seeing a ConcurrentModificationException in the jasper compiler every now and then (v 6.0.18). Can not reproduce it on the spot (as it is probably a concurrency issue), but it always seems to occur when dispatching from my servlet to a jsp file. Test

Weird Intermittent NoClassDefFound

2009-07-29 Thread Chris Masters
Hi All, I'm running tomcat apache-tomcat-6.0.18 with a single application that has heavy spring and hibernate usage. One of the deployments mainly deals with batch processing from Quartz. After a couple days worth of processing I suddenly get NoClassDefFound errors (usually from some random

Re: Weird Intermittent NoClassDefFound

2009-07-29 Thread Pierre Goupil
Hello, I've never encountered such a situation myself, but it may be because of a duplicate jar in your classpath. As you may know, looking in WEB-INF/lib should not be enough. Maybe you should have a look at this, in order to know where to look :

Re: Multiple applications

2009-07-29 Thread André Warnier
Peter Flynn wrote: Hassan Schroeder wrote: On Tue, Jun 23, 2009 at 7:37 AM, Peter Flynn pfl...@ucc.ie wrote: I've been using Tomcat5 with Apache2 under RH5 to run Cocoon, but I now need to add Lucene and eXist. Is it possible to run multiple applications like this on the same machine using the

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
I wonder then if I can use in server.xml Context path= docBase=/tomcat/webapps/myapp/ To change the default application serving when someone requests myserver.com:8080 And then in apache to use DocumentRoot /tomcat/webapps/myapp Directory /tomcat/webapps/myapp Options FollowSymlinks

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: I wonder then if I can use in server.xml Context path= docBase=/tomcat/webapps/myapp/ To change the default application serving when someone requests myserver.com:8080 No. That will result in double deployment. Just rename webapps/myapp to webapps/ROOT And then in

RE: Weird Intermittent NoClassDefFound

2009-07-29 Thread Martin Gainty
could be the class location mechanism is broken find your class in your classloader..you could use Spring Framework's ClassLoaderUtils http://static.springsource.org/spring/docs/1.2.x/api/org/springframework/util/ClassLoaderUtils.htm org.springframework.util.ClassLoaderUtils(Class.forName(Your

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
Mark, what do you mean by separation of httpd and Tomcat Do you mean that httpd should redirect all requests to tomcat and not serve static files? Or that httpd should have alias /myapp and still serve static files for it. Or something different? Mark Thomas wrote: Nikolay Diulgerov

Re: tomcat and apache document root

2009-07-29 Thread Nikolay Diulgerov
About the double deployment ... you seems to be right but if I dont want to rename the app to ROOT can I move it to for example /myapp and then to have Context path= docBase=/myapp/ And second ... is there an option to change so not /tomcat/webapps/ROOT is the default but /tomcat/webapps/myapp

Re: Access to home page

2009-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 7/29/2009 12:49 AM, Mohit Anchlia wrote: How do I setup authentication? You sure do ask a lot of questions on the list without reading anything in advance. If you've read all the responses to all of the stupid questions you've asked over

IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
I am using Tomcat6.0.18 on RHEL5. I would like to set up IP-based virtual hosting using Tomcat alone ( as opposed to using Apache front-end). The documentation (http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html) as well as examples of it seem to illustrate the use of name-based

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: Mark, what do you mean by separation of httpd and Tomcat I mean that my own view is that httpd and Tomcat should not be serving content from the same directory structure. That way only Tomcat can possibly serve the files Tomcat is meant to serve and only httpd can

Re: tomcat and apache document root

2009-07-29 Thread Mark Thomas
Nikolay Diulgerov wrote: About the double deployment ... you seems to be right Odd that... but if I dont want to rename the app to ROOT can I move it to for example /myapp and then to have Context path= docBase=/myapp/ Yes. If the docBase is outside of the Host's appBase then you can do

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Mark Thomas
uma...@comcast.net wrote: I am using Tomcat6.0.18 on RHEL5. I would like to set up IP-based virtual hosting using Tomcat alone ( as opposed to using Apache front-end). The documentation (http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html) as well as examples of it seem

Re: Tomcat High CPU consommation

2009-07-29 Thread Juha Laiho
b.henr...@pepperone.be wrote: We have sometimes Tomcat (5.x) who consume all the CPU (or 50 %) of the CPU constantly in our productions servers (Linux or Windows). Adding to the thread dump mentioned by Leon, on Linux you can run ps -fLp tomcat_pid to see CPU time usage per thread. Running this

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Uma, On 7/29/2009 3:41 PM, uma...@comcast.net wrote: The documentation (http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html) as well as examples of it seem to illustrate the use of name-based virtual hosting: Engine

RE: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Jeffrey Janner
Well, Chris is almost correct here. But Connectors are nested as the Service level, not at the Engine level. The engine doc he refers you to even specifies this at the top of the page. Here is the way to do it correctly: Service name='Service1 Connector address=127.0.0.9 port=80 [options] /

RE: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
Thanks much for the clarification.In this case, how do I nominate the default virtual host? Is there something called default connector, such as that which may be needed if a request arrives into an unconfigured loopback address (say, 127.0.0.200)? My second issue is perhaps more serious: is

Re: Weird Intermittent NoClassDefFound

2009-07-29 Thread Chris Masters
Thanks for the quick reply Pierre - I've been reading up since, checked and my installation is OK. However, I think I may have found the problem. Sometimes a class loader will throw a NoClassDefFound when a static block throws an Exception. I think the hibernate and jgroup classes in question

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread André Warnier
uma...@comcast.net wrote: Thanks much for the clarification.In this case, how do I nominate the default virtual host? Is there something called default connector, such as that which may be needed if a request arrives into an unconfigured loopback address (say, 127.0.0.200)? Are you sure you

Re: java.util.logger

2009-07-29 Thread Filip Hanik - Dev Lists
On 07/28/2009 04:42 AM, Geofrey Rainey wrote: auth.DatasourceLoginModule.handlers = 1lm.org.apache.juli.FileHandler add auth.DatasourceLoginModule.level = FINEST - To unsubscribe, e-mail:

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
Mark, If I wanted to use the same SSL certificate for all virtual hosts does it follow that a) I cannot use name based vHosts (because Tomcat SSL connector uses the Host: entry in the request as the common name) and must use IP-based vHosts. b) or define name-based vHosts on

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread uma_rk
All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the server. Hence I have the mapping 127.0.0.9 - vhost1 127.0.0.10 - vhost 2 Let's say that a request arrives at address

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread André Warnier
uma...@comcast.net wrote: All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the server. Hence I have the mapping 127.0.0.9 - vhost1 127.0.0.10 - vhost 2 Let's say that a

RE: java.util.logger

2009-07-29 Thread Geofrey Rainey
Excellent! Thank you for that little nugget, I've been more than frustrated wondering why it wasn't logging properly. -Original Message- From: Filip Hanik - Dev Lists [mailto:devli...@hanik.com] Sent: Thursday, 30 July 2009 10:00 a.m. To: Tomcat Users List Subject: Re: java.util.logger

Re: IP-based virtual hosting with Tomcat(6)

2009-07-29 Thread Bill Barker
uma...@comcast.net wrote in message news:2139500381.6699651248905929000.javamail.r...@sz0016a.emeryville.ca.mail.comcast.net... All the vHosts are to be situated on the same server. The server may be addressed using any loopback address or any non-loopback addressed configured on the NICs of the