[ http://issues.apache.org/jira/browse/GERONIMO-1369?page=all ]
Alexander Korostov updated GERONIMO-1369: ----------------------------------------- Attachment: test.zip geronimo.log and test application. > javax.ejb.NoSuchObjectLocalException in the > ServletContextListener.contextInitialized() method > ---------------------------------------------------------------------------------------------- > > Key: GERONIMO-1369 > URL: http://issues.apache.org/jira/browse/GERONIMO-1369 > Project: Geronimo > Type: Bug > Components: web > Versions: 1.0 > Environment: Windows XP (SP2), Sun JDK build 1.4.2_08-b03 > Reporter: Alexander Korostov > Attachments: test.zip > > In my application, I lookup and invoke a session bean (via local interface) > in the ServletContextListener.contextInitialized(). Sometimes application > throws a NoSuchObjectLocalException in the > ServletContextListener.contextInitialized(), sometimes all works fine. This > bug is appeared on both Tomcat and Jetty. > I can not reproduce this bug with the 100% probability on the latest > snapshot. Even if I change the application a bit (rename the EJB or WEB > project) this bug can disappear or appear again. > It looks like some synchronization (racing conditions) problem: sometimes > LocalHome of my bean is published before the > ServletContextListener.contextInitialized() invoked, sometimes not. > See the attached geronimo.log and a test application. Note that the > geronimo.log contains both cases: > 1. when the application starts fine > 2. throws an exception. > Sorry for the big size of the test application: I tried to minimize it, but > only in the current state I receive this bug with the 50% probability. > Note that on M5 this bug is 100% reproducible in my environment. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira