Uploading large files

2013-05-29 Thread Mohit Anchlia
I am looking for a general advice on uploading large files. I am currently thinking that we do it on our API and have clients chunk it in multiple pieces and send it to the server. I could try http chunk based transfer but only think I am unsure of is if on the server the entire content is going

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
Is this even possible with tomcat? On Thu, Aug 11, 2011 at 12:32 PM, Mohit Anchlia mohitanch...@gmail.com wrote: Currently when I deploy abc-SNAPSHOT-01.war I access is something like http://localhost:8080/abc-SNAPSHOT-01.war How can I change the context root such that I can access

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
On Mon, Aug 15, 2011 at 12:17 PM, Pid p...@pidster.com wrote: On 15/08/2011 18:05, Mohit Anchlia wrote: Is this even possible with tomcat? In Tomcat 7.0:  abc##SNAPSHOT-01.war  abc##SNAPSHOT-02.war  abc##SNAPSHOT-03.war  abc##SNAPSHOT-04.war etc Sorry I don't follow. What do I need

Re: Tomcat war context path

2011-08-15 Thread Mohit Anchlia
Got it thanks! Will try that On Mon, Aug 15, 2011 at 12:54 PM, Mark Thomas ma...@apache.org wrote: On 15/08/2011 20:39, Mohit Anchlia wrote: On Mon, Aug 15, 2011 at 12:17 PM, Pidp...@pidster.com  wrote: On 15/08/2011 18:05, Mohit Anchlia wrote: Is this even possible with tomcat

Tomcat war context path

2011-08-11 Thread Mohit Anchlia
Currently when I deploy abc-SNAPSHOT-01.war I access is something like http://localhost:8080/abc-SNAPSHOT-01.war How can I change the context root such that I can access it as http://localhost:8080/abc? Problem is that abc-SNAPSHOT-01.war name could change with the build version change.

Re: URL rewrite

2011-08-09 Thread Mohit Anchlia
On Tue, Aug 9, 2011 at 1:30 AM, Pid p...@pidster.com wrote: On 08/08/2011 20:36, Mohit Anchlia wrote: I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed

Re: Servlet Request URL

2011-08-09 Thread Mohit Anchlia
I think I resolved it. It looks like if I keep the Host header set to incoming request it works just fine. I am assuming Proxies do the same thing. And it also looks like HttpServletRequest.getRequestURL uses http header Host to get the host name. On Mon, Aug 8, 2011 at 10:50 PM, Mohit Anchlia

getScheme

2011-08-09 Thread Mohit Anchlia
tomcat docs for connectors say: scheme: This sets the protocol name as accessed by the ServletRequest.getScheme method. The scheme defaults to http. Is there any other way scheme can be changed by using some Http Headers instead of doing it in connector?

URL rewrite

2011-08-08 Thread Mohit Anchlia
I need to re-write URL using some Http Headers. Can I use any headers? Or only the one listed here? http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html Is HTTP_HOST always set? I printed headers of my servlet and this is what I see. I used getHeaders and iterate over it: I need to use host as

Servlet Request URL

2011-08-08 Thread Mohit Anchlia
I need to intercept a request in the servlet and send the request after some processing as a proxy. Currently when I do that it breaks OAuth since customer uses REQUEST URL to sign the request and since host part of the URL is changing it breaks that validation. Is there a way I can keep the same

Re: Design Question

2011-08-06 Thread Mohit Anchlia
On Sat, Aug 6, 2011 at 6:10 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 8/5/2011 5:46 PM, Mohit Anchlia wrote: I also need to use mod_rewrite to direct request to new Servlet. Can I use rewrite to say abc.com/abc

Design Question

2011-08-05 Thread Mohit Anchlia
We are developing a new system that will run in parallel with old system. So some requests will go to new system and some old based on configuration. We will put software switch software which will read configuration and the request and decide which system this will go to. This switch calls

Re: Design Question

2011-08-05 Thread Mohit Anchlia
On Fri, Aug 5, 2011 at 1:37 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 8/5/2011 1:59 PM, Mohit Anchlia wrote: This switch calls HttpClient Post calls using thread pools to send the request to other systems. Uh, why

Re: Design Question

2011-08-05 Thread Mohit Anchlia
On Fri, Aug 5, 2011 at 2:41 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 8/5/2011 5:05 PM, Mohit Anchlia wrote: On Fri, Aug 5, 2011 at 1:37 PM, Christopher Schultz Uh, why not use an HTTP proxy instead of using

web.xml parse error

2011-06-26 Thread Mohit Anchlia
I am getting following errors and not able to find what's missing: web-app xmlns=http://java.sun.com/xml/ns/javaee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/javaee

Re: web.xml parse error

2011-06-26 Thread Mohit Anchlia
Thanks! that worked. On Sun, Jun 26, 2011 at 3:50 AM, Konstantin Kolinko knst.koli...@gmail.com wrote:   servlet servlet-name=DataPlatform            servlet-class=com.i.common.DataPlatformServlet/ The above is wrong. You should use nested elements, not attributes.. Take a look at any

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
Can someone please help? On Tue, Mar 29, 2011 at 6:16 PM, Mohit Anchlia mohitanch...@gmail.com wrote: In order to circimvent this bug https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have in apache 2 properties. We often see cping/cpong after connecting to the backend server

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
it will wait forever? Just trying to see what additional settings I need to put in place. On Tue, Mar 29, 2011 at 6:16 PM, Mohit Anchlia mohitanch...@gmail.com wrote: In order to circimvent this bug https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have in apache 2 properties. We often

Re: Bug Help

2011-03-30 Thread Mohit Anchlia
will likely be asked for logs on both your HTTPD, mod_jk and tomcat sides. I think if you did that, you might get some help. On Mar 30, 2011, at 12:16 PM, Mohit Anchlia wrote: Can someone please give some pointers? Connector document says that connection_pool_timeout should be same

Bug Help

2011-03-29 Thread Mohit Anchlia
In order to circimvent this bug https://issues.jboss.org/browse/JBPAPP-366 what should I exactly have in apache 2 properties. We often see cping/cpong after connecting to the backend server failed (errno=110) and bunch of 503s Current worker.properties look something like this:

Re: Simple Question about reading http transmission using mod_jk

2011-01-07 Thread Mohit Anchlia
On Fri, Jan 7, 2011 at 7:22 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 1/6/2011 6:01 PM, Caldarale, Charles R wrote: From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Subject: Simple Question about reading http

Simple Question about reading http transmission using mod_jk

2011-01-06 Thread Mohit Anchlia
We are using mod_jk. My question is when apache receives a request with http payload does it first read the entire payload and then transfers it to tomcat or does it just sends the handle to the stream and then tomcat reads from it. It's little confusing.

mod-jk not called after PerlHandler gets called

2010-11-22 Thread Mohit Anchlia
I posted this thread in mod_perl group: http://www.gossamer-threads.com/lists/modperl/modperl/102273 I thought I should ask here as well. I have a perl handler in VirtualHost: JkMount /bridge/* tc PerlModule Apache2::Rules2 SetHandler modperl PerlInitHandler Apache2::Rules2 PerlSendHeader On

Logging hostname/virutal name in the log

2010-10-19 Thread Mohit Anchlia
Currently we use proxy and x-forwarded. Proxy uses snat so when it gets logged we see something like: 10.128.1.5 65.204.229.11 - - [14/Oct/2010:22:29:49 -0700] POST /adi.cgi HTTP/1.1 200 753 10.128.1.5 is proxy's ip 65.204.229.11 is browser client ip I also need the name of the hostname or

Custom message instead of HTTP error on LimitRequestBody

2010-09-08 Thread Mohit Anchlia
Apache 2: Is there a way to send custom message instead of just the Error Code when there is an upload limit set using LimitRequestBody? Something like You have exceeded the size - To unsubscribe, e-mail:

