Re: check number of http connection in tomcat

2010-03-03 Thread André Warnier
chuikingman wrote: It is tomcat-3.3.2 in red hat linux AS4 , kernel 2.6.9 Can you take exmaple how to use manager webapp Please advice Tomcat 3.3.2 is so old that most people on this list may not even remember if there existed a manager application in it, never mind how to get

Re: RE: check number of http connection in tomcat

2010-03-03 Thread chuikingman
I try to use tomcat manager . There is account role admin in the linux dir But when I access http://XXXx:8080/admin/index.html I input the user name tomcatadmin and passwordtomcat . It is failed and show not authorized. I paste the /conf/users/tomcat-users.xml file below tomcat-users role

Re: jvm exits without trace

2010-03-03 Thread Taylan Develioglu
Downgrading to 1.6.0_16 did not help. I'm replacing the apr connector with http now. On Wed, 2010-02-24 at 14:52 +0100, Carl wrote: Taylan, The failures we've seen are in anywhere between 8 hours to a week of runtime. The timing of the failures seems similar. We have also had

Deploy war

2010-03-03 Thread Kaushal Shriyan
Hi, At the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ? Thanks, Kaushal - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: check number of http connection in tomcat

2010-03-03 Thread André Warnier
chuikingman wrote: I try to use tomcat manager . There is account role admin in the linux dir But when I access http://XXXx:8080/admin/index.html I input the user name tomcatadmin and passwordtomcat . It is failed and show not authorized. I paste the /conf/users/tomcat-users.xml file below

Re: Deploy war

2010-03-03 Thread André Warnier
Kaushal Shriyan wrote: Hi, At the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ? http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html - To

Re: Access to Tomcat's MBeans

2010-03-03 Thread Pid
On 03/03/2010 06:32, Caldarale, Charles R wrote: From: Cummins College [mailto:cummins.grou...@gmail.com] Subject: Access to Tomcat's MBeans Could someone please help us how to access Tomcat's Mbeans using Java code. This is not a direct answer, but you could download the source for Lambda

Re: jvm exits without trace

2010-03-03 Thread Pid
On 03/03/2010 09:11, Taylan Develioglu wrote: Downgrading to 1.6.0_16 did not help. I'm replacing the apr connector with http now. As Chuck mentioned in the other thread, significant changes occurred at 1.6.10, so trying the release before (1.6.7) might be necessary to establish a better

Re: Deploy war

2010-03-03 Thread Pid
On 03/03/2010 09:52, André Warnier wrote: Kaushal Shriyan wrote: Hi, At the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ? http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html At the very least you could upload

Re: Deploy war

2010-03-03 Thread André Warnier
Pid wrote: On 03/03/2010 09:52, André Warnier wrote: Kaushal Shriyan wrote: Hi, At the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ? http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html At the very least you

Fw: java.util.logging - help needed with configuration and problem determination

2010-03-03 Thread Stuart Grace
I mistakenly stated this worked on my PC. I think the problem is happening on my workstation and is not related to jsvc. Stuart Grace/Fishkill/IBM 03/03/2010 12:21 AM To users@tomcat.apache.org cc Subject java.util.logging - help needed with configuration and problem determination

Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
O/s Windows Vista jdk1.5.0_22 TOMCAT 5.5.28 My problem is that Tomcat that I have installed as a server in Windows only create empty (0 Kb) Logs Files. I have searched in all system, in windows events logs, and of course in tomcat/logs/ but there is nothing!! Someone knows why?? I have every

RE: Curious to know if the following is permitted

2010-03-03 Thread Karthik Nanjangude
Hi just use whatever the webapps inside I do not follow-up My requirements were to expose the war to Outer world via http and also use / provide credential access for the same application's Business layer from outside the war file via standalone Client via JNDI via RMI-IIOP This activity is

Re: Tomcat dies suddenly

