Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
3.4.0
-
None
-
None
Description
In the startup method, the DefaultKernel implementation must call setState(STARTING) just after verifying if the kernel is startable. Otherwise, kernel event listeners will never be aware that the kernel is starting.
The following file must be updated: trunk\runtime\merlin\impl\src\java\org\apache\avalon\merlin\impl\DefaultKernel.java
The following patch must be applied:
// -----BEGIN PATCH
Index: DefaultKernel.java
===================================================================
— DefaultKernel.java (revision 36413)
+++ DefaultKernel.java (working copy)
@@ -172,6 +172,9 @@
synchronized( m_state )
{
if( !isStartable() ) return;
+
+ setState( STARTING );
+
if( getLogger().isDebugEnabled() )
{
getLogger().debug( "application assembly" );
// -----END PATCH