Re: Change thread name of HTTP worker threads at Runtime

2009-05-15 Thread Rainer Frey (Inxmail GmbH)
On Wednesday 06 May 2009 12:42:09 Ronald Klop wrote: Op woensdag, 6 mei 2009 11:58 schreef Rainer Frey (Inxmail GmbH) : Hi, I occassionally have to analyse thread dumps of tomcat servers which serve up to 25 instances of the same (quite complex) web service application. All custom

Re: .html pages as .jsp pages

2009-05-15 Thread Pid
Dola Woolfe wrote: Exactly right. I produce my static content programmatically. Many pages are too complex to be generated otherwise. Also, I get to write java not html. When I want to change a font, I do it in one place not 1000 places. [wince] Are we to assume that you're not able to

Re: file type being blocked by IE

2009-05-15 Thread André Warnier
Brandon Steward wrote: I found this work around. You can add this to the webapp's xml config. Valve className=org.apache.catalina.authenticator.FormAuthenticator disableProxyCaching=false / On the face of it, that doesn't seem to have *anything* to do with the issue you mentioned.

TCP Window Size

2009-05-15 Thread Phinux Zhang
Hello Does anybody know how to change TCP window size in tomcat configuration? It's strange that we can get about 200 KB/s bandwidth when downloading from FTP service, but it's just about 45 KB/s bandwidth from tomcat service located on the same server. I doubt it's a problem a TCP window size,

Re: TCP Window Size

2009-05-15 Thread André Warnier
Phinux Zhang wrote: Hello Does anybody know how to change TCP window size in tomcat configuration? It's strange that we can get about 200 KB/s bandwidth when downloading from FTP service, but it's just about 45 KB/s bandwidth from tomcat service located on the same server. I doubt it's a

Re: How to get thread dump on Tomcat 6 (windows)

2009-05-15 Thread madhu sudhan bandari
Thanks Christopher..i'll do that. On Fri, May 15, 2009 at 12:29 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Madhu, On 5/14/2009 4:02 AM, madhu sudhan bandari wrote: I am running my applications on Tomcat 6.0 at windows 2000

Using IP and Auth Constraints together

2009-05-15 Thread Shashank Rachamalla
Hi! Is there any way to configure security-constraint for a webapp to disable authentication and authorization for a particular IP address and enable it for all other IP addresses. Thanks in advance. Please do not print this email unless it is absolutely necessary. The information contained

Re: .html pages as .jsp pages

2009-05-15 Thread Nikola Milutinovic
Well, it should be relatively simple. Add the following to your web.xml: servlet-mapping servlet-namejsp/servlet-name url-pattern*.html/url-pattern /servlet-mapping Nix. From: Dola Woolfe dolac...@yahoo.com To: Tom Cat

Re: Using IP and Auth Constraints together

2009-05-15 Thread André Warnier
Shashank Rachamalla wrote: Hi! Is there any way to configure security-constraint for a webapp to disable authentication and authorization for a particular IP address and enable it for all other IP addresses. Probably not, since I doubt that this is foreseen by the Servlet Specification. But I

TC 5.5 with java -server mode in windows service

2009-05-15 Thread David kerber
How do I set the jvm to -server mode when running as a windows service? In tomcat5w.exe, if I put -server in the java options box, tomcat doesn't start. Do I just specify the full path to the \Program Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm box? That's what I have now, but

Re: Using IP and Auth Constraints together

2009-05-15 Thread Shashank Rachamalla
I am using JNDI Realm to authenticate with LDAP and after a little bit of exploration i found that a filter is always executed after a realm executes and hence filters will not solve my problem. Will check out Valves now. On Fri, 2009-05-15 at 13:36 +0200, André Warnier wrote: Shashank

RE: .html pages as .jsp pages