Re: Custom message instead of HTTP error on LimitRequestBody

2010-09-08 Thread Mohit Anchlia
Sorry wrong email group On Wed, Sep 8, 2010 at 1:37 PM, Mohit Anchlia mohitanch...@gmail.com wrote: Apache 2: Is there a way to send custom message instead of just the Error Code when there is an upload limit set using LimitRequestBody? Something like You have exceeded the size

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 6:21 PM, Hassan Schroeder hassan.schroe...@gmail.com wrote: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a http://lmgtfy.com/?q=tomcat+url+rewrite Is URL rewrite module inbuilt or is there something that need to get loaded -- Hassan

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Wed, Sep 1, 2010 at 7:04 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 9/1/2010 9:10 PM, Mohit Anchlia wrote: Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a Sure

Re: URL rewrite

2010-09-02 Thread Mohit Anchlia
On Thu, Sep 2, 2010 at 9:35 AM, michel compu...@videotron.ca wrote: - Original Message - From: Mohit Anchlia mohitanch...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 02, 2010 12:25 PM Subject: Re: URL rewrite On Wed, Sep 1, 2010 at 6:21 PM

URL rewrite

2010-09-01 Thread Mohit Anchlia
Tomcat 6: Is there a way to change the URL for eg: http://abc.com/a to http://abc.com/b/a - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: fail_on_status question

2010-06-06 Thread Mohit Anchlia
On Sun, Jun 6, 2010 at 6:40 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 06.06.2010 03:52, Mohit Anchlia wrote: On Sat, Jun 5, 2010 at 2:02 AM, Rainer Jungrainer.j...@kippdata.de  wrote: On 04.06.2010 01:30, Mohit Anchlia wrote: In our present environment we have a WS and APP server

Re: fail_on_status question

2010-06-05 Thread Mohit Anchlia
On Sat, Jun 5, 2010 at 2:02 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 04.06.2010 01:30, Mohit Anchlia wrote: In our present environment we have a WS and APP server. When request comes in, WS sends it to APP server using mod_jk and then APP server inserts it into JMS queue. So

Re: fail_on_status question

2010-06-04 Thread Mohit Anchlia
On Thu, Jun 3, 2010 at 4:30 PM, Mohit Anchlia mohitanch...@gmail.com wrote: In our present environment we have a WS and APP server. When request comes in, WS sends it to APP server using mod_jk and then APP server inserts it into JMS queue. So essentially APP server is also dependent on JMS

fail_on_status question

2010-06-03 Thread Mohit Anchlia
In our present environment we have a WS and APP server. When request comes in, WS sends it to APP server using mod_jk and then APP server inserts it into JMS queue. So essentially APP server is also dependent on JMS server which runs on the same box. My question is can I use fail_on_status in

Re: mod_jk behaviour during failure

2010-04-03 Thread Mohit Anchlia
On Sat, Apr 3, 2010 at 9:44 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 31.03.2010 23:33, Mohit Anchlia wrote: On Wed, Mar 31, 2010 at 2:27 PM, Rainer Jungrainer.j...@kippdata.de  wrote: Which version? If 1.2.28 or newer, look for error_escalation_time in Actually I am on 1.2.27 so

Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Wed, Mar 31, 2010 at 3:35 PM, Mohit Anchlia mohitanch...@gmail.com wrote: On Wed, Mar 31, 2010 at 3:29 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 3/31/2010 5:33 PM, Mohit Anchlia wrote: On Wed, Mar 31, 2010 at 2

Re: mod_jk behaviour during failure

2010-04-01 Thread Mohit Anchlia
On Thu, Apr 1, 2010 at 11:43 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 4/1/2010 11:35 AM, Mohit Anchlia wrote: I tested that leaving server down and in 15mt test the worker never went to ERR state while the node

mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
I am seeing weird behaviour here. What I am seeing is that when server is not pingable (when I reboot or shutdown) anymore mod_jk keeps logging errors 111 (connection refused) and errors 115 continuously and during this timeperiod if I look at JkStatus the State of the corresponding worker is

Re: mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
On 31.03.2010 23:09, Mohit Anchlia wrote: I am seeing weird behaviour here.  What I am seeing is that when server is not pingable (when I reboot or shutdown) anymore mod_jk keeps logging errors 111 (connection refused) and errors 115 continuously and during this timeperiod if I look at JkStatus

Re: mod_jk behaviour during failure

2010-03-31 Thread Mohit Anchlia
On Wed, Mar 31, 2010 at 3:29 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 3/31/2010 5:33 PM, Mohit Anchlia wrote: On Wed, Mar 31, 2010 at 2:27 PM, Rainer Jung rainer.j...@kippdata.de wrote: Which version? If 1.2.28

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 6:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/11/2010 1:41 AM, Mohit Anchlia wrote: On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: Mohit, On 2

Re: Http 505

2010-02-11 Thread Mohit Anchlia
On Thu, Feb 11, 2010 at 7:56 AM, Mark Thomas ma...@apache.org wrote: On 11/02/2010 15:50, Hassan Schroeder wrote: On Thu, Feb 11, 2010 at 7:45 AM, Mohit Anchlia mohitanch...@gmail.com wrote: [r...@e1 ~]# telnet ws1 8080 Trying 10.10.50.55... Connected to ws1 (10.10.50.55). Escape

Re: Http 505

2010-02-11 Thread Mohit Anchlia
Is this going to log just too much? This is a production system so want to be careful. Is there any other way to enable it in valve or some other way that just gives the error logging? On Thu, Feb 11, 2010 at 8:21 AM, Mark Thomas ma...@apache.org wrote: On 11/02/2010 16:05, Mohit Anchlia wrote

Re: Http 505

2010-02-10 Thread Mohit Anchlia
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/9/2010 11:01 PM, Mohit Anchlia wrote: Tomcat 6 Tomcat 6.what? Our application non-java client (C/Java)  are occasionally seeing Http 505. Do you know what the HTTP 505 response code means? It means that the HTTP version

Re: Http 505

2010-02-10 Thread Mohit Anchlia
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/10/2010 5:28 PM, Mohit Anchlia wrote: There is a proxy F5 in between. But this server sends 100s of request per sec. to the same URL. Essentially it's the same code. Only few of them fail. This application is non browser based

Re: Http 505

2010-02-10 Thread Mohit Anchlia
On Wed, Feb 10, 2010 at 2:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/10/2010 5:28 PM, Mohit Anchlia wrote: There is a proxy F5 in between. But this server sends 100s of request per sec. to the same URL

Http 505

2010-02-09 Thread Mohit Anchlia
Tomcat 6 Our application non-java client (C/Java) are occassionally seeing Http 505. But there is no such error being logged in the tomcat access log. Clients are for sure seeing 505 but we are not so I am wondering if someone can help me understand why that might be occuring? In the response

Timeout

2010-01-20 Thread Mohit Anchlia
Tomcat 6: Are there any other kind of timeout values other than ConnectionTimeout? Does Connection Timeout come into affect when there is an ESTABLISHED socket connection from the client? - To unsubscribe, e-mail:

Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
Tomcat 6: I am seeing Exception in localhost java.net.SocketTimeoutException: Read time out. I looked at the access log and I see tomcat returning Http 500. Only thing in common is that %b (bytes sent) for all the timeouts are 2657. For rest of them where requests are successfull it's less than

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 10:47 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 12:06 PM, Mohit Anchlia wrote: Tomcat 6: Which specific version, please. Also, what connector(s) are you using. Please provide

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 11:41 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 2:11 PM, Mohit Anchlia wrote: Server version: Apache Tomcat/6.0.18 We don't any other web server in front Okay. What connector(s

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On the same note. Is there a way to log in access log at what time the request was received and time response was sent? I am planning to add more debug to see how long it waits before timing out. On Wed, Jan 20, 2010 at 12:08 PM, Mohit Anchlia mohitanch...@gmail.com wrote: On Wed, Jan 20, 2010

