RE: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread Looijmans, Mike
I stand corrected. What I do recall is that in the 1999's I was forced to build an HTTP/1.1 server from scratch (in objective-C) and, when faced with the question "at what point in reading the URI should I give up and decide this is not a HTTP request?", I found 4k to be the 'correct' answer. Sinc

RE: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Peter Chen
The memory given to the JVM is $JAVA_OPTS -Xms512m -Xmx1024m The memory of the Solaris system is: Memory size: 4096 Megabytes The result of executing command ulimit -a is as follows: -bash-3.00$ ulimit -a core file size(blocks, -c) unlimited data seg size (kbytes, -d) unlimited fil

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread vramanaj
Still getting the same error after changing Data Source name to 'jdbc/DefaultDS'. Added resource link in webapp.xml. Error : Error During Lookup Name jdbc is not bound in this Context Are there any extra customizations required for Josso+Tomcat6?

Re: Char Encoding text streams on Tomcat 5.5 and Linux

2009-11-30 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, That applies also to webapps which read posted input, unless you are careful. No! The default encoding for servlets is ISO-8859-1 unless the client specifies the encoding (which many do not). The value for file.

Re: Preventing httpd from accessing WEB-INF contents

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonathan, On 11/25/2009 11:13 AM, Jonathan Mast wrote: > Can someone please provide the magical httpd config-cantation that will > block httpd from accessing anything in WEB-INF directories? Order deny,allow Deny from all > I need some

Re: Use java 1.5 apps with tomcat 6

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, On 11/26/2009 5:47 AM, Jimmy Spam wrote: > I'm using opensuse official package. Maybe I should try the official > tomcat build and test it. > > The programmers says that they need jre 1.5 since his apps doesn't have > tested o

Re: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/30/2009 5:37 AM, André Warnier wrote: > Peter Chen wrote: >> Hi, >> >> >> >> I meet one problem of OutOfMemoryError when I am running the >> Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is >> 1.5.0.12, and following is

Re: Tomcat does not respect the HTTP RFCs !

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/29/2009 2:00 PM, Warnier wrote: > But is is interesting to see how in the end, a document such as RFC2616 > which is meant to "specify" a relatively strict set of rules, and of > which I am sure the phrasing is examined carefully and repe

Re: Tomcat does not respect the HTTP RFCs !

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 11/28/2009 8:03 AM, Pid wrote: > On 28/11/2009 12:56, André Warnier wrote: >> ;-) >> I just wanted, once, to use a subject line with capitals and an >> exclamation mark. >> >> It seems however that in this particular case, neither Tomcat nor A

Re: Char Encoding text streams on Tomcat 5.5 and Linux

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/27/2009 11:05 AM, André Warnier wrote: > A bit more detail : in java, if you open a text input stream without > specifying in which encoding it is, it will default to the "platform" > encoding, which in this case is the locale setting of

Re: Char Encoding text streams on Tomcat 5.5 and Linux

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Juha, On 11/28/2009 12:31 PM, Juha Laiho wrote: > Dan Bagley wrote: >> In the failing environment I have the following env settings >> >> LANG=en_GB.UTF-8 >> >> the successful env is set to >> >> LANG=en_UK > > I'm pretty certain that is the reason f

Re: Easy Way to Upgrade Tomcat Versions?

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tobias, On 11/30/2009 1:30 PM, Tobias Crefeld wrote: > Am Mon, 30 Nov 2009 08:02:41 -0800 (PST) > schrieb Thomas Moorer : > >> I have been thinking about upgrading my Tomcat 6.0.16 >> instance to the latest 6.0.20. I have been thinking about the best

Re: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike, On 11/30/2009 3:10 AM, Looijmans, Mike wrote: > The RFC specs a maximum URL size of 4k. That should be enough for everybody. ...along with 640k of regular memory. I'll let you read André's and Chuck's harangues about your dubious recollection

Re: Basic and Form Authentication

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Anthony, On 11/30/2009 4:53 AM, Anthony Jay wrote: > Is is possible to have an application that serves content protected by > BASIC and FORM based auth? As Mark points out, the servlet spec says "not in the same webapp." Tomcat implements the ser

Re: Importing CERTIFICATE into Java Keystore

