You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Dan12321 <we...@centrum.cz> on 2012/07/04 21:36:29 UTC
wicket and using @SpringBean annotation
Hi, could you help me, what I need for using @SpringBean annnotation?
In pom.xml I have got:
And in WicketApplication class:
But I cannot run the application:
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] org/springframework/web/context/ConfigurableWebApplicationContext
org.springframework.web.context.ConfigurableWebApplicationContext
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NoClassDefFoundError:
org/springframework/web/context/ConfigurableWebApplicationContext
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getConstructor0(Class.java:2714)
at java.lang.Class.newInstance0(Class.java:343)
What else I need to do?
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-and-using-SpringBean-annotation-tp4650375.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket and using @SpringBean annotation
Posted by Dan12321 <we...@centrum.cz>.
Thanks.
I had not spring-web in classpath, so I add it into pom.xml and now it
works.
Thanks.
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-and-using-SpringBean-annotation-tp4650375p4650377.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: wicket and using @SpringBean annotation
Posted by Martin Grigorov <mg...@apache.org>.
On Wed, Jul 4, 2012 at 9:36 PM, Dan12321 <we...@centrum.cz> wrote:
> Hi, could you help me, what I need for using @SpringBean annnotation?
>
> In pom.xml I have got:
>
>
> And in WicketApplication class:
>
>
>
> But I cannot run the application:
>
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] org/springframework/web/context/ConfigurableWebApplicationContext
> org.springframework.web.context.ConfigurableWebApplicationContext
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NoClassDefFoundError:
> org/springframework/web/context/ConfigurableWebApplicationContext
> at java.lang.Class.getDeclaredConstructors0(Native Method)
> at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
> at java.lang.Class.getConstructor0(Class.java:2714)
> at java.lang.Class.newInstance0(Class.java:343)
>
>
Do you have org.springframework:spring-web in the classpath ?
If you use Maven then it will bring it for you.
>
> What else I need to do?
> Thanks.
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/wicket-and-using-SpringBean-annotation-tp4650375.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org