2009-05-15 Thread Karthik Nanjangude
Hi An Offline topic ... :{ Off topic? How do I set up Eclipse so that .html files are opened with the same editor as .jsp In Eclipse -- windows -- Preference.. - General -- Editors -- File Associations Map the *.html file to Assiociate JSP

RE: TC 5.5 with java -server mode in windows service

2009-05-15 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: TC 5.5 with java -server mode in windows service Do I just specify the full path to the \Program Files\Java\jdk1.5.0_17\jre\bin\server\jvm.dll in the jvm box? Yes, that's the proper way to do it. [2009-05-15 08:54:50] [info] Full

Re: Using IP and Auth Constraints together

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 5/15/2009 7:36 AM, André Warnier wrote: Shashank Rachamalla wrote: Hi! Is there any way to configure security-constraint for a webapp to disable authentication and authorization for a particular IP address and enable it for all other

Re: Change thread name of HTTP worker threads at Runtime

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 5/15/2009 2:37 AM, Rainer Frey (Inxmail GmbH) wrote: is the assumption that one request is processed by one thread (and never passed to another during processing) true for all connectors, including NIO? Are you asking if the request is

RE: TCP Window Size

2009-05-15 Thread Caldarale, Charles R
From: André Warnier [mailto:a...@ice-sa.com] Subject: Re: TCP Window Size FTP is probably full of tricks to manipulate the window size and packet size dynamically, in function of the link performance at any point in time. Tomcat being a much more generic piece of software, I doubt it

RE: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity

2009-05-15 Thread Caldarale, Charles R
From: Pantvaidya, Vishwajit [mailto:vpant...@selectica.com] Subject: RE: Running out of tomcat threads - why many threads in RUNNABLEstage even with no activity Since I did not get any responses to this, just wanted to ask - did I post this to the wrong list and should I be posting this to

Re: tomcat no longer writing to log files

2009-05-15 Thread Steve Ochani
Send reply to: Tomcat Users List users@tomcat.apache.org From: Michael A. Repucci mich...@repucci.org Date sent: Thu, 14 May 2009 17:42:16 -0400 Subject:Re: tomcat no longer writing to log files To: Tomcat Users List users@tomcat.apache.org Seems like a bit of animosity

Re: Confused by mpm/mod_jk

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, On 5/11/2009 8:09 PM, Bill Davidson wrote: Rainer Jung wrote: Are the Apaches connected to each Tomcat, or only to their Tomcat? Only to their own Tomcat. I even do the connection on the loopback for security and (I hope) performance.

Re: tomcat no longer writing to log files

2009-05-15 Thread Michael A. Repucci
On Fri, May 15, 2009 at 10:20 AM, Steve Ochani ocha...@ncc.edu wrote: Really? Your cv/resume indicates otherwise. Sure your phd is in neuroscience but your current employment is listed as Scientific Programmer and so was your last employment. Considering that you are Proficient in things

Re: tomcat no longer writing to log files

2009-05-15 Thread David Smith
Caldarale, Charles R wrote: From: michael.repu...@gmail.com [mailto:michael.repu...@gmail.com] Subject: Re: tomcat no longer writing to log files Then when I reinstalled, Tomcat didn't get reinstalled under /etc nor /etc/init.d, and it didn't get started automatically as it had before.

Re: Running out of tomcat threads - why many threads in RUNNABLE stage even with no activity

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Vishwajit, On 5/13/2009 5:28 PM, Pantvaidya, Vishwajit wrote: My setup is tomcat 5.5.17 + mod_jk 1.2.15 + httpd 2.2.2. I am using AJP1.3. Old versions of everything. Consider upgrading? Every 2-3 days with no major load, tomcat throws the

Re: Change thread name of HTTP worker threads at Runtime

2009-05-15 Thread Rainer Frey (Inxmail GmbH)
On Friday 15 May 2009 16:07:11 Christopher Schultz wrote: Rainer, On 5/15/2009 2:37 AM, Rainer Frey (Inxmail GmbH) wrote: is the assumption that one request is processed by one thread (and never passed to another during processing) true for all connectors, including NIO? Are you asking

Re: What is the difference?

2009-05-15 Thread János Löbb
On May 14, 2009, at 4:12 PM, André Warnier wrote: I'm frustrated. For once there was a question which was right at my level, you guys all beat me to answer it. Well, just to make Your day, here is another one :) Who is the absolute thin ? Here is the answer encoded: Aki a hasaat

Re: tomcat no longer writing to log files

2009-05-15 Thread David Smith
Michael A. Repucci wrote: On Fri, May 15, 2009 at 10:20 AM, Steve Ochani ocha...@ncc.edu wrote: Really? Your cv/resume indicates otherwise. Sure your phd is in neuroscience but your current employment is listed as Scientific Programmer and so was your last employment. Considering that

Re: Difference between running bootstrap.jar and catalina.bat

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jan, On 5/15/2009 1:25 AM, Jan Horký wrote: I got the following error: 15.5.2009 7:10:16 com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized SEVERE: WSSERVLET11: failed to parse runtime descriptor:

RE: Change thread name of HTTP worker threads at Runtime

2009-05-15 Thread Caldarale, Charles R
From: Rainer Frey (Inxmail GmbH) [mailto:rainer.f...@inxmail.de] Subject: Re: Change thread name of HTTP worker threads at Runtime I just read this up. It says should ensure. How strong this is sepends on whether this has RFC SHOULD characteristics, or is merely a recommendation. It's not

Re: tomcat no longer writing to log files

2009-05-15 Thread Andre-John Mas
On 15-May-2009, at 10:37, Michael A. Repucci wrote: Also, tomcat does work out of the box. Incorrect administration of any system will stop it from working out of the box. Honestly, what I'm most frustrated about isn't Tomcat, per say, but the stuff written by my colleagues that should

RE: org.apache.jk.common.ChannelSocket processConnection WARNING: processCallbacks status 2 - RESOLVED

2009-05-15 Thread Robin Wilson
FYI, I've answered my own problem... First, the cause of this problem: When using AJP, this problem is caused by a request coming from the httpd (apache) server to tomcat, but the apache server is stopped from listening for the response from the tomcat server. Usually this is caused by a user

Re: Change thread name of HTTP worker threads at Runtime

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rainer, On 5/15/2009 10:47 AM, Rainer Frey (Inxmail GmbH) wrote: On Friday 15 May 2009 16:07:11 Christopher Schultz wrote: Not likely, since Java doesn't support continuations. The request handler thread should handle the request from start to

Re: tomcat no longer writing to log files

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael, On 5/14/2009 4:14 PM, Michael A. Repucci wrote: Yes. That changed nothing. Still no catalina.out, still no ourapp.log. Sorry for the barrage of questions, but the answers will help us figure out what's going on: Can you tell us how you

mod_jk: question regarding log-format

2009-05-15 Thread Gregor Schneider
hi guys, i'm wondering where - except from the source - i could find the information of what the log-format-parameters actually mean. example: JkLogStampFormat [%a %b %d %H:%M:%S %Y] that's the default format-string, however, in the docs

Re: Page not completing loading - ideas?

2009-05-15 Thread Andre-John Mas
On 13-May-2009, at 21:14, Caldarale, Charles R wrote: From: Andre-John Mas [mailto:andrejohn@gmail.com] Subject: Page not completing loading - ideas? Does anyone have any ideas of how to go about analysing the issue? I'd start with a Wireshark capture/trace on the client workstation

Re: Peformance on socket reads

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/14/2009 8:34 AM, David kerber wrote: len = req.getContentLength(); b = new byte[ len ]; Don't forget to check to see if getContentLength() returned zero. What is the content-type here? Is it application/x-www-form-urlencoded? Are

Re: mod_jk: question regarding log-format

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 5/15/2009 11:59 AM, Gregor Schneider wrote: however, in the docs (http://tomcat.apache.org/connectors-doc/reference/printer/apache.html) i can't find what %a and %b mean. Read more closely: The Tomcat Connector module date log

Re: Peformance on socket reads

2009-05-15 Thread David kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/14/2009 8:34 AM, David kerber wrote: len = req.getContentLength(); b = new byte[ len ]; Don't forget to check to see if getContentLength() returned zero. I do, it's just not in that code

Re: TC 5.5 with java -server mode in windows service

2009-05-15 Thread George Sexton
Are you running under 64 bit windows? I noticed that the 64 bit server DLLs were not installed. I noticed this because the registry entries the installer created still point to them. Look for Program Files\Java\[java version]\bin\server\jvm.dll David kerber wrote: How do I set the jvm to

MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-15 Thread Arijit Sarkar Job Gmail
All, This has been troubling me for some time now. and I don't have an answer to it. We all know that IIS and XP Pro have a 10 concurrent connection limit . If I am using Apache Tomcat on XP Pro, do I still have this limit on the connections? Any help will be greatly appreciated.

RE: TC 5.5 with java -server mode in windows service

2009-05-15 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: TC 5.5 with java -server mode in windows service I was just surprised the thread dump didn't say Server mode instead of Mixed mode. Note that it says Server VM; running the client version will say Client VM. The HotSpot JVM

Re: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-15 Thread David kerber
Arijit Sarkar Job Gmail wrote: All, This has been troubling me for some time now. and I don't have an answer to it. We all know that IIS and XP Pro have a 10 concurrent connection limit . If I am using Apache Tomcat on XP Pro, do I still have this limit on the connections? No, because

RE: Peformance on socket reads

2009-05-15 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Re: Peformance on socket reads What method would you suggest? Create the byte array long enough to handle any possible input and then read without specifying the length? No, keep allocating the byte array based on the content-length

Re: TC 5.5 with java -server mode in windows service

2009-05-15 Thread David kerber
Caldarale, Charles R wrote: From: David kerber [mailto:dcker...@verizon.net] Subject: Re: TC 5.5 with java -server mode in windows service I was just surprised the thread dump didn't say Server mode instead of Mixed mode. Note that it says Server VM; running the client version will say

Re: Peformance on socket reads

2009-05-15 Thread David kerber
David kerber wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/14/2009 8:34 AM, David kerber wrote: len = req.getContentLength(); b = new byte[ len ]; Don't forget to check to see if getContentLength() returned zero. I do, it's just

RE: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-15 Thread Arijit Sarkar Job Gmail
WOW!! That was fast.. So If I have an web application deployed on tomcat and windows XP pro, theoretically, unlimited users can connect to the application simultaneously? Tomcat or Windows XP does not place any limits to that? If that is true... it would be really pleasing to my ears...

Re: Confused by mpm/mod_jk

2009-05-15 Thread Bill Davidson
Rainer Jung wrote: IfModule mpm_worker_module StartServers 2 MaxClients 256 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 32 Usually MinSpaceThreads and MaxSpareThreads having a multiple of ThreadsPerChild makes it easier

Re: Performance on socket reads

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/15/2009 12:22 PM, David kerber wrote: But the code works; it just seems to be a little slow. Gotcha. How slow are we talking, here? I'm not sure whether the underlying InputStream, here, is buffering, but you could try: iStream = new

Re: Peformance on socket reads

2009-05-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/15/2009 2:28 PM, David kerber wrote: The content-type is application/binary. I might have used application/octet-stream, but it's really just semantics. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment:

Re: Performance on socket reads

2009-05-15 Thread David kerber
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 5/15/2009 12:22 PM, David kerber wrote: But the code works; it just seems to be a little slow. Gotcha. How slow are we talking, here? I'm not sure whether the underlying InputStream, here, is

Re: Confused by mpm/mod_jk

2009-05-15 Thread Bill Davidson
Christopher Schultz wrote: Yes, most TCP/IP stacks use 127.0.0.1 as a special-case that avoids most of the real stack and instead uses a kernel buffer as the data transfer mechanism. I just tried to benchmark my own system localhost versus a DNS name that resolves to an IP address handled on

Re: mod_jk: question regarding log-format

2009-05-15 Thread Rainer Jung
On 15.05.2009 18:18, Christopher Schultz wrote: Gregor, On 5/15/2009 11:59 AM, Gregor Schneider wrote: however, in the docs (http://tomcat.apache.org/connectors-doc/reference/printer/apache.html) i can't find what %a and %b mean. Read more closely: The Tomcat Connector module date

Re: j_security_check/j_username/j_password issue in Tomcat Version 6.0.18

2009-05-15 Thread Sid Sidney
You should check to see if you are able to get the parameters when the request(s) is send via a get vs. a post.    --- On Wed, 5/6/09, Sanjay Manchiganti ms4san...@yahoo.com wrote: From: Sanjay Manchiganti ms4san...@yahoo.com Subject: Re: j_security_check/j_username/j_password issue in Tomcat

Re: MAX Simultaneous connections with Tomcat on Windows XP Pro

2009-05-15 Thread David Kerber
Arijit Sarkar Job Gmail wrote: WOW!! That was fast.. So If I have an web application deployed on tomcat and windows XP pro, theoretically, unlimited users can connect to the application simultaneously? Tomcat or Windows XP does not place any limits to that? The only limits are resource

RE: .html pages as .jsp pages

2009-05-15 Thread Dola Woolfe
Hi, I did this but when I click on a .html file to open it, I'm still not getting syntax aware editing like I do with .jsp pages. It still think it's HTML. Anything else I should look at? Thanks --- On Fri, 5/15/09, Karthik Nanjangude karthik.nanjang...@xius-bcgi.com wrote: From: Karthik

trouble starting tomcat: error 0 on Windows 64bit

2009-05-15 Thread w...@serensoft.com
We're having a heck of a time getting tomcat running on windows server 2003 enterprise x64 -- it barely gets started, and instantly quits. We installed java from jdk-1_5_0_18-windows-amd64.exe which seems to be the only 64-bit version available? Our processor is intel, tho... Is there an