|
From: Ken K. <kk...@kk...> - 2003-05-29 02:05:02
|
Juergen,
You're right about the old classes hanging around. I'm back in business.
My relative inexperience is showing. Just paying my dues ;=)
Ken
jürgen höller [werk3AT] wrote:
>Ken,
>
>According to your stack trace, you haven't recompiled the whole Spring source. NoClassDefFoundError and NoSuchMethodError indicate inconsistent classes. You could also have some copies of old Spring classes lying around in the classpath, getting picked up before the current ones.
>
>The new ContextRefreshedEvent version should work, it just specializes ApplicationEvent's source object. On my setup, all tests and all my applications work, and everything should be committed. Please clean your classpath, recompile everything, and see if it works then :-)
>
>Juergen
>
>
>
> -----Ursprüngliche Nachricht-----
> Von: Ken Krebs [mailto:kk...@kk...]
> Gesendet: Mi 28.05.2003 18:59
> An: jürgen höller [werk3AT]
> Cc: 'spring-dev-list'
> Betreff: [Springframework-developer] new context init problem
>
>
>
> 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
>
>
>
>
>
>?????????????????????????????????????????ӆ+?隊X???'???u??x??h}?yꮊ?????W????????i???u??v&????r??i?ܓ????u?????z?????????????????????????????????????*k?x?????ׯzZ)z???X??X??*k?x?????ׯzZ)z???l??.?ǟ???w???i????+-??(??~??{??b????+-?w???k?x?????ׯzZ)
>
>
>
>
|