2010-03-03 Thread Carl
Chuck, Thanks, I will give it a try after I complete the two experiments currently underway (the IBM JVM and running with strace from the command line.) Tried bringing the server running the IBM JVM into production this morning (tested it yesterday with different browsers... can't use IE 6

getServerName returns 'localhost'

2010-03-03 Thread vgud
Gentlemen, I have the application which could be accessed from different domain addresses and I need to know from what domain request was sent. I try to get following from request: getRemoteHost: 127.0.0.1 getServerName: localhost I use tomcat 5.5 and I suppose i should configure something to

Re: getServerName returns 'localhost'

2010-03-03 Thread André Warnier
vgud wrote: Gentlemen, I have the application which could be accessed from different domain addresses and I need to know from what domain request was sent. I try to get following from request: getRemoteHost: 127.0.0.1 getServerName: localhost I use tomcat 5.5 and I suppose i should configure

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Joseph Morgan
These may not be as empty as they appear. For example. Startup Tomcat and, once up, open the catalina log file... Windows may not be reporting their actual size. However, shutdown Tomcat and you will usually see the size update. -Original Message- From: Miriam esteve

Re: getServerName returns 'localhost'

2010-03-03 Thread vgud
Users use tomcat directly. My server responds to different domain names, and I want to know which one users use. I try to get domain name by request.getServerName() but instead of domainName.com I get 'localhost'. awarnier wrote: vgud wrote: Gentlemen, I have the application which could

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
The log size are 0 kb because are empty, I start, stop and all can I do, and the logs are empty allways. 2010/3/3 Joseph Morgan joseph.mor...@ignitesales.com These may not be as empty as they appear. For example. Startup Tomcat and, once up, open the catalina log file... Windows may not be

RE: Tomcat threads

2010-03-03 Thread Joseph Morgan
scalable also seems to be a relative term here, and there are well documented strategies for scalability. So, the question is, are you just looking for strategies for scalability or do you have a real problem with load? -Original Message- From: Bharath Vasudevan

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Joseph Morgan
What is your logging level set to? -Original Message- From: Miriam esteve [mailto:miesvesa...@gmail.com] Sent: Wednesday, March 03, 2010 7:20 AM To: Tomcat Users List Subject: Re: Tomcat generate empty 0 kb logs The log size are 0 kb because are empty, I start, stop and all can I do,

RE: check number of http connection in tomcat

2010-03-03 Thread Joseph Morgan
and that any people here who have actually used it are probably over 50 years old. And you know that after 35, it is downhill all the way : you start forgetting things and so on. Hey... I resemble that remark! They always say that the 2nd thing to go is memory. I don't remember what

Re: getServerName returns 'localhost'

2010-03-03 Thread André Warnier
vgud wrote: Users use tomcat directly. My server responds to different domain names, and I want to know which one users use. I try to get domain name by request.getServerName() but instead of domainName.com I get 'localhost'. Look up the java doc for HttpRequest. You should probably use

Re: getServerName returns 'localhost'

2010-03-03 Thread André Warnier
André Warnier wrote: vgud wrote: Users use tomcat directly. My server responds to different domain names, and I want to know which one users use. I try to get domain name by request.getServerName() but instead of domainName.com I get 'localhost'. Look up the java doc for HttpRequest. You

Re: getServerName returns 'localhost'

2010-03-03 Thread Ronald Klop
Did you do something like this in server.xml? Engine defaultHost=localhost Host name=localhost / /Engine And your client goes to www.example.com, but you getServerName() returns localhost in stead of www.example.com? Ronald. Op woensdag, 3 maart 2010 14:19 schreef vgud

Problem setting keyAlias for https connector using tomcat 6.0 API's

2010-03-03 Thread Bhuvanesh Pattanashetti
Hello All, I m using tomcat connectorhttp://tomcat.apache.org/tomcat-6.0-doc/api/index.htmlAPI's to establish a connector (on some port both http https) at run time. I have no issues with the Http as of now. But Https, facing one issue. The connector specified on port is getting

Re: getServerName returns 'localhost'

2010-03-03 Thread Peter Crowther
On 3 March 2010 13:47, André Warnier a...@ice-sa.com wrote: André Warnier wrote: vgud wrote: My server responds to different domain names, and I want to know which one users use. [...] More precisely : getRemoteAddr public java.lang.String getRemoteAddr()    Returns the Internet

RE: check number of http connection in tomcat

2010-03-03 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: check number of http connection in tomcat 1) the correct link is probably : http://XXXx:8080/manager That will get you a 404 (at least on non-stone-age Tomcats). The actual manager URL is: http://XXXx:8080/manager/html - Chuck

