geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan (JIRA)" <>
Subject [jira] Created: (GERONIMO-5759) New Thread is used for context initialization in Tomcat 7.0.6
Date Tue, 18 Jan 2011 04:02:43 GMT
New Thread is used for context initialization in Tomcat 7.0.6

                 Key: GERONIMO-5759
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: Tomcat
    Affects Versions: 3.0
            Reporter: Ivan
            Assignee: Ivan

2011/1/18 Kevan Miller <>

    On Jan 17, 2011, at 5:30 AM, wrote:

    > Author: xuhaihong
    > Date: Mon Jan 17 10:30:34 2011
    > New Revision: 1059851
    > URL:
    > Log:
    > use tomcat

    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(
           at org.apache.geronimo.openwebbeans.GeronimoSingletonService.get(
           at org.apache.geronimo.openwebbeans.GeronimoSingletonService.get(
           at org.apache.webbeans.config.WebBeansFinder.getSingletonInstance(
           at org.apache.webbeans.config.WebBeansContext.getInstance(
           at org.apache.geronimo.openwebbeans.WebBeansConfigurationListener.contextInitialized(
           at org.apache.catalina.core.StandardContext.listenerStart(
           at org.apache.catalina.core.StandardContext$
           at org.apache.catalina.core.StandardContext$
           at java.util.concurrent.FutureTask$Sync.innerRun(
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
           at java.util.concurrent.ThreadPoolExecutor$

    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

    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.


This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message