Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 5178 invoked from network); 21 Jan 2011 02:10:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 02:10:08 -0000 Received: (qmail 4153 invoked by uid 500); 21 Jan 2011 02:10:08 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 4085 invoked by uid 500); 21 Jan 2011 02:10:07 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 4078 invoked by uid 99); 21 Jan 2011 02:10:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 02:10:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 02:10:05 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p0L29hAd002270 for ; Fri, 21 Jan 2011 02:09:43 GMT Message-ID: <20352339.96431295575783221.JavaMail.jira@thor> Date: Thu, 20 Jan 2011 21:09:43 -0500 (EST) From: "Ivan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Commented: (GERONIMO-5759) New Thread is used for context initialization in Tomcat 7.0.6 In-Reply-To: <19488825.27551295323363203.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-5759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12984532#action_12984532 ] Ivan commented on GERONIMO-5759: -------------------------------- Thanks for the comments. Commit the changes to trunk at rev.1061595. From my eyes, an empty stack should not be an issue, will double check it whether I need to refresh my knowledge. > New Thread is used for context initialization in Tomcat 7.0.6 > ------------------------------------------------------------- > > Key: GERONIMO-5759 > URL: https://issues.apache.org/jira/browse/GERONIMO-5759 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: Tomcat > Affects Versions: 3.0 > Reporter: Ivan > Assignee: Ivan > Attachments: GERONIMO-5759.patch > > > 2011/1/18 Kevan Miller > On Jan 17, 2011, at 5:30 AM, xuhaihong@apache.org wrote: > > Author: xuhaihong > > Date: Mon Jan 17 10:30:34 2011 > > New Revision: 1059851 > > > > URL: http://svn.apache.org/viewvc?rev=1059851&view=rev > > Log: > > use tomcat 7.0.6.0-SNAPSHOT > Tomcat 7.0.6 is going to require some work to integrate properly. At the moment, we're going to see errors like the following: > 2011-01-17 17:35:34,915 ERROR [[/jsp21]] Exception sending context initialized event to listener instance of class org.apache.geronimo.openwebbeans.WebBeansConfigurationListener > java.lang.IllegalStateException: On a thread without an initialized context > at org.apache.geronimo.openwebbeans.GeronimoSingletonService.getContext(GeronimoSingletonService.java:62) > at org.apache.geronimo.openwebbeans.GeronimoSingletonService.get(GeronimoSingletonService.java:56) > at org.apache.geronimo.openwebbeans.GeronimoSingletonService.get(GeronimoSingletonService.java:31) > at org.apache.webbeans.config.WebBeansFinder.getSingletonInstance(WebBeansFinder.java:52) > at org.apache.webbeans.config.WebBeansContext.getInstance(WebBeansContext.java:114) > at org.apache.geronimo.openwebbeans.WebBeansConfigurationListener.contextInitialized(WebBeansConfigurationListener.java:78) > at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4521) > at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5004) > at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:4999) > at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:680) > Tomcat's new ClassLoader MemoryLeak avoidance code is using a temporary thread to configure/initialize the event listeners for the Context. So, things like JNDI and OpenWebBeans aren't going to work. > There isn't a switch that can control this Tomcat behavior. Nor do I see anyway to hook into the Tomcat processing to hook into this processing. Our best hope would be to add some additional integration code in our externals code and work on pushing this into Tomcat. > --kevan -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.