I ran into this too a while back, logged under https://issues.apache.org/jira/browse/WICKET-304
The maven wicket-spring-annot build in 1.2.5 is corrupted, either back to 1.2.4, or build your own 1.2.5 (or like me, move to 1.3 snapshots, if that is feasible) Johan Mats Norén wrote: > Got the same error.... > > On 3/5/07, Matt Welch <[EMAIL PROTECTED]> wrote: >> I'm only just now upgrading to Wicket 1.2.5 and I've run into an issue. I'm >> certain this is an problem on my side and not a bug because other people >> would have run into this and reported by now and I can't find any reports >> like this on the mailing list. >> >> I'm using Maven. I switched my three wicket dependencies (wicket, >> wicket-spring, and wicket-spring-annot) from version 1.2.4 to 1.2.5 and I'm >> now receiving an error. Everything compiles fine in my code, but when I >> start up jetty I see: >> >> -------------- >> java.lang.Error: Unresolved compilation problems: >> The import wicket.injection.IFieldValueFactory >> cannot be resolved >> IFieldValueFactory cannot be resolved to a type >> factory cannot be resolved >> IFieldValueFactory cannot be resolved to a type >> factory cannot be resolved >> >> at >> wicket.spring.injection.annot.AnnotSpringInjector.<init>(AnnotSpringInjector.java:4) >> at >> wicket.spring.injection.annot.SpringComponentInjector.<init>(SpringComponentInjector.java:96) >> at >> wicket.spring.injection.annot.SpringComponentInjector.<init>(SpringComponentInjector.java:68) >> at >> com.ptc.fusion.web.FusionWebApplication.init(FusionWebApplication.java:55) >> at >> wicket.protocol.http.WicketServlet.init(WicketServlet.java:299) >> at >> javax.servlet.GenericServlet.init(GenericServlet.java:241) >> at >> org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:442) >> at >> org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:259) >> at org.mortbay.component.AbstractLifeCycle.start >> (AbstractLifeCycle.java:40) >> at >> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:593) >> at >> org.mortbay.jetty.servlet.Context.startContext(Context.java:139) >> at >> org.mortbay.jetty.webapp.WebAppContext.startContext >> (WebAppContext.java:1191) >> at >> org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:481) >> at >> org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:434) >> at org.mortbay.component.AbstractLifeCycle.start >> (AbstractLifeCycle.java:40) >> at >> org.mortbay.jetty.plugin.Jetty6PluginWebApplication.start(Jetty6PluginWebApplication.java:147) >> at >> org.mortbay.jetty.plugin.AbstractJettyRunMojo$1.changesDetected(AbstractJettyRunMojo.java >> :372) >> at >> org.mortbay.jetty.plugin.util.Scanner.run(Scanner.java:159) >> -------------- >> >> If I remove the following line in my WebAppliciation.init() method, >> everything starts up fine: >> >> addComponentInstantiationListener(new >> SpringComponentInjector(this)); >> >> Of course, when remove that, I can no longer inject Spring beans with the >> @SpringBean annotation. >> >> I'm a little stuck here. If I switch back to 1.2.4, it's all fine again. Any >> ideas? >> >> Matt >> >> >> >> ------------------------------------------------------------------------- >> Take Surveys. Earn Cash. Influence the Future of IT >> Join SourceForge.net's Techsay panel and you'll get the chance to share your >> opinions on IT & business topics through brief surveys-and earn cash >> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >> _______________________________________________ >> Wicket-user mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
