Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@apache.org Received: (qmail 82732 invoked from network); 23 May 2002 17:30:08 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 23 May 2002 17:30:08 -0000 Received: (qmail 23714 invoked by uid 97); 23 May 2002 17:30:04 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-dev@jakarta.apache.org Received: (qmail 23698 invoked by uid 97); 23 May 2002 17:30:03 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 23685 invoked by uid 98); 23 May 2002 17:30:02 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Sender: glenn@zathras.earthdome.org Message-ID: <3CED2768.82F8327F@voyager.apg.more.net> Date: Thu, 23 May 2002 12:31:20 -0500 From: Glenn Nielsen X-Mailer: Mozilla 4.74 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: [PROPOSAL] Tomcat 4 System.err/System.out logging References: <3CEA4517.2609989@voyager.apg.more.net> <005e01c200e1$179c5c40$6501a8c0@apache.org> <3CEA79CE.5080805@voyager.apg.more.net> <010e01c200ea$ca805330$6501a8c0@apache.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I have taken the org.apache.jasper.util.SystemLogHandler Remy wrote and put it in org.apache.tomcat.util.log.SystemLogHandler. I refactored it so that the PrintStreams and Byte arrays are recycle. Plus implemented a stack so that there can be nested usage. Finally, I implemented it in Tomcat 4 so that any System.out or System.err output generated when handling a request is sent to the appropriate web application context log. Remy, you may want to switch jasper2 over to using this, then remove org.apache.jasper.util.SystemLogHandler. Glenn Remy Maucherat wrote: > > > Remy Maucherat wrote: > > > > How is Ant implemented within Tomcat for doing JSP compiles? > > > > I am concerned about Ant running within the same JVM and having to capture > > the JVM's System.out and System.err. Other output from catalina could get > > intermixed with the Ant output. Also I saw something about synchronizing > > of compiles being required. > > If the compiler is run within the same thread as the request, then the > filtering can be done. > I presume all out of process compilers would suffer from that problem. > > However, I'd like to point out that there's no other choice but to upgrade. > In many situations, the current Jasper 2 generated servlets don't compile to > valid bytecode when using the classic compiler (and you get a VerifyError > when loading the class; this happens esp when using JSTL). The J2SE team > hasn't touched the old compiler code for more than 2 years, and refuse to > fix bugs :-( > > Remy > > -- > To unsubscribe, e-mail: > For additional commands, e-mail: -- ---------------------------------------------------------------------- Glenn Nielsen glenn@more.net | /* Spelin donut madder | MOREnet System Programming | * if iz ina coment. | Missouri Research and Education Network | */ | ---------------------------------------------------------------------- -- To unsubscribe, e-mail: For additional commands, e-mail: