IPv6 question

2011-10-31 Thread Issac Goldstand
Hi Tomcat community I'm planning to give a short blurb on IPv6 support in Tomcat at ApacheCon next week, but as I'm not a heavy Tomcat user, can someone go over the following information and correct me if I've mis-stated something? * IP binding is handled by the underlying JRE or via APR if

Re: IPv6 question

2011-10-31 Thread André Warnier
Issac Goldstand wrote: Hi Tomcat community I'm planning to give a short blurb on IPv6 support in Tomcat at ApacheCon next week, but as I'm not a heavy Tomcat user, can someone go over the following information and correct me if I've mis-stated something? * IP binding is handled by the

BufferOverflowException in AjpNioProcessor

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I've only seen it once so far since switching-over to the NIO AJP connector a few months back, but I figured I'd report it since I saw it. I'll see if I can reproduce it if possible. I'm using a standard, vanilla synchronized request.

Re: BufferOverflowException in AjpNioProcessor

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, On 10/31/2011 9:53 AM, Christopher Schultz wrote: I've only seen it once so far since switching-over to the NIO AJP connector a few months back, but I figured I'd report it since I saw it. I'm sure this was a fluke. After playing with the

RE: IPv6 question

2011-10-31 Thread Jeffrey Janner
-Original Message- From: Issac Goldstand [mailto:mar...@beamartyr.net] Sent: Monday, October 31, 2011 6:40 AM To: users@tomcat.apache.org Subject: IPv6 question Hi Tomcat community I'm planning to give a short blurb on IPv6 support in Tomcat at ApacheCon next week, but as I'm

Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Léa Massiot
Hello, Thank you for reading my post. I am presently programming my Webapps inside Eclipse. I would like to automate the compiling and building of my source code. I need to know which javac, java (and maybe jar) commands I should run from a console to generate everything that is needed for my

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Jürgen Link
Hi Léa, although it's pretty straight-forward to compile and package all the stuff you need inside your web application, I'd rather recommend looking into maven. It's an excellent project management tool (at least from my point of view) which supports exactly what you asked for. By default, it

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Tim Watts
On Mon, 2011-10-31 at 08:17 -0700, Léa Massiot wrote: Hello, Thank you for reading my post. I am presently programming my Webapps inside Eclipse. I would like to automate the compiling and building of my source code. I need to know which javac, java (and maybe jar) commands I should run

Filter by HTTP_REFERER

2011-10-31 Thread Ricardo Bayley
Hi folks, I am trying to filter access to my webapp by the HTTP_REFERER I thought this could be achieved with the Valve Componenent using the Remote Host Filter such as Valve className=org.apache.catalina.valves.RemoteHostValve allow= sub.mydomain.com/ Valve

Re: BufferOverflowException in AjpNioProcessor

2011-10-31 Thread Konstantin Kolinko
2011/10/31 Christopher Schultz ch...@christopherschultz.net: PS Is there anything to be done about connector state after an OOME? Chuck contends that OOMEs aren't certain death for an application and that recovery is possible. The problem is that with OOME you do not know what exactly

Re: Filter by HTTP_REFERER

2011-10-31 Thread Konstantin Kolinko
2011/10/31 Ricardo Bayley ricardo.bay...@gmail.com: Hi folks, I am trying to filter access to my webapp by the HTTP_REFERER I thought this could be achieved with the Valve Componenent using the Remote Host Filter such as No. This filter has different purpose (you have read the docs?). You

Re: Filter by HTTP_REFERER

2011-10-31 Thread André Warnier
Ricardo Bayley wrote: Hi folks, I am trying to filter access to my webapp by the HTTP_REFERER I thought this could be achieved with the Valve Componenent using the Remote Host Filter such as Valve className=org.apache.catalina.valves.RemoteHostValve allow= sub.mydomain.com/ Valve

Re: Filter by HTTP_REFERER

2011-10-31 Thread Ricardo Bayley
You are right. What I intend to do is prevent hot linking. My webapp, is working as a REST webservice. So I would like to have tomcat reply only when requests come from specific sites. thanks 2011/10/31 André Warnier a...@ice-sa.com Ricardo Bayley wrote: Hi folks, I am trying to filter

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Léa Massiot
@Jürgen : Thank you for advising me to use Maven. @Tim : Thank you for advising me to use Ant. I have been following the following tutorial to get introduced to Ant: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html I think it's a good one. Now, I am going to have to do something

Re: BufferOverflowException in AjpNioProcessor

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 10/31/2011 12:19 PM, Konstantin Kolinko wrote: 2011/10/31 Christopher Schultz ch...@christopherschultz.net: PS Is there anything to be done about connector state after an OOME? Chuck contends that OOMEs aren't certain death for an

Re: Filter by HTTP_REFERER

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Richardo, On 10/31/2011 12:33 PM, Ricardo Bayley wrote: You are right. What I intend to do is prevent hot linking. We get what you are trying to do: you'll just have to write your own code to do it. Tomcat ships with a Filter called RequestFilter

403

2011-10-31 Thread Christopher Gross
I'm running Tomcat 5.5.26, and I have a few different setups on my box for a few different projects. I don't have the same password setup, and if I'm not thinking then I'll block myself out of an application. Then I'm stuck with a 403 error, and resetting Tomcat doesn't clear it. My only option

Re: Rollback in Tomcat7 under parallel deployment

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mark, On 10/28/2011 5:20 PM, Mark Thomas wrote: And the code says...? Knowing that you'd say that, I had started looking for the code. Unfortunately it's hard to search through 1200 source files for the place where a Context is instantiated using

Re: Rollback in Tomcat7 under parallel deployment

2011-10-31 Thread Konstantin Kolinko
2011/11/1 Christopher Schultz ch...@christopherschultz.net: I'm having trouble locating the code that auto-undeploys old versions when all sessions have expired. There is no such code in Tomcat. You will see in the manager app that the counter of sessions is zero, but there is no such feature

Re: Rollback in Tomcat7 under parallel deployment

2011-10-31 Thread Mark Thomas
On 31/10/2011 20:22, Konstantin Kolinko wrote: 2011/11/1 Christopher Schultz ch...@christopherschultz.net: I'm having trouble locating the code that auto-undeploys old versions when all sessions have expired. There is no such code in Tomcat. You will see in the manager app that the

RE: 403

2011-10-31 Thread Caldarale, Charles R
From: Christopher Gross [mailto:cogr...@gmail.com] Subject: 403 if I'm not thinking then I'll block myself out of an application. I can't think of anything in Tomcat that does a lockout of userids. So either it's your own webapp that's doing it, or the browser. You might try forcing a

Re: [OT] Static files not being displayed

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 10/29/2011 4:35 AM, André Warnier wrote: Oh. It's the name Patriots which confused me. I thought so -- otherwise you were making a pretty good international joke (which was funny to me until I thought hmm... maybe he doesn't know). The

Re: 403

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 10/31/2011 3:50 PM, Christopher Gross wrote: I'm running Tomcat 5.5.26, and I have a few different setups on my box for a few different projects. I don't have the same password setup, and if I'm not thinking then I'll block myself out

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Léa, On 10/31/2011 12:55 PM, Léa Massiot wrote: @Jürgen : Thank you for advising me to use Maven. @Tim : Thank you for advising me to use Ant. I have been following the following tutorial to get introduced to Ant:

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Anantaneni Harish
Any thoughts about this? Thanks and Regards, Harish -Original Message- From: Anantaneni Harish Sent: Monday, October 31, 2011 11:23 AM To: Tomcat Users List Subject: RE: cannot read complete HTTP request body. It reads only 8192 characters String keyValuePair = null; String[]

Re: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Igor Cicimov
You never said what is the difference between your environment and the customer one or I missed that info. Same OS? Same Java version? On Tue, Nov 1, 2011 at 12:42 PM, Anantaneni Harish anantaneni.har...@vertexsoft.com wrote: Any thoughts about this? Thanks and Regards, Harish

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Anantaneni Harish
Both environments have the following softwares. OS NameRed Hat Enterprise Linux Version release 5.3 (Tikanga) JavaNameJava(TM) SE Runtime Environment (build 1.6.0_13-b03) Version 1.6.0_13 Tomcat Nameapache-tomcat Version 5.5.28 Thanks and Regards,

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Igor Cicimov
And same kernel network settings? On Nov 1, 2011 12:50 PM, Anantaneni Harish anantaneni.har...@vertexsoft.com wrote: Both environments have the following softwares. OS NameRed Hat Enterprise Linux Version release 5.3 (Tikanga) JavaNameJava(TM) SE Runtime Environment

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Anantaneni Harish
Dont know :(, must be different. Thanks and Regards, Harish -Original Message- From: Igor Cicimov [mailto:icici...@gmail.com] Sent: Tuesday, November 01, 2011 10:57 AM To: Tomcat Users List Subject: RE: cannot read complete HTTP request body. It reads only 8192 characters And same

Re: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Igor Cicimov
Have you done the test in your environment simulating the customer one as close as possible? Maybe taking in count their network topology (routers, switches, firewalls), hundreds (possible thousands) of requests per second, network latency, tcp timeout kernel settings, buffer queue etc etc, the

RE: cannot read complete HTTP request body. It reads only 8192 characters

2011-10-31 Thread Tim Watts
The answer likely lies somewhere in the version and/or configuration of AJP. You never shared the details of these and so no further useful comment is possible. See Rainer Jung's response on 10/27. On Mon, 2011-10-31 at 18:42 -0700, Anantaneni Harish wrote: Any thoughts about this? Thanks

Re: Compile, build and prepare Webapp for Tomcat in command line

2011-10-31 Thread Terence M. Bandoian
On 1:59 PM, Léa Massiot wrote: @Jürgen : Thank you for advising me to use Maven. @Tim : Thank you for advising me to use Ant. I have been following the following tutorial to get introduced to Ant: http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html I think it's a good one. Now, I am