Unfortunately, can not help you much here. I followed the exact steps in the tutorial and never got this error.
Regards, - Niranjan On Mon, 2011-07-04 at 13:51 -0300, Bruno Borges wrote: > I'm working on this right now and I found this problem: > > java.lang.IllegalStateException: the application key does not seem to be set > properly or this method is called before WicketServlet is set, which leads > to the wrong behavior > at > org.apache.wicket.protocol.http.WebApplication.getApplicationKey(WebApplication.java:164) > at org.apache.wicket.Application.internalInit(Application.java:1045) > at > org.apache.wicket.protocol.http.WebApplication.internalInit(WebApplication.java:549) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) > at java.lang.reflect.Method.invoke(Method.java:611) > at > org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) > at > org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:685) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) > at > org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) > at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) > at > org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621) > ... > > I followed the same tutorial as you and I'm working with Embedded Derby > datasource. Is there any way to come around this issue or am I missing > something? > > > *Bruno Borges* > www.brunoborges.com.br > +55 21 76727099 > > > > On Mon, Jul 4, 2011 at 2:26 AM, Niranjan Rao <nhr...@gmail.com> wrote: > > > Sorry for the delay in the response folks and thanks for the help. > > > > My gut feeling is also same - differences of classpaths. That's why I > > actually added println statements in the code to see what classpath code > > is seeing. > > > > I am working on isolated test case that I can send to this DL. Should be > > done by tomorrow. > > > > Regards, > > > > Niranjan > > > > On Sun, 2011-07-03 at 10:22 -0700, Igor Vaynberg wrote: > > > yep. thats probably the cause. to elaborate a little more: eclipse > > > does not separate between a test class path and normal class path, > > > while maven does. > > > > > > -igor > > > > > > On Sun, Jul 3, 2011 at 3:01 AM, Harald Wellmann <harald.wellm...@gmx.de> > > wrote: > > > > Without a stacktrace or more details about your setup, I can only > > guess... > > > > Most likely it's not a Wicket problem. > > > > > > > > I'd say your applicationContext.xml is in the wrong place where Maven > > can't > > > > see it, and Eclipse just happens to see it because m2eclipse cannot map > > > > Maven classpaths 1:1 to Eclipse. > > > > > > > > In the blog you cited, this line looks suspicious to me: > > > > > > > > @ContextConfiguration(locations = > > > > {"classpath:WEB-INF/applicationContext.xml"}) > > > > > > > > If you have a default Maven project structure, then WEB-INF is under > > > > src/main/webapp, and this is not on the test classpath for Surefire. > > > > > > > > Regards, > > > > > > > > Harald > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org