Wicket is built against Spring 3.0.x. Maybe this method has been added in 3.x or its signature has changed since 2.x
On Tue, Sep 27, 2011 at 12:54 PM, boy_oh_boy <muralih...@gmail.com> wrote: > Thanks. That fixed it. The jetty and the application starts up. But when I > try to access the first page, it fails at: > > public LoginService(){ > Injector.get().inject(this); --> failing line > } > > With the following stackTrace: > > Root cause: > > java.lang.NoSuchMethodError: > org.springframework.beans.factory.config.BeanDefinition.isPrimary()Z > at > org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getBeanNameOfClass(AnnotProxyFieldValueFactory.java:232) > at > org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getBeanName(AnnotProxyFieldValueFactory.java:164) > at > org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue(AnnotProxyFieldValueFactory.java:112) > at org.apache.wicket.injection.Injector.inject(Injector.java:111) > at > org.apache.wicket.spring.injection.annot.SpringComponentInjector.inject(SpringComponentInjector.java:124) > at test.LoginService.<init>(LoginService.java:22) > > > I have checked the mvn dependency:tree to be sure that it is not referring > to different versions of spring framework. From the dependency tree, I see > the version 2.5.6 being referred and no other versions. What could be the > problem? > > Thanks. > > On Tue, Sep 27, 2011 at 11:40 AM, pointbreak+wicketstuff [via Apache Wicket] > <ml-node+s1842946n3846753...@n4.nabble.com> wrote: > >> Don't use wicket-spring-annot, just wicket-spring. >> >> On Tuesday, September 27, 2011 3:15 AM, "boy_oh_boy" >> <[hidden email] <http://user/SendEmail.jtp?type=node&node=3846753&i=0>> >> wrote: >> >> > Hello, >> > >> > Very new to Wicket. Trying to integrate an existing Spring application >> > with >> > the latest Wicket release. >> > >> > Versions: >> > >> > Wicket - 1.5.0 >> > SpringFramework - 2.5.6 >> > >> > I am following the annotations based approach mentioned here - >> > https://cwiki.apache.org/WICKET/spring.html. >> > >> > Now, which version of wicket-spring-annot do I use? In the maven repo, >> > the >> > latest version is 1.3.7. So, do I need to use 1.3.7 version of >> > "wicket-spring" jar too? When I use 1.3.7 for both wicket-spring and >> > wicket-spring-annot, I get this error when I start up jetty server: >> > >> > :2432011-09-27 11:12:58.635::WARN: failed BCWicketFilter >> > java.lang.NoSuchMethodError: >> > org.apache.wicket.MetaDataKey.<init>(Ljava/lang/Class;)V >> > at >> > >> org.apache.wicket.spring.injection.annot.SpringComponentInjector$1.<init>(SpringComponentInjector.java:58) >> >> > at >> > >> org.apache.wicket.spring.injection.annot.SpringComponentInjector.<clinit>(SpringComponentInjector.java:55) >> >> > at >> > >> com.inceptor.bcWicket.app.BCWicketApplication.init(BCWicketApplication.java:19) >> >> > at org.apache.wicket.Application.initApplication(Application.java:805) >> > at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:346) >> > at >> org.apache.wicket.protocol.http.WicketFilter.init(WicketFilter.java:286) >> > at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99) >> > at >> org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40) >> > at >> > >> org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:570) >> >> > 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) >> > >> > >> > >> > -- >> > View this message in context: >> > >> http://apache-wicket.1842946.n4.nabble.com/wicket-spring-version-tp3846702p3846702.html >> > Sent from the Users forum mailing list archive at Nabble.com. >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [hidden >> > email]<http://user/SendEmail.jtp?type=node&node=3846753&i=1> >> > For additional commands, e-mail: [hidden >> > email]<http://user/SendEmail.jtp?type=node&node=3846753&i=2> >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3846753&i=3> >> For additional commands, e-mail: [hidden >> email]<http://user/SendEmail.jtp?type=node&node=3846753&i=4> >> >> >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://apache-wicket.1842946.n4.nabble.com/wicket-spring-version-tp3846702p3846753.html >> To unsubscribe from wicket-spring version, click >> here<http://apache-wicket.1842946.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=3846702&code=bXVyYWxpaGVyZUBnbWFpbC5jb218Mzg0NjcwMnwxMDcyNTUzNzAz>. >> >> > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/wicket-spring-version-tp3846702p3846782.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org