How to properly detect a client disconnect in servlet spec 3 (Tomcat 7)?

2011-08-24 Thread Oscar van den Bosch
I have tried writing to the Response OutputStream, because there is no proper disconnect callback. Unfortunately, this doesn't seem to work either. When the client is disconnected, writing and flushing the buffer did not throw an exception. I use the following code: private boolean

Re: Appropriate version of Java

2011-08-24 Thread André Warnier
Rafael Giovanni Florez Arango - EyS wrote: Should I install an Apache Tomcat 6.0.30 server, however I have the following question, what is the appropriate version of Java for this version of Tomcat? Thank in advance any opinions or experience with it. Go to the Tomcat website and click on

Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread Ana Maria Teodorescu
Dear Tomcat users and experts, I downloaded Netbeans 6.9.1 including Apache Tomcat on my Mac snow leopard. When I go to the page http://localhost:8080/ the message that I've setup correctly Tomcat appears. But, if I click on the following links: 1)Tomcat documentation (

Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread André Warnier
Ana Maria Teodorescu wrote: Dear Tomcat users and experts, I downloaded Netbeans 6.9.1 including Apache Tomcat on my Mac snow leopard. When I go to the page http://localhost:8080/ the message that I've setup correctly Tomcat appears. But, if I click on the following links: 1)Tomcat

Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread Pid
On 24/08/2011 09:44, André Warnier wrote: Ana Maria Teodorescu wrote: Dear Tomcat users and experts, I downloaded Netbeans 6.9.1 including Apache Tomcat on my Mac snow leopard. When I go to the page http://localhost:8080/ the message that I've setup correctly Tomcat appears. But, if I

Re: Conditional Branch from Servlet to URL

2011-08-24 Thread Pid
On 24/08/2011 03:46, Leo Donahue - PLANDEVX wrote: From: Donald Jolley [jolleyt...@gmail.com] Subject: Conditional Branch from Servlet to URL I'm not at all surprised about the request and response symbols as they appear to be undefined. I really

Ajp13Processor threads are not getting closed.

2011-08-24 Thread Jagadish Raj R
Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is created. My problem is this thread does not get

Re: Ajp13Processor threads are not getting closed.

2011-08-24 Thread Mark Thomas
On 24/08/2011 10:39, Jagadish Raj R wrote: Hi Tomcat Users, I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an Ajp13Processor connection thread is

RE: Ajp13Processor threads are not getting closed.

2011-08-24 Thread Edward Quick
You could try adding JkWatchDogInterval 30. That did the trick for me. -Original Message- From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Sent: 24 August 2011 10:39 To: Tomcat Users List Subject: Ajp13Processor threads are not getting closed. Hi Tomcat Users, I have a Tomcat

path to application in parallel deployment

2011-08-24 Thread Aristedes Maniatis
I have another parallel deployment question: I am deploying Solr within a custom war application and it requires a path to its config files. Before parallel deployment I had this entry in context.xml: Environment name=solr/home

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Tue, Aug 23, 2011 at 5:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: If you are using sticky sessions, then it is vital to the operation of your cluster that the jvmRoutes be set with care and configured in the web server to match the individual Tomcat instances. Thanks, it

RE: Ajp13Processor threads are not getting closed.

2011-08-24 Thread Caldarale, Charles R
From: Jagadish Raj R [mailto:jagadish_ra...@symantec.com] Subject: Ajp13Processor threads are not getting closed. Tomcat - 4.1.27 That version of Tomcat is over eight years old, and Tomcat 4 has not been supported for several years. Might want to think about upgrading... - Chuck THIS

RE: jvmRoute generation

2011-08-24 Thread Jeffrey Janner
-Original Message- From: Andrew Todd [mailto:andrew.todd...@gmail.com] Sent: Wednesday, August 24, 2011 7:53 AM To: Tomcat Users List Subject: Re: jvmRoute generation On Tue, Aug 23, 2011 at 5:31 PM, Christopher Schultz ch...@christopherschultz.net wrote: If you are using sticky

Re: jvmRoute generation

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 8/24/2011 9:59 AM, Jeffrey Janner wrote: As Chris pointed out, it is mostly used by folks running with sticky-sessions Actually, use of the jvmRoute with non-sticky sessions seems like an unnecessary step to me, since non-sticky