2009-11-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, On 11/20/2009 3:05 AM, Stephen . wrote: > I got the LDAP connection working on my IDM. > > "Test Connection Succeeded" Glad to hear it. > However, when I try to create a new User on the LDAP Resource, I get the > following error : > > ja

Re: Easy Way to Upgrade Tomcat Versions?

2009-11-30 Thread Tobias Crefeld
Am Mon, 30 Nov 2009 08:02:41 -0800 (PST) schrieb Thomas Moorer : > I have been thinking about upgrading my Tomcat 6.0.16 > instance to the latest 6.0.20. I have been thinking about the best way > to do that. I have modified several config and shell files and suppose > I could just copy those to th

RE: Easy Way to Upgrade Tomcat Versions?

2009-11-30 Thread George Sexton
> -Original Message- > From: Pid [mailto:p...@pidster.com] > Sent: Monday, November 30, 2009 10:17 AM > To: users@tomcat.apache.org > Subject: Re: Easy Way to Upgrade Tomcat Versions? > > On 30/11/2009 16:02, Thomas Moorer wrote: > > Hi All, > > > > I have been thinking about upgrading m

Re: Easy Way to Upgrade Tomcat Versions?

2009-11-30 Thread Pid
On 30/11/2009 16:02, Thomas Moorer wrote: Hi All, I have been thinking about upgrading my Tomcat 6.0.16 instance to the latest 6.0.20. I have been thinking about the best way to do that. I have modified several config and shell files and suppose I could just copy those to the 6.0.20 instance, bu

Re: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread André Warnier
Caldarale, Charles R wrote: From: Looijmans, Mike [mailto:mike.looijm...@oce.com] Subject: RE: AJP with HTTPD - Buffer Size on long URLs Looijmans, Mike wrote: The RFC specs a maximum URL size of 4k. Where precisely did you find that ? RFC2068 (old HTTP/1.1 spec) Citing an obsoleted RFC is

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread Pid
On 30/11/2009 13:46, vramanaj wrote: Hi, I am facing problem with configuring JNDI DataSources for Josso project in Tomcat 6. Getting the following errors in tomcat log when i am trying to access the application. Defined resource in conf/Catalina/localhost/webapp.xml. And res-reference in the a

Easy Way to Upgrade Tomcat Versions?

2009-11-30 Thread Thomas Moorer
Hi All, I have been thinking about upgrading my Tomcat 6.0.16 instance to the latest 6.0.20. I have been thinking about the best way to do that. I have modified several config and shell files and suppose I could just copy those to the 6.0.20 instance, but then I began to wonder if I could just upd

Re: Newbie Question

2009-11-30 Thread Chinmoy Chakraborty
Thanks a lot for your reply guyz...I will give it a shot... Thanks, Chinmoy On Fri, Nov 27, 2009 at 5:41 PM, Mark Thomas wrote: > Chinmoy Chakraborty wrote: > > Hi All, > > > > I am trying to understand basic architecture of tomcat server and also > > started to look into the code. What shou

RE: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread Caldarale, Charles R
> From: Looijmans, Mike [mailto:mike.looijm...@oce.com] > Subject: RE: AJP with HTTPD - Buffer Size on long URLs > > > Looijmans, Mike wrote: > > > The RFC specs a maximum URL size of 4k. > > > > Where precisely did you find that ? > > RFC2068 (old HTTP/1.1 spec) Citing an obsoleted RFC is a bit

Re: FarmWarDeployer Tomcat 6.0.18 on REL

2009-11-30 Thread samk
See Thread at: http://www.techienuggets.com/Detail?tx=83985 Posted on behalf of a User I have the same issue, seems there is something wrong with this object, and you do have an error message in your logs, it's "SEVERE: FarmWarDeployer can only work as host cluster subelement!". According to A

Re: How to access JNDI resources on Tomcat level

2009-11-30 Thread vramanaj
Hi, I am facing problem with configuring JNDI DataSources for Josso project in Tomcat 6. Getting the following errors in tomcat log when i am trying to access the application. Defined resource in conf/Catalina/localhost/webapp.xml. And res-reference in the application's web.xml. Nov 30, 2009 7:4

Re: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Rainer Frey (Inxmail GmbH)
On Monday 30 November 2009 10:57:04 Peter Chen wrote: > Hi, > > I meet one problem of OutOfMemoryError when I am running the > Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is > 1.5.0.12, and following is the detail of stack information. > > Nov 29, 2009 12:41:16 AM > > org.apache.t

