I just started playing with wicket-spring and wicket-spring-annot to move my spring code away from my Application subclass.
I'm using the SpringWebApplicationFactory to load my application out of my spring config, and my Application extends AnnotSpringWebApplication.
I have a page thats got several @SpringBeans in them and that seems to be constructed and injected fine, but I get the following exception thrown when I construct a Link subclass in the constructor of my page:
java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer
at wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:133)
at wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue
(AnnotProxyFieldValueFactory.java:97)
at wicket.injection.Injector.inject(Injector.java:110)
at wicket.injection.ConfigurableInjector.inject(ConfigurableInjector.java:24)
at wicket.injection.ComponentInjector.onInstantiation
(ComponentInjector.java:54)
at wicket.Application.notifyComponentInstantiationListeners(Application.java:592)
at wicket.Component.<init>(Component.java:537)
at wicket.MarkupContainer.<init>(
MarkupContainer.java:110)
at wicket.markup.html.WebMarkupContainer.<init>(WebMarkupContainer.java:52)
at wicket.markup.html.link.Link.<init>(Link.java:107)
at com.theoryinpractice.timetrackr.pages.EmailReportLink
.<init>(EmailReportLink.java:47)
at com.theoryinpractice.timetrackr.pages.Index.<init>(Index.java:71)
One would assume that since I already have wicket proxy objects for the injected beans on the Page, that cglib has been initialized once before, so why would this be cropping up now?
None of the other components added to the page prior to this EmailReportLink included annotations.
Hopefully one of the wicket gods will know whats going on here and can fix it up...
Cheers,
Mark
--
i like my video games - mamma said they are gonna melt my brains
i like my video games - i don't care what daddy said; they're my reality
- henning pauly