Hello, I am using wicket-spring-1.2.2 and wicket-spring-annot-1.2.2
to provide for dependency injection in my Wicket app. Everything works
without a hitch in Jetty. However, I just recently started testing the
app in our test servers. The test servers are running Weblogic
9.2, and I am getting a “java.lang.NoClassDefFoundError:
wicket/proxy/ILazyInitProxy” error in one of my pages. The closest thing that I could Google up regarding this were
issues regarding the possibility of an older CGLIB (currently using cglib-nodep-2.1_3.jar)
jar being in that classpath somewhere else (found this on the Hibernate support
forums and no I am not using Hibernate). Unfortunately, the server admin
found neither traces of either a CGLIB jar nor any net.sf.cglib.* classes
anywhere. Other pages are using the injection just fine, so I am unsure
of what is causing this one page to bomb. Regards, -scott (Sorry, it’s a bit long) Stack Trace: WicketMessage: Can't instantiate page using constructor
public com.ugs.it.partnersxpress.pages.MasterData(wicket.PageParameters) throws
com.ugs.it.partnersxpress.PXException and argument installId =
"0001003457" Root cause: java.lang.NoClassDefFoundError: wicket/proxy/ILazyInitProxy at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:620) at java.lang.reflect.Method.invoke(Method.java:585) at
net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) at net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285) at
wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:139) 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:797) at wicket.Component.<init>(Component.java:591) at
wicket.MarkupContainer.<init>(MarkupContainer.java:123) at wicket.Page.<init>(Page.java:208) at wicket.markup.html.WebPage.<init>(WebPage.java:128) at wicket.markup.html.WebPage.<init>(WebPage.java:165) at
com.ugs.it.wicket.WebKeySecuredPage.<init>(WebKeySecuredPage.java:44) at
com.ugs.it.partnersxpress.PartnersXpressPage.<init>(PartnersXpressPage.java:87) at
com.ugs.it.partnersxpress.pages.AbstractInstallInfoPage.<init>(AbstractInstallInfoPage.java:74) at
com.ugs.it.partnersxpress.pages.MasterData.<init>(MasterData.java:48) at
java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:154) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:96) at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885) at wicket.RequestCycle.step(RequestCycle.java:966) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225) at
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127) at
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175) at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3214) at
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983) at
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890) at
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344) at
weblogic.work.ExecuteThread.execute(ExecuteThread.java:209) at weblogic.work.ExecuteThread.run(ExecuteThread.java:181) Complete stack: wicket.WicketRuntimeException: Can't instantiate page using
constructor public
com.ugs.it.partnersxpress.pages.MasterData(wicket.PageParameters) throws
com.ugs.it.partnersxpress.PXException and argument installId =
"0001003457" at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:175) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:96) at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271) at wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885) at wicket.RequestCycle.step(RequestCycle.java:966) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) java.lang.reflect.InvocationTargetException at
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:154) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:96) at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271) at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885) at wicket.RequestCycle.step(RequestCycle.java:966) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:237) at
net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285) at
wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:139) 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:797) at wicket.Component.<init>(Component.java:591) at
wicket.MarkupContainer.<init>(MarkupContainer.java:123) at wicket.Page.<init>(Page.java:208) at wicket.markup.html.WebPage.<init>(WebPage.java:128) at wicket.markup.html.WebPage.<init>(WebPage.java:165) at com.ugs.it.wicket.WebKeySecuredPage.<init>(WebKeySecuredPage.java:44) at
com.ugs.it.partnersxpress.PartnersXpressPage.<init>(PartnersXpressPage.java:87) at
com.ugs.it.partnersxpress.pages.AbstractInstallInfoPage.<init>(AbstractInstallInfoPage.java:74) at com.ugs.it.partnersxpress.pages.MasterData.<init>(MasterData.java:48) at
java.lang.reflect.Constructor.newInstance(Constructor.java:494) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:154) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:96) at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271) at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at
wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at
wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885) at wicket.RequestCycle.step(RequestCycle.java:966) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method) at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at java.lang.reflect.Method.invoke(Method.java:585) at net.sf.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:384) at
net.sf.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:219) at
net.sf.cglib.proxy.Enhancer.createHelper(Enhancer.java:377) at net.sf.cglib.proxy.Enhancer.create(Enhancer.java:285) at
wicket.proxy.LazyInitProxyFactory.createProxy(LazyInitProxyFactory.java:139) 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:797) at wicket.Component.<init>(Component.java:591) at
wicket.MarkupContainer.<init>(MarkupContainer.java:123) at wicket.Page.<init>(Page.java:208) at wicket.markup.html.WebPage.<init>(WebPage.java:128) at wicket.markup.html.WebPage.<init>(WebPage.java:165) at com.ugs.it.wicket.WebKeySecuredPage.<init>(WebKeySecuredPage.java:44) at
com.ugs.it.partnersxpress.PartnersXpressPage.<init>(PartnersXpressPage.java:87) at
com.ugs.it.partnersxpress.pages.AbstractInstallInfoPage.<init>(AbstractInstallInfoPage.java:74) at com.ugs.it.partnersxpress.pages.MasterData.<init>(MasterData.java:48) at
java.lang.reflect.Constructor.newInstance(Constructor.java:494) at
wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:154) at wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:96) at
wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:271) at
wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:286) at wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:205) at
wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57) at
wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:852) at
wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:885) at wicket.RequestCycle.step(RequestCycle.java:966) at wicket.RequestCycle.steps(RequestCycle.java:1040) at wicket.RequestCycle.request(RequestCycle.java:454) at
wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:216) |
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user