Hi, Maybe you use a third party library that is compiled against Wicket 1.5.x. Additionally it seems there is a hard reference to an instance of IHeaderResponse and it is being serialized with the page. The problem is during serialization, not deserialization. When you find it make sure that you remove this hard ref - there is no need of it.
On Tue, Apr 9, 2013 at 11:38 PM, datazuul <[email protected]> wrote: > After migrating my webapp from 1.5.7 to 6.6.0 > (thus changing all > org.apache.wicket.markup.html.IHeaderResponse > to > org.apache.wicket.markup.head.IHeaderResponse) > > I fire up my webapp with embedded Jetty and get an > > java.lang.NoClassDefFoundError: > org/apache/wicket/markup/html/IHeaderResponse > at java.lang.Class.getDeclaredMethods0(Native Method) > at java.lang.Class.privateGetDeclaredMethods(Class.java:2442) > at java.lang.Class.getDeclaredMethod(Class.java:1952) > at > java.io.ObjectStreamClass.getPrivateMethod(ObjectStreamClass.java:1411) > at java.io.ObjectStreamClass.access$1700(ObjectStreamClass.java:69) > at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:481) > at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:455) > at java.security.AccessController.doPrivileged(Native Method) > at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:455) > at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:352) > at > java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1130) > at > java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346) > at java.util.ArrayList.writeObject(ArrayList.java:710) > at sun.reflect.GeneratedMethodAccessor386.invoke(Unknown Source) > at > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975) > at > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480) > > How comes? > I already made a clean install, deleted all cookies, ... > Seems that some old serialization artifacts around? > > In Java code there is no import of the old package name anymore... > I also updated the static serial version uid of my basepage... > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/IHeaderResponse-serialization-problem-Wicket-6-tp4657862.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com <http://jweekend.com/>
