it's the ApplicationContextFacade that can't be serialized. you'll need to mark this field as transient most likely. Now, if this is, as I suspect, a spring class for getting your dependencies, you'll have to refetch/recreate this context after deserialization. But if you're using spring you should really look at wicket-spring and use @SpringBean to get your deps handed to you.
On Dec 17, 2007 5:59 AM, Joshua Jackson <[EMAIL PROTECTED]> wrote: > Dear all, > > I got this message because there is a field that Wicket wants to > serialize but it can not be serialized. Now how do I remove this error > since I can not make tomcat's ApplicationContextFacade to be > Serializable. > > 2007-12-17 17:49:12,498 - [ERROR] - Objects - Error > serializing object class com.mycompany.dupe.pages.PricePage > [object=[Page class = com.mycompany.d > upe.pages.PricePage, id = 17, version = 0]] > > org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: > Unable to serialize class: > org.apache.catalina.core.ApplicationContextFacade > Field hierarchy is: > 17 [class=com.mycompany.dupe.pages.PricePage, path=17] > private java.lang.Object > org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] > private java.util.List > com.mycompany.dupe.pages.PricePage$PriceForm.prices[8] > [class=com.mycompany.dupe.pages.PricePage$GeneratorForm, > path=17:generatorForm] > javax.servlet.ServletContext > com.mycompany.dupe.pages.PricePage$GeneratorForm.context > [class=org.apache.catalina.core.ApplicationContextFacade] <----- field > that is not serializable > > Thanks in advance > > -- > I'm a coder not a drag-n-dropper > > Blog: http://joshuajava.wordpress.com/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
