Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 35996 invoked from network); 16 Aug 2007 21:52:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Aug 2007 21:52:00 -0000 Received: (qmail 7329 invoked by uid 500); 16 Aug 2007 21:51:55 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 7305 invoked by uid 500); 16 Aug 2007 21:51:55 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 7294 invoked by uid 99); 16 Aug 2007 21:51:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Aug 2007 14:51:55 -0700 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [64.18.1.191] (HELO exprod6og55.obsmtp.com) (64.18.1.191) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 16 Aug 2007 21:51:51 +0000 Received: from source ([66.46.195.131]) by exprod6ob55.postini.com ([64.18.5.12]) with SMTP; Thu, 16 Aug 2007 14:51:28 PDT In-Reply-To: Subject: Re: Differences between JSP on-the-fly compilation and JSP precompilation To: user@geronimo.apache.org X-Mailer: Lotus Notes Release 7.0 August 18, 2005 Message-ID: From: Aman Nanner/MxI Technologies Date: Thu, 16 Aug 2007 17:50:09 -0400 X-MIMETrack: Serialize by Router on Oceanus/MxI Technologies(Release 7.0|August 18, 2005) at 08/16/2007 05:50:12 PM MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org This is an issue that relates to the G543818 Tomcat patch in Geronimo. This patch seems to have implemented instance manager pooling for tags. Geronimo requires this, and in order to enable this for precompilation, the following Java system property needs to be set in the precompilation process: org.apache.jasper.Constants.USE_INSTANCE_MANAGER_FOR_TAGS=true If this property is not set, then precompiled JSPs that contain tags will not work with Geronimo. If this is not documented somewhere already, it probably should. Aman Nanner/MxI Technologies wrote on 08-16-2007 02:40:15 PM: > > I've tried precompiling my JSPs for the first time using the > org.apache.jasper.JspC class. The precompiling works fine, except I get a > runtime error in the JSPs when I try to access my web application: > > ------- > java.lang.UnsupportedOperationException: separate instantiation and > injection is not supported > at > org.apache.geronimo.jasper. > JasperServletContextCustomizer$JasperInstanceManager. > newInstance(JasperServletContextCustomizer.java:84) > at jspservlet.common.security.login.default_jsp._jspService(Unknown > Source) > ------- > > I do not get this error when I do not precompile my JSPs. After a little > investigation, it seems that my precompiled JSPs are compiled differently > then when they are compiled at runtime by the server. The different code > that is created after compilation triggers the above error in the > org.apache.geronimo.jasper.JasperServletContextCustomizer class. > > I'm trying to figure out why these JSPs would be compiled differently in > these scenarios. Anybody have any ideas? > > I'm using Geronimo 2.0. > > Thanks, > Aman > > __________________________________________________________________________________ > * This message is intended only for the use of the individual or > entity to which it is addressed, and may contain information that is > privileged, confidential and exempt from disclosure under applicable > law. Unless you are the addressee (or authorized to receive for the > addressee), you may not use, copy or disclose the message or any > information contained in the message. If you have received this > message in error, please advise the sender by reply e-mail , and > delete the message, or call (collect) 001 613 747 4698. * > __________________________________________________________________________________ * This message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. Unless you are the addressee (or authorized to receive for the addressee), you may not use, copy or disclose the message or any information contained in the message. If you have received this message in error, please advise the sender by reply e-mail , and delete the message, or call (collect) 001 613 747 4698. *