Re: path to application in parallel deployment

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aristedes, On 8/24/2011 6:12 AM, Aristedes Maniatis wrote: I have another parallel deployment question: I am deploying Solr within a custom war application and it requires a path to its config files. Before parallel deployment I had this entry in

Re: Ajp13Processor threads are not getting closed.

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/24/2011 5:39 AM, Jagadish Raj R wrote: I have a Tomcat server to which another apache webserver connects using AJP 1.3 Connector. I have set up a maxProcessors=75 in connector settings. Whenever a user creates a connection an

RE: jvmRoute generation

2011-08-24 Thread Jeffrey Janner
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Wednesday, August 24, 2011 9:08 AM To: Tomcat Users List Subject: Re: jvmRoute generation -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 8/24/2011 9:59 AM, Jeffrey Janner

Re: path to application in parallel deployment

2011-08-24 Thread Aristedes Maniatis
On 25/08/11 12:15 AM, Christopher Schultz wrote: So, if you could do this with code it would be: getServletContext().getRealPath(/WEB-INF/classes/solr) Right? Yes. There isn't any system property for this kind of thing (since system properties are JVM-wide, and not specific to any

Re: path to application in parallel deployment

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aristedes, On 8/24/2011 10:36 AM, Aristedes Maniatis wrote: On 25/08/11 12:15 AM, Christopher Schultz wrote: So, if you could do this with code it would be: getServletContext().getRealPath(/WEB-INF/classes/solr) Right? Yes. Okay... glad

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Wed, Aug 24, 2011 at 10:07 AM, Christopher Schultz ch...@christopherschultz.net wrote: For my money, I'd go for sticky sessions and no replication at all. Correct, this is, as far as I know, what we are planning to do. Jeffrey Janner wrote: I see from your first post that you know where to

Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Hey Guys, I had a question regarding Tomcat configuration. I see over and over folks building web apps that write custom code responsible for baking in URL parameters to some path. For example, let's say I have a web service located at: http://myhost/books that by default returns a listing

RE: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Caldarale, Charles R
From: Mattmann, Chris A (388J) [mailto:chris.a.mattm...@jpl.nasa.gov] Subject: Is there a way to bake in URL parameters to a URL path? What I would like to be able to do is to set up, via configuration, the ability to map a new URL, say: http://myhost/fictionbooks To

Re: path to application in parallel deployment

2011-08-24 Thread Aristedes Maniatis
On 25/08/11 12:43 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Aristedes, On 8/24/2011 10:36 AM, Aristedes Maniatis wrote: On 25/08/11 12:15 AM, Christopher Schultz wrote: So, if you could do this with code it would be:

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat proper. It would seem to be a very useful tool to include. An ALv2 licensed type of filter that does things like the URLRewrite Filter. Another

Re: jvmRoute generation

2011-08-24 Thread Mark Thomas
On 24/08/2011 15:07, Christopher Schultz wrote: Jeffrey, On 8/24/2011 9:59 AM, Jeffrey Janner wrote: As Chris pointed out, it is mostly used by folks running with sticky-sessions Actually, use of the jvmRoute with non-sticky sessions seems like an unnecessary step to me, since

Too many open files error

2011-08-24 Thread Campbell, Lance
Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit /proc/sys/fs/file-max = 3233344 We experienced an issue where we were getting the error too many open files in tomcat. The server manager increase the amount of open files to the above. But the error kept coming back even after rebooting

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
On Wed, Aug 24, 2011 at 17:21, Campbell, Lance la...@illinois.edu wrote: Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit /proc/sys/fs/file-max = 3233344 We experienced an issue where we were getting the error too many open files in tomcat.  The server manager increase the amount of

RE: Too many open files error

2011-08-24 Thread Campbell, Lance
The file /etc/security/limits.d is empty. What would be an example of something you would expect to see in there that would relate to changing the RMILIT_NFILE value? Thanks, From: Francis GALIEGUE [f...@one2team.com] Sent: Wednesday, August 24, 2011

Re: Too many open files error

2011-08-24 Thread Francis GALIEGUE
On Wed, Aug 24, 2011 at 17:33, Campbell, Lance la...@illinois.edu wrote: The file /etc/security/limits.d is empty.  What would be an example of something you would expect to see in there that would relate to changing the RMILIT_NFILE value? It's a directory, not a file. Create a file named

Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread Mark Eggers
- Original Message - From: André Warnier a...@ice-sa.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Wednesday, August 24, 2011 1:44 AM Subject: Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1 Ana Maria Teodorescu wrote:     Dear Tomcat users and experts, I

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Tim Funk
While useful ... I would conjecture that things like this eventually undergo feature creep and over time would turn into http://www.tuckey.org/urlrewrite/ -Tim On Wed, Aug 24, 2011 at 11:14 AM, Mattmann, Chris A (388J) chris.a.mattm...@jpl.nasa.gov wrote: Thanks for your reply Chuck. It

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Hi Tim, On Aug 24, 2011, at 8:55 AM, Tim Funk wrote: While useful ... I would conjecture that things like this eventually undergo feature creep and over time would turn into http://www.tuckey.org/urlrewrite/ Thanks. That's entirely possible, but on the other end of the spectrum, if you

Re: Tomcat 6.0.26 bundled with Netbeans 6.9.1

2011-08-24 Thread Ana Maria Teodorescu
This seems a reasonable solution to my problem. I'll try this! Thanks a lot, Ana Here are two solutions based on installing the real Tomcat from tomcat.apache.org. 1. Keep your current installation a. Keep your current NetBeans installation b. Download Tomcat 6.0.33 from

Replying to Posts

2011-08-24 Thread Donald Jolley
Hi -- I'm very new to both Tomcat and the list. Yesterday I initiated a thread entitled Conditional Branch from Servlet to URL. So far I have received 2 thoughtful replies. (Thank you very much.) Suddenly I have discovered that I don't know how to reply to these posts. I think that the

Re: Replying to Posts

2011-08-24 Thread Konstantin Kolinko
2011/8/24 Donald Jolley jolleyt...@gmail.com: I'm very new to both Tomcat and the list.  Yesterday I initiated a thread entitled Conditional Branch from Servlet to URL.  So far I have received 2 thoughtful replies.  (Thank you very much.)  Suddenly I have discovered that I don't know how to

Re: Replying to Posts

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Douig, On 8/24/2011 1:03 PM, Donald Jolley wrote: Suddenly I have discovered that I don't know how to reply to these posts. I think that the problem is that I have a digest subscription and the digests seem to encapsulate the individual messages

Conditional Branch from Servlet to URL - Continued

2011-08-24 Thread Donald Jolley
Hi -- I had difficulty replying from my digest subscription. To resolve the difficulty, I have unsubscribed and resubscribed without the digest. Leo has asked the question: how can RequestDispatcher perform the forward I'm not sure. My objective is to institute a way of conditionally

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Terence M. Bandoian
On 1:59 PM, Mattmann, Chris A (388J) wrote: Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat proper. It would seem to be a very useful tool to include. An ALv2 licensed type of filter that does

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J) wrote: For example, let's say I have a web service located at: http://myhost/books Your REST guys are a fun bunch :) The web service is just backed by a Java Servlet Okay. I get my JSON

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 12:09 PM, Mattmann, Chris A (388J) wrote: [O]n the other end of the spectrum, if you scare away people who are simply trying to do what I'm trying to do with all of the flexibility (and complexity) from a full-featured URL

Re: Too many open files error

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lance, On 8/24/2011 11:21 AM, Campbell, Lance wrote: Tomcat 6.0.32 Java 1.6.27 Apache 2.0 RedHat 6.x 64 bit /proc/sys/fs/file-max = 3233344 We experienced an issue where we were getting the error too many open files in tomcat. The server

Re: jvmRoute generation

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 8/24/2011 10:47 AM, Andrew Todd wrote: The documentation there is addressed towards someone who wants to do clustering replication and apparently already knows something about the subject. jvmRoute is only mentioned in the context of a

Re: Conditional Branch from Servlet to URL - Continued

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Donald, On 8/24/2011 2:23 PM, Donald Jolley wrote: how can RequestDispatcher perform the forward I'm not sure. My objective is to institute a way of conditionally jumping from a servlet to a specified page. This does work. You have to do