Re: Http 500 and %b in access log

2010-01-20 Thread Mohit Anchlia
On Wed, Jan 20, 2010 at 2:00 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/20/2010 3:08 PM, Mohit Anchlia wrote:     Connector port=8080 protocol=HTTP/1.1                connectionTimeout=12

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
I am looking at file in vi and don't see stack trace On Wed, Jan 13, 2010 at 11:02 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 1/11/2010 9:10 PM, Mohit Anchlia wrote: I am seeing following exception in localhost file

Re: Exception in localhost file

2010-01-13 Thread Mohit Anchlia
, please run catalina.sh version org.apache.juli.FileHandler uses java.util.logging.SimpleFormatter by default, and you should look in your JDK sources to see how that class is implemented. As of 6u16 it calls printStackTrace(pw) on the exception. 2010/1/14 Mohit Anchlia mohitanch...@gmail.com

Re: Exception in localhost file

2010-01-12 Thread Mohit Anchlia
their own message. -Original Message- From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Sent: Monday, January 11, 2010 8:10 PM To: Tomcat Users List Subject: Exception in localhost file tomcat 6: I am seeing following exception in localhost file with no stack trace. There is no clue

Re: Exception in localhost file

2010-01-12 Thread Mohit Anchlia
. -Original Message- From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Sent: Tuesday, January 12, 2010 9:58 AM To: Tomcat Users List Subject: Re: Exception in localhost file There seems to be no code. This is logging properties. I am not sure why the exception is not getting logged. I

Exception in localhost file

2010-01-11 Thread Mohit Anchlia
tomcat 6: I am seeing following exception in localhost file with no stack trace. There is no clue as to why this might be happening. How do I get the full stack trace to narrow down the problem? We also have our application log where our application specific exceptions get logged with full stack

Re: Changing request address to x-forwarded-for

2010-01-06 Thread Mohit Anchlia
Could you please point me to an example of how I can do this? We are using apache-tomcat-6.0.18 On Tue, Jan 5, 2010 at 11:41 PM, Mark Thomas ma...@apache.org wrote: On 06/01/2010 04:14, Mohit Anchlia wrote: tomcat 6: Is it possible to inject or change remote address to what's in x-forwaded

Changing request address to x-forwarded-for

2010-01-05 Thread Mohit Anchlia
tomcat 6: Is it possible to inject or change remote address to what's in x-forwaded-for in http header such that when Servlet received the request it's already in the request.getRemoteAddress()? Otherwise we'll need to make a urgent change to read from the HTTP header. We didn't realize it

Re: errno 110 in mod_jk