Re: Basic and Form Authentication

2009-11-30 Thread Mark Thomas
Anthony Jay wrote: > Hi, > Is is possible to have an application that serves content protected by > BASIC and FORM based auth? > i.e. > JSP protected by FORM > Servlets that process XML use http BASIC? The Servlet spec does not support this. There is a maximum of one login method allowed per w

RE: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Looijmans, Mike
> > SEVERE: Caught exception (java.lang.OutOfMemoryError: > unable to create > > new native thread) executing > > org.apache.tomcat.util.net.leaderfollowerworkerthr...@958b36, > > > ... > > Has anyone met this problem? Please give me some advice, thanks in > > advance. > > > Well, it seem t

Re: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Peter Crowther
2009/11/30 Peter Chen : > I meet one problem of OutOfMemoryError when I am running the > Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is > 1.5.0.12, and following is the detail of stack information. > > SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create > new na

Re: How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread André Warnier
Peter Chen wrote: Hi, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is 1.5.0.12, and following is the detail of stack information. ... SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to create new

Re: Basic and Form Authentication

2009-11-30 Thread André Warnier
Anthony Jay wrote: Hi, Is is possible to have an application that serves content protected by BASIC and FORM based auth? i.e. JSP protected by FORM Servlets that process XML use http BASIC? There is a rather extensive description available here : http://tomcat.apache.org/tomcat-6.0-doc/real

How to solve the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Peter Chen
Hi, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is 1.5.0.12, and following is the detail of stack information. Nov 29, 2009 12:41:16 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Cau

Re: Call for help about the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread André Warnier
Pid wrote: On 30/11/2009 09:39, Peter Chen wrote: Hi everyone, ... Please stop replying to Andre's message in the "Tomcat 5.17 crashes too often" thread and just deleting the subject line & contents of the message. You may well be completely ignored after this. Peter, on a list server s

Basic and Form Authentication

2009-11-30 Thread Anthony Jay
Hi, Is is possible to have an application that serves content protected by BASIC and FORM based auth? i.e. JSP protected by FORM Servlets that process XML use http BASIC? I could deploy seperate apps for each type but I would then lose access to application specific information e.g. Singletons

Re: Call for help about the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Pid
On 30/11/2009 09:39, Peter Chen wrote: Hi everyone, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is 1.5.0.12, and following is the detail of stack information. Nov 29, 2009 12:41:16 AM org.apache.tomcat.util.threads.T

Call for help about the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Peter Chen
Hi everyone, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26. The OS is Solaris 10 sparc, and the JVM version is 1.5.0.12, and following is the detail of stack information. Nov 29, 2009 12:41:16 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Ca

Re: Call for help about the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Pid
On 30/11/2009 08:04, Peter Chen wrote: Hello everyone, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26, the following is the detail of stack information. Nov 29, 2009 12:41:16 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (

RE: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread Looijmans, Mike
> Looijmans, Mike wrote: > > The RFC specs a maximum URL size of 4k. > > Where precisely did you find that ? RFC2068 (old HTTP/1.1 spec) This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt

Re: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread André Warnier
Looijmans, Mike wrote: The RFC specs a maximum URL size of 4k. Where precisely did you find that ? As per my own memory, it is not as clear as that. But in various places, it warns against "too long" URLs, not so much because of the httpd server itself, but because intermediate agents may hav

RE: AJP with HTTPD - Buffer Size on long URLs

2009-11-30 Thread Looijmans, Mike
The RFC specs a maximum URL size of 4k. That should be enough for everybody. Note that you can mix and match as required: Use the URL portion of your request to identify the target of the request, and put the additional data in the POST body. > -Original Message- > From: André Warnier [

Call for help about the problem "java.lang.OutOfMemoryError: unable to create new native thread" in Tomcat5.5.26

2009-11-30 Thread Peter Chen
Hello everyone, I meet one problem of OutOfMemoryError when I am running the Tomcat5.5.26, the following is the detail of stack information. Nov 29, 2009 12:41:16 AM org.apache.tomcat.util.threads.ThreadPool$ControlRunnable run SEVERE: Caught exception (java.lang.OutOfMemoryError: unable to cr