Re: jvmRoute generation

2011-08-24 Thread Andrew Todd
On Wed, Aug 24, 2011 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: If you look at the stock conf/server.xml, it says: Documentation at /docs/config/engine.html ...right above the Engine element. If you read that document, the jvmRoute attribute says: I know, I have

Tomcat on Ubuntu

2011-08-24 Thread János Löbb
Hi, Newbie question: Is still /usr/local/tomcat is the default location for installation on Ubuntu 10.04 ? Recently I saw it in an nfs directory mounted by autofs from another server and I am wondering... Thanks ahead, János

Re: Tomcat on Ubuntu

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 János, On 8/24/2011 4:02 PM, János Löbb wrote: Newbie question: Is still /usr/local/tomcat is the default location for installation on Ubuntu 10.04 ? Recently I saw it in an nfs directory mounted by autofs from another server and I am

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks Terrence! Cheers, Chris On Aug 24, 2011, at 11:27 AM, Terence M. Bandoian wrote: On 1:59 PM, Mattmann, Chris A (388J) wrote: Thanks for your reply Chuck. It looks like you can do what I'm suggesting, but it's pretty complex. I'm also wondering why this isn't part of Tomcat

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
Thanks Chris for the advice. Cheers, Chris On Aug 24, 2011, at 11:26 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J) wrote: For example, let's say I have a web service located at: http://myhost/books

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Mattmann, Chris A (388J)
On Aug 24, 2011, at 11:32 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 8/24/2011 12:09 PM, Mattmann, Chris A (388J) wrote: [O]n the other end of the spectrum, if you scare away people who are simply trying to do what I'm trying to do with all of

TC on Windows Server Core

2011-08-24 Thread David kerber
Will TC run on a Windows Server Core installation? For those of you not familiar with that term, it's a windows server installation with no GUI, and minimal other pieces. The idea is a reduced disk, memory and cpu footprint (rather Unix/Linux like). D

Re: TC on Windows Server Core

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, On 8/24/2011 4:39 PM, David kerber wrote: Will TC run on a Windows Server Core installation? For those of you not familiar with that term, it's a windows server installation with no GUI, and minimal other pieces. The idea is a reduced

RE: TC on Windows Server Core

2011-08-24 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: TC on Windows Server Core unless the JVM does something silly like trying to initialize the graphics subsystem even when there isn't one available. Have to differentiate between the JVM graphics subsystem and that

Re: TC on Windows Server Core

2011-08-24 Thread André Warnier
David kerber wrote: Will TC run on a Windows Server Core installation? For those of you not familiar with that term, it's a windows server installation with no GUI, and minimal other pieces. The idea is a reduced disk, memory and cpu footprint (rather Unix/Linux like). One might be

Re: [OT] TC on Windows Server Core

2011-08-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 8/24/2011 5:01 PM, André Warnier wrote: David kerber wrote: Will TC run on a Windows Server Core installation? For those of you not familiar with that term, it's a windows server installation with no GUI, and minimal other pieces. The

Re: Is there a way to bake in URL parameters to a URL path?

2011-08-24 Thread Pid
On 24/08/2011 21:21, Mattmann, Chris A (388J) wrote: Thanks Chris for the advice. Or people use an MVC framework of some sort to map URLs to methods. p Cheers, Chris On Aug 24, 2011, at 11:26 AM, Christopher Schultz wrote: Chris, On 8/24/2011 10:56 AM, Mattmann, Chris A (388J)

Re: TC on Windows Server Core

2011-08-24 Thread David Kerber
On 8/24/2011 5:01 PM, André Warnier wrote: David kerber wrote: Will TC run on a Windows Server Core installation? For those of you not familiar with that term, it's a windows server installation with no GUI, and minimal other pieces. The idea is a reduced disk, memory and cpu footprint

Re: Apache Tomcat unable to send the request. tomcat throwing 502 Gate Way error

2011-08-24 Thread rakesh k
Hi Pid Please find the details that you had asked. 1) We are using *java 1.6.0_18 and the OS is centos* *2) *we send requests in parallel 3) 5 concurrent requests are sent to tomcat instance. Can you please help us regarding this, we are blocked at this point . can you please help. where as we