2009-11-08 Thread Mohit Anchlia
this value too low? On Sun, Nov 8, 2009 at 9:59 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 08.11.2009 01:36, Mohit Anchlia wrote: Could someone please help me understand this? What about adding connectionTimeout to the JBoss Connector element (and keep its value in sync

Re: errno 110 in mod_jk

2009-11-07 Thread Mohit Anchlia
, 2009 at 6:30 PM, Mohit Anchlia mohitanch...@gmail.com wrote: I am looking at the tcpdump but I don't see packet retransmits. What should I expect to see in tcpdump? thanks for your help. On Fri, Nov 6, 2009 at 4:05 PM, Rainer Jung rainer.j...@kippdata.de wrote: $ grep 110 /usr/include/*/errno.h

Re: errno 110 in mod_jk

2009-11-07 Thread Mohit Anchlia
Could someone please help me understand this? On Sat, Nov 7, 2009 at 8:50 AM, Mohit Anchlia mohitanch...@gmail.com wrote: I am also seeing that in Jboss (Back End) that there are lot of keep alive sessions and I think that's the reason I am seeing the timeout. As I add new web server it hits

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
=900 On Tue, Oct 27, 2009 at 1:01 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 10/26/2009 6:40 PM, Mohit Anchlia wrote: Christopher in one of his earlier replies mentioned that we don't have failover set. I am not sure why

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
it send that user request that's using that connection to other lb node? Wouldn't using Pre Post be the best thing to do? On Wed, Oct 28, 2009 at 10:55 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 28.10.2009 17:29, Mohit Anchlia wrote: Based on what I have seen is that we often get HTTP code 502

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
Thanks. I couldn't find what option retry_options 7 in http://tomcat.apache.org/connectors-doc/reference/workers.html is for. On Wed, Oct 28, 2009 at 11:37 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 28.10.2009 19:29, Mohit Anchlia wrote: Thanks a lot! Would this work with 1.2.27

Re: So many timeout values

2009-10-28 Thread Mohit Anchlia
I actually have worked on C but didn't read the line about bit mask. Sorry. On Wed, Oct 28, 2009 at 12:44 PM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 10/28/2009 2:29 PM, Mohit Anchlia wrote: Regarding recovery_options

Re: So many timeout values

2009-10-26 Thread Mohit Anchlia
thanks I'll read that and let you know if I have any questions. On Mon, Oct 26, 2009 at 9:21 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 26.10.2009 16:19, Christopher Schultz wrote: On 10/25/2009 12:12 PM, Mohit Anchlia wrote: I also trying to understand cpong, prepost and all other

Re: So many timeout values

2009-10-26 Thread Mohit Anchlia
we have worker.list and also we have loadbalancer set in our worker.properties. On Mon, Oct 26, 2009 at 10:54 AM, Mohit Anchlia mohitanch...@gmail.com wrote: thanks I'll read that and let you know if I have any questions. On Mon, Oct 26, 2009 at 9:21 AM, Rainer Jung rainer.j...@kippdata.de wrote

Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
I posted this earlier to old thread. I am posting it with new thread. Apache 2.2.11, mod_jk/1.2.28: There seems to be a problem with activation of status worker JkStatus. Even after explicitly saying stopped for one of the workers the Act keeps going back and forth. When I refresh that page it

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
? Regards, Rainer On 25.10.2009 15:18, Mohit Anchlia wrote: I posted this earlier to old thread. I am posting it with new thread. Apache 2.2.11, mod_jk/1.2.28: There seems to be a problem with activation of status worker JkStatus. Even after explicitly saying stopped for one of the workers

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
I think I got it. It was JkShmFile that was missing. Do you know how load balancing was working then if the status worker wasn't running? During our perf test I did see that it was getting load balanced. On Sun, Oct 25, 2009 at 7:50 AM, Mohit Anchlia mohitanch...@gmail.com wrote: mod_jk 1.27

So many timeout values

2009-10-25 Thread Mohit Anchlia
Apache 2.2.11 I also trying to understand cpong, prepost and all other timeouts. But it's confusing in terms of which one should be used and which ones can be left alone. We currently have following values, do you see any problem? worker.host2533.type=ajp13 worker.host2533.port=8009

Re: Status worker not stopping or disabling worker through JkStatus

2009-10-25 Thread Mohit Anchlia
Thanks. Is the JkShmfile something new? It worked when we had mod_jk 1.25. What is JkshmFile used for? On Sun, Oct 25, 2009 at 8:42 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 25.10.2009 16:00, Mohit Anchlia wrote: I think I got it. It was JkShmFile that was missing. yes

Re: mod_jk not working as expected - is there a bug??

2009-10-24 Thread Mohit Anchlia
to that worker. Is this a known bug? Earlier when we were on previous version of mod_jk this On Fri, Mar 6, 2009 at 2:02 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 06.03.2009 21:42, Mohit Anchlia wrote: In addition to questions that I have in below email, I have couple of question. 1

Re: mod_jk not working as expected - is there a bug??

2009-10-24 Thread Mohit Anchlia
on previous version of mod_jk this used to work fine. Attached is the screen shot On Sat, Oct 24, 2009 at 7:51 AM, Mohit Anchlia mohitanch...@gmail.com wrote: Apache 2.11, mod_jk/1.2.28: There seems to be a problem with activation of status worker JkStatus. Even after explicitly saying stopped for one

Re: Using multiple DataSource's for fail-over.

2009-09-05 Thread Mohit Anchlia
I don't think. Did you try shutting down one node? You can also look at netadmin tutorial to see what FAILOVER means. On Fri, Sep 4, 2009 at 11:58 AM, Bill Davidsonbill...@gmail.com wrote: Mohit Anchlia wrote: Something like this: (DESCRIPTION=(FAILOVER=ON)(ADDRESS_LIST=(LOAD_BALANCE

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Mohit Anchlia
Did you look at Oracle RAC docs? On Wed, Sep 2, 2009 at 11:10 AM, Bill Davidsonbill...@gmail.com wrote: Tim Funk wrote: I thought the Oracle JDBC driver allowed for all the nodes to be placed into the connect string and the driver was smart enough to detect failover. [So its a configuration

Re: Using multiple DataSource's for fail-over.

2009-09-02 Thread Mohit Anchlia
Something like this: (DESCRIPTION=(FAILOVER=ON)(ADDRESS_LIST=(LOAD_BALANCE=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=x)(PORT=1526))(ADDRESS=(PROTOCOL=TCP)(HOST=)(PORT=1526)))(CONNECT_DATA=(SERVICE_NAME=somesid))) On Wed, Sep 2, 2009 at 11:53 AM, Mohit Anchliamohitanch...@gmail.com wrote: Did

Re: Access to home page

2009-08-03 Thread Mohit Anchlia
, 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

Re: Access to home page

2009-07-30 Thread Mohit Anchlia
And you do feel forced to comment. This is a forum and no one is forcing you to answer. On Wed, Jul 29, 2009 at 7:01 AM, Christopher Schultzch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 7/29/2009 12:49 AM, Mohit Anchlia wrote: How do I setup

Access to home page

2009-07-28 Thread Mohit Anchlia
tomcat 6: How can I limit access to the home page so that people are not able to access the home page? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: Access to home page

2009-07-28 Thread Mohit Anchlia
How do I setup authentication? On Tue, Jul 28, 2009 at 9:32 PM, ste...@up-south.com wrote: You want authentication --Original Message-- From: Mohit Anchlia To: Tomcat Users List ReplyTo: Tomcat Users List Subject: Access to home page Sent: Jul 28, 2009 21:27 tomcat 6: How can I

Stable tomcat release

2009-06-10 Thread Mohit Anchlia
We are currently using tomcat 6. How do I determine the most recent stable release of tomcat. I am looking at upgrading our tomcat with most recent stable release. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Throttling in mod_jk - Is it possible ?

2009-03-17 Thread Mohit Anchlia
mod_jk 1.2.25 - Is there a way to throttle traffic in apache. Something where we mention if requests on particular URL exceeded 'x' number then return 'y' message? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For

Re: mod_jk not working as expected - is there a bug??

2009-03-10 Thread Mohit Anchlia
at 2:02 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 06.03.2009 21:42, Mohit Anchlia wrote: In addition to questions that I have in below email, I have couple of question. 1. activation property disable - Does it first turn off new requests to that worker and then disable the worker

Re: mod_jk not working as expected - is there a bug??

2009-03-02 Thread Mohit Anchlia
I will change the JkLogLevel and post the results. I have a question though: Does prepost_timeout also detect if it received http code such as 503 from app server. On Wed, Feb 25, 2009 at 9:05 AM, Rainer Jung rainer.j...@kippdata.de wrote: On 25.02.2009 17:10, Mohit Anchlia wrote: you

Re: mod_jk not working as expected - is there a bug??

2009-02-25 Thread Mohit Anchlia
, Rainer Jung rainer.j...@kippdata.de wrote: On 25.02.2009 02:47, Mohit Anchlia wrote: In httpd conf I just see JkMount and no other directive. I searched for Jk. There should be others as well, for instance JkWorkersFile to point to your workers.properties. The names of the directives are case

mod_jk

2009-02-24 Thread Mohit Anchlia
We have Web Servers talking to Jboss App Servers over mod_jk. When we do our patch or upgrade of software we do it in rolling fashion so that there is 0 customer impact. But it looks like mod_jk load balancer on Web server doesn't detect it as soon as Jboss App Server goes down. Our goal is to

mod_jk not working as expected - is there a bug??

2009-02-24 Thread Mohit Anchlia
not started or is listening on the wrong port On Tue, Feb 24, 2009 at 1:41 PM, Rainer Jung rainer.j...@kippdata.de wrote: On 24.02.2009 19:18, Mohit Anchlia wrote: We have Web Servers talking to Jboss App Servers over mod_jk. When we do our patch or upgrade of software we do it in rolling fashion

Re: mod_jk not working as expected - is there a bug??

2009-02-24 Thread Mohit Anchlia
...@kippdata.de wrote: On 25.02.2009 00:00, Mohit Anchlia wrote: Reposting: Apache Server - 2.2 Tomcat server 6 Jboss - 4.2 We have Web Servers talking to Jboss App Servers over mod_jk. When we do our patch or upgrade of software we do it in rolling fashion so that there is 0 customer impact

mod_jk

2009-02-17 Thread Mohit Anchlia
Is there a way to verify if mod_jk is load balancing properly among given live servers - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: catalina.out

2009-02-15 Thread Mohit Anchlia
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mohit, On 2/13/2009 1:13 PM, Mohit Anchlia wrote: Is there a way to just log SEVERE or ERROR messages to catalina.out? Yes. http://tomcat.apache.org/tomcat-6.0-doc/logging.html Skip the log4j-specific parts unless you are using log4j. You really

catalina.out

2009-02-13 Thread Mohit Anchlia
Is there a way to just log SEVERE or ERROR messages to catalina.out? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Access Valve

2009-02-13 Thread Mohit Anchlia
Currently we are logging in default format. Is it possible to add Xforwarded by info to default logging. Here is the config: Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.log pattern=common resolveHosts=false/

About logging

2009-02-06 Thread Mohit Anchlia
I have a problem that I haven't resolved yet around logging. I have log4j within my application, what I see is that every log line is written to my log file specified in log4j (as expected) but there is also one entry in catalina.out. I had asked this question in the thread

Re: mod_jk

2009-02-06 Thread Mohit Anchlia
Sorry I am little confused about couple of things: 1. Based on what I read it looks like workers.properties is not loaded dynamically. And JkMountFileReload doesn't work for worker.properties but it works for uriworkermap.properties. 2. Wouldn't setting prepost timeout ensure that a check is made

mod_jk

2009-02-05 Thread Mohit Anchlia
Couple of questions regarding mod_jk: 1. Does apache read worker.properties dynamically? So if I change worker.property would it be dynamically read by mod_jk. 2. Does mod_jk check if the system is up and running before forwarding that request to the server configured in worker.properties file?

Re: Graceful Stop

2009-01-30 Thread Mohit Anchlia
, Charles R wrote: From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Subject: Re: Graceful Stop doing /etc/init.d/tomcat stop Mohit, can you supply that script /etc/init.d/tomcat here ? Let's have a look. And remind us of the exact platform on which you're running

Re: Graceful Stop

2009-01-29 Thread Mohit Anchlia
When I perform tomcat stop on linux it doesn't look like it processes all the requests and then stops. It just stops right away. On Thu, Jan 29, 2009 at 2:39 AM, Mark Thomas ma...@apache.org wrote: Mohit Anchlia wrote: tomcat 6: Is there a way to gracefully stop tomcat similar to apache

  1   2   >