|
From: Ken K. <kk...@kk...> - 2003-05-28 17:05:31
|
Juergen,
I just updated my build of Spring with the latest file changes made
since Isabelle updated MySqlMaxValueIncrementer on 26-may.
My petclinic app will no longer initialize properly. There seems to be a
problem with ContextRefreshedEvent. It was recently changed to add a
getApplicationContext convenience method which casts the source object
to an ApplicationContext. The constructor was also changed to used to
initialize the source using an ApplicationContext parameter instead of
an Object param. This seems to be what causes the problem as the
ApplicationEvent constructor doesn't expect to see an
ApplicationContext. The fact that getApplicationContext does this cast
seems to imply that the param class change was inadvertent and should be
changed back to using an Object param.
I made the change in my own local copy , recompiled, and it works.
BTW, the petclinic web.xml no longer specifies a ContextLoader but uses
a listener, i.e.
<listener>
<listener-class>com.interface21.web.context.ContextLoaderListener</listener-class>
</listener>
Ken
The server log shows the following :
blah, blah, blah
2003-05-28 09:56:56 StandardManager[/petclinic_demo_tutorial-1.0]:
Seeding of random number generator has been completed
2003-05-28 09:56:57 StandardContext[/petclinic_demo_tutorial-1.0]:
Exception sending context initialized event to listener instance of
class com.interface21.web.context.ContextLoaderListener
java.lang.NoSuchMethodError:
com.interface21.context.support.ContextRefreshedEvent: method
<init>(Ljava/lang/Object;)V not found
at
com.interface21.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:237)
at
com.interface21.web.context.support.XmlWebApplicationContext.setServletContext(XmlWebApplicationContext.java:121)
at
com.interface21.web.context.ContextLoader.initContext(ContextLoader.java:55)
at
com.interface21.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:20)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3269)
blah,blah,blah
|