Re: getServerName returns 'localhost'

2010-03-03 Thread vgud
Exactly. So, could it be configured somehow to make me able get correct domain? Ronald Klop wrote: Did you do something like this in server.xml? Engine defaultHost=localhost Host name=localhost / /Engine And your client goes to www.example.com, but you getServerName() returns

Re: getServerName returns 'localhost'

2010-03-03 Thread André Warnier
Peter Crowther wrote: On 3 March 2010 13:47, André Warnier a...@ice-sa.com wrote: André Warnier wrote: vgud wrote: My server responds to different domain names, and I want to know which one users use. [...] More precisely : getRemoteAddr public java.lang.String getRemoteAddr() Returns

RE: getServerName returns 'localhost'

2010-03-03 Thread Caldarale, Charles R
From: vgud [mailto:ivan.gudi...@yahoo.com] Subject: Re: getServerName returns 'localhost' So, could it be configured somehow to make me able get correct domain? Only if you added all possible domain names and variations thereof that get to that system's IP address(es). As Peter suggests,

Re: getServerName returns 'localhost'

2010-03-03 Thread André Warnier
vgud wrote: Exactly. So, could it be configured somehow to make me able get correct domain? Ronald Klop wrote: Did you do something like this in server.xml? Engine defaultHost=localhost Host name=localhost / /Engine Maybe try this : Engine defaultHost=localhost Host name=localhost

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
my level set is Error. Redirect stdout and stderror AUTO and other question that may be help is that I can start only whit: *start tomcat5*, because startup.bat open Tomcat console but close it inmediatelly... (I obviously I can't see the log!!) 2010/3/3 Joseph Morgan

Re: getServerName returns 'localhost'

2010-03-03 Thread Konstantin Kolinko
1. What, exactly, version of 5.5.x is used. 2. Is Tomcat running standalone, or is behind Apache HTTPD, IIS or other web server, or a load balancer 3. What connectors are configured in server.xml? What connectors (protocols) are mentioned in catalina.log at startup time. E.g.: 03.02.2010 12:10:01

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Joseph Morgan
So... can you get tomcat going at all, or is it just that the logs are always empty? -Original Message- From: Miriam esteve [mailto:miesvesa...@gmail.com] Sent: Wednesday, March 03, 2010 8:38 AM To: Tomcat Users List Subject: Re: Tomcat generate empty 0 kb logs my level set is Error.

RE: getServerName returns 'localhost'

2010-03-03 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: getServerName returns 'localhost' public java.lang.String getServerName() Returns the host name of the server to which the request was sent. It is the value of the part before : in the Host header value, if any, or the resolved

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread André Warnier
Miriam esteve wrote: my level set is Error. Redirect stdout and stderror AUTO and other question that may be help is that I can start only whit: *start tomcat5*, because startup.bat open Tomcat console but close it inmediatelly... (I obviously I can't see the log!!) In that same command

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Caldarale, Charles R
From: Miriam esteve [mailto:miesvesa...@gmail.com] Subject: Re: Tomcat generate empty 0 kb logs my level set is Error. So then normal operation will produce ... 0 bytes. Try leaving it at the default value of INFO and see what you get. - Chuck THIS COMMUNICATION MAY CONTAIN

RE: getServerName returns 'localhost'

2010-03-03 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: getServerName returns 'localhost' The code shows that the HOST header is being used by getServerName(). Testing with the RequestDumperFilter enabled in examples/WEB- INF/web.xml shows that it works as documented;

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
André, I'm try with catalina.bat run Using CATALINA_BASE: E:\opt\tomcat Using CATALINA_HOME: E:\opt\tomcat Using CATALINA_TMPDIR: E:\opt\tomcat\temp Using JRE_HOME:E:\opt\java\jdk1.5.0_22 Using CLASSPATH: E:\opt\tomcat\bin\bootstrap.jar Error occurred during initialization of

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Caldarale, Charles R
From: Miriam esteve [mailto:miesvesa...@gmail.com] Subject: Re: Tomcat generate empty 0 kb logs Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. The above would explain why your logs are empty - Tomcat

RE: DB connection error -Tomcat 6 config

2010-03-03 Thread Propes, Barry L
Appreciate it, Mark. I'll rebuild the Tomcat collection with that jar and see if it will alleviate this issue. -Original Message- From: Mark Shifman [mailto:mark.shif...@yale.edu] Sent: Tuesday, March 02, 2010 7:08 PM To: Tomcat Users List Subject: Re: DB connection error -Tomcat 6

RE: DB connection error -Tomcat 6 config

2010-03-03 Thread Propes, Barry L
Wow - thanks, Bob. Yeah, that's exactly what we have here. I have narrowed down the problem or error simply to the naming context. But why it worked before on 4.1.31 and won't now is a slight mystery. Maybe in the older version something with server.xml overrode other instances where now

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
How can the tomcat start with: start tomcat5, and I can access to my web application and with startup.sh don't start??? Anyway, I'm on Windows Vista and I have two setting of JAVA_OPTS, one in the enviorement variables: -server -XX:+UseParallelGC -Xmx876m -XX:MaxPermSize=2160m

Re: Deploy war

2010-03-03 Thread Kaushal Shriyan
On Wed, Mar 3, 2010 at 4:50 PM, André Warnier a...@ice-sa.com wrote: Pid wrote: On 03/03/2010 09:52, André Warnier wrote: Kaushal Shriyan wrote: Hi, At the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ?

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
I change -XX:MaxPermSize=2160m to 256m on JAVA_OPTS of enviorement variables, and now, catalina.bat run works, and start tomcat, but, the log is even empty. 2010/3/3 Miriam esteve miesvesa...@gmail.com How can the tomcat start with: start tomcat5, and I can access to my web application and

Re: Deploy war

2010-03-03 Thread Gurkan Erdogdu
I wonder whether you have looked at http://tomcat.apache.org/tomcat-6.0-doc/index.html or not 2010/3/3 Kaushal Shriyan kaushalshri...@gmail.com On Wed, Mar 3, 2010 at 4:50 PM, André Warnier a...@ice-sa.com wrote: Pid wrote: On 03/03/2010 09:52, André Warnier wrote: Kaushal Shriyan

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Caldarale, Charles R
From: Miriam esteve [mailto:miesvesa...@gmail.com] Subject: Re: Tomcat generate empty 0 kb logs How can the tomcat start with: start tomcat5, and I can access to my web application and with startup.sh don't start??? The Windows start command initiates a service; the .bat scripts run Tomcat

Re: Curious to know if the following is permitted

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Karthik, On 3/3/2010 6:56 AM, Karthik Nanjangude wrote: Hi just use whatever the webapps inside I do not follow-up My requirements were to expose the war to Outer world via http and also use / provide credential access for the same

RE: getServerName returns 'localhost'

2010-03-03 Thread vgud
I tried to log all request headers and notice three interesting headers: x-forwarded-for : 10.0.0.24 x-forwarded-host : myRealDomain.com x-forwarded-server : my.server.ip.address So, tomcat(or someone else) does some forwarding and attach those headers on request? If so where and how it is

Re: Access Log /Filter/?

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xie, On 3/2/2010 6:20 PM, Xie Xiaodong wrote: Second, you are absolutely right about the log.info(). I first wrote like this for testing and forgot to get it back to debug level. Don't forget that calling log.debug() with a bunch of string

Re: Access Log /Filter/?

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jason, On 3/2/2010 7:21 PM, Jason Brittain wrote: Why does the request have to be an HTTP request in order to have the access log run? That does seem to be a bug. Note that this is not actually a part of the AccessLogValve, it's just part of

Re: getServerName returns 'localhost'

2010-03-03 Thread Cyrille Le Clerc
Hello Ivan, The headers x-forwarded-for, x-forwarded-host and x-forwarded-server are typically added by Apache Httpd mod_proxy (1). It seems that you use Apache Httpd mod_proxy in front of your Tomcat, both located on the same server (this is the reason why get localhost). Your solution may be

Re: Access Log /Filter/?

2010-03-03 Thread Xie Xiaodong
Hello, I think log.debug() method should first check current logging levels, or our code will have those if() {} template everywhere. I checked java.util.logging.Logger, and found this: public void log(Level level, String msg, Object param1) { if (level.intValue() levelValue || levelValue

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
Windows Vista* 32 bit* I just change the JAVA_OPTS and put both equal -Xms768m -Xmx768m -XX:PermSize=256m -XX:MaxPermSize=512m The level set to INFO. the catalina.bat run /startup.bat works, but logs not... I attach the logging.properties. 2010/3/3 Caldarale, Charles R

Tomcat+apache on name_based virtual hosts

2010-03-03 Thread chenll
Hi, I have a server which has only one IP and runs on Windows XP. And I have two domain names: a.university.com and b.university.com. I have built two websites for both of them on the Apache 2. Now I installed another web application which runs on Tomcat 6, and want to load the web

problems with welcome files

2010-03-03 Thread martin
Hi, i have installed apache http 2.2.14 and tomcat 6.0.24. I deployed railohttp://www.getrailo.org 3.1.2.001 final (cfml engine). I have to use Windows XP and i have administrative privileges. This is my httpd-vhost.conf: VirtualHost *:80 ServerName railo DirectoryIndex index.cfm index.html

Re: Tomcat+apache on name_based virtual hosts

2010-03-03 Thread Jordan Michaels
You can do this by creating new Host and Context entries in the server.xml file for each site. For example: Host name=a.university.com appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false Context path=

Re: Tomcat+apache on name_based virtual hosts

2010-03-03 Thread Pid
On 03/03/2010 17:01, chenll wrote: Hi, I have a server which has only one IP and runs on Windows XP. And I have two domain names: a.university.com and b.university.com. I have built two websites for both of them on the Apache 2. Now I installed another web application which runs on Tomcat 6,

Re: Tomcat threads

2010-03-03 Thread Bharath Vasudevan
Hi Charles, Let me explain the scenario. When tomcat gets a request, it does a socket send to some other process to handle the request and then respond. This would happen fast. But assuming 20k client requests come in at the same time, the server would try to allocate 20k threads and handle it.

RE: Tomcat generate empty 0 kb logs

2010-03-03 Thread Caldarale, Charles R
From: Miriam esteve [mailto:miesvesa...@gmail.com] Subject: Re: Tomcat generate empty 0 kb logs I attach the logging.properties. You can't - the list strips out attachments. Paste the contents of the file directly into your message to the list. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Tomcat threads

2010-03-03 Thread Mark Thomas
On 03/03/2010 17:21, Bharath Vasudevan wrote: Hi Charles, Let me explain the scenario. When tomcat gets a request, it does a socket send to some other process to handle the request and then respond. This would happen fast. But assuming 20k client requests come in at the same time, the

Re: Access Log /Filter/?

2010-03-03 Thread Xie Xiaodong
Hello, Christopher, For log.debug() part, seems I misunderstood your meaning. Sorry about that, you are right. But I do not think it matters too much. :) On Wed, Mar 3, 2010 at 5:54 PM, Xie Xiaodong xxd82...@gmail.com wrote: Hello, I think log.debug() method should first check current

Re: Tomcat threads

2010-03-03 Thread Bharath Vasudevan
Thanks Bill. Comet is something that I can dig into :). On Tue, Mar 2, 2010 at 7:21 PM, Bill Barker billwbar...@verizon.net wrote: Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:99c8b2929b39c24493377ac7a121e21f96cb817...@usea-exch8.na.uis.unisys.com. .. From:

Re: Tomcat generate empty 0 kb logs

2010-03-03 Thread Miriam esteve
# Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the

Re: Tomcat threads

2010-03-03 Thread Bharath Vasudevan
That would be the last go. Trying to figure out if there is techniques to handle such scenarios. Looks like comet can asynchronously push data to the user. If this is going to be seamless to the client, it might as well look like a response for their request. On Wed, Mar 3, 2010 at 9:25 AM, Mark

RE: Tomcat threads

2010-03-03 Thread Caldarale, Charles R
From: Bharath Vasudevan [mailto:bharath@gmail.com] Subject: Re: Tomcat threads When tomcat gets a request, it does a socket send to some other process to handle the request and then respond. Tomcat doesn't do that - your webapp does. You have now introduced a previously unmentioned

RE: Tomcat threads

2010-03-03 Thread Caldarale, Charles R
From: Bharath Vasudevan [mailto:bharath@gmail.com] Subject: Re: Tomcat threads Looks like comet can asynchronously push data to the user. You do understand that there really is no such thing as push (at least in HTTP)? The client has to have a receive up, so you can't use just a plain

Re: Tomcat threads

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bharath, On 3/2/2010 7:42 PM, Bharath Vasudevan wrote: Why is it illlogical? Fast is a relative term. If the number of requests increases, the number of threads that can be handled by the system goes down . The context switches and the pain to

Re: Tomcat threads

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bharath, On 3/3/2010 12:21 PM, Bharath Vasudevan wrote: Let me explain the scenario. When tomcat gets a request, it does a socket send to some other process to handle the request and then respond. This would happen fast. But assuming 20k client

RE: problems with welcome files

2010-03-03 Thread Caldarale, Charles R
From: martin [mailto:mrt...@googlemail.com] Subject: problems with welcome files i have installed apache http 2.2.14 and tomcat 6.0.24. Step 1: Get httpd out of the game; test with Tomcat's HTTP Connector first. When that works, add httpd back in. I added this to tomcats server.xml:

RE: Tomcat+apache on name_based virtual hosts

2010-03-03 Thread Caldarale, Charles R
From: Jordan Michaels [mailto:jor...@viviotech.net] Subject: Re: Tomcat+apache on name_based virtual hosts You can do this by creating new Host and Context entries in the server.xml file for each site. Please don't suggest putting Context elements in server.xml; that's ancient, dismal

Re: Tomcat threads

2010-03-03 Thread Bharath Vasudevan
Hmmm... No, the server will allocate maxThreads request handlers; the other requests would sit in the TCP stack's queue (not in the JVM), up to the configured acceptCount value - which you can set as high as your OS allows. I was assuming that the tomcat main thread is going to pick it up from

RE: Access Log /Filter/?

2010-03-03 Thread Caldarale, Charles R
From: Xie Xiaodong [mailto:xxd82...@gmail.com] Subject: Re: Access Log /Filter/? http://www.javalobby.org/java/forums/t88518.html I think you're cherry-picking the data. The most useful comment about StringBuilder in that thread was this: Re: StringBuffer Thus, the performance of the two

Re: Access Log /Filter/?

2010-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xie, On 3/3/2010 11:54 AM, Xie Xiaodong wrote: I think log.debug() method should first check current logging levels, or our code will have those if() {} template everywhere. [snip] For log.debug() part, seems I misunderstood your meaning. Sorry

Re: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-03-03 Thread iainmac
Thanks for that but the files you mention are not there. I went to commons/daemon/binaries/1.0.2/windows and downloaded commons-daemon-1.0.2-bin-windows.zip In that zip there is a prunsrv.exe in the base directory and the same in the amd directory. i.e. not procrun.exe and procrunw.exe.

RE: Tomcat 6.0.12 in windows vista 64 bits does not start

2010-03-03 Thread Caldarale, Charles R
From: iainmac [mailto:iain_macau...@hotmail.com] Subject: Re: Tomcat 6.0.12 in windows vista 64 bits does not start Thanks for that but the files you mention are not there. They are, just not quite as you expected. In that zip there is a prunsrv.exe in the base directory and the same in

Re: Tomcat threads

2010-03-03 Thread Peter Crowther
On 3 March 2010 18:24, Bharath Vasudevan bharath@gmail.com wrote: Hmmm... No, the server will allocate maxThreads request handlers; the other requests would sit in the TCP stack's queue (not in the JVM), up to the configured acceptCount value - which you can set as high as your OS

RE: Tomcat+apache on name_based virtual hosts

2010-03-03 Thread chenll
Note: both a.university.com and b.university.com are built on Apache instead of Tomcat, so they are not in the directory of webapps. just a.university.com/webap is pointed to the web application which is built on Tomcat. From: chuck.caldar...@unisys.com To: users@tomcat.apache.org Date:

Re: check number of http connection in tomcat

2010-03-03 Thread Bill Barker
Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:99c8b2929b39c24493377ac7a121e21f96cb875...@usea-exch8.na.uis.unisys.com... From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: check number of http connection in tomcat 1) the correct link is probably :

Re: Access to Tomcat's MBeans

2010-03-03 Thread Bill Barker
Pid p...@pidster.com wrote in message news:4b8e40b8.9070...@pidster.com... On 03/03/2010 06:32, Caldarale, Charles R wrote: From: Cummins College [mailto:cummins.grou...@gmail.com] Subject: Access to Tomcat's MBeans Could someone please help us how to access Tomcat's Mbeans using Java code.

Tomcat Resources: Configuring external jndi repository's resource in tomcat

2010-03-03 Thread CHITHS
We are moving from Sun appserver to tomcat 6.X server. In Sun application server we had the ability to register an object configured in an external jndi resource repositories in the local appserver jndi using external-jndi-resource elements in the application server config file (domain.xml).

Re: Apache 2.2.3(mod_proxy_ajp) - Tomcat 6.0.13 Loadbalancing - error logs in apache

2010-03-03 Thread jkv
Thanks for the reply Ster, But we don't have the privilege to upgrade Apache, because we are using Red Had Enterprise Linux and we have to go with the default httpd installation in it, i.e., 2.2.3, but is there a possibility for us to use mod_jk instead of mod_proxy for load balancing? I read

Re: check number of http connection in tomcat

2010-03-03 Thread André Warnier
Bill Barker wrote: Caldarale, Charles R chuck.caldar...@unisys.com wrote in message news:99c8b2929b39c24493377ac7a121e21f96cb875...@usea-exch8.na.uis.unisys.com... From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: check number of http connection in tomcat 1) the correct link is

Re: Access to Tomcat's MBeans

2010-03-03 Thread André Warnier
Bill Barker wrote: Otherwise, startup Tomcat once with remote JMX enabled, and browse with the remote client to find the ObjectNames that you want, and just use normal JMX calls. And try this : http://code.google.com/p/jmxsh/

Re: Tomcat threads

2010-03-03 Thread Bharath Vasudevan
Thanks Folks. On Wed, Mar 3, 2010 at 1:03 PM, Peter Crowther peter.crowt...@melandra.comwrote: On 3 March 2010 18:24, Bharath Vasudevan bharath@gmail.com wrote: Hmmm... No, the server will allocate maxThreads request handlers; the other requests would sit in the TCP stack's queue