Wicket Serialization Exception

Looks like this is caused by a groovy bug See: http://jira.codehaus.org/browse/GROOVY-4305 http://grails.1312388.n4.nabble.com/Wicket-plugin-and-Grails-1-1-tp1383756p2304377.html http://grails.1312388.n4.nabble.com/Wicket-plugin-and-Grails-1-1-tp1383756p2304462.html   Exception 2010-07-27 20:46:51,579 [http-8080-1] ERROR lang.Objects - Error serializing object class admin.CategoriesPage [object=[Page class = admin.CategoriesPage, id = 0, version = 0]] org.apache.wicket.util.io.SerializableChecker$WicketNotSerializableException: Unable to serialize class: groovy.lang.Reference Field hierarchy is: 0 [class=admin.CategoriesPage, path=0] private java.lang.Object org.apache.wicket.MarkupContainer.children [class=[Ljava.lang.Object;] private org.apache.wicket.markup.html.ContainerWithAssociatedMarkupHelper org.apache.wicket.markup.html.WebMarkupContainerWithAssociatedMarkup.markupHelper[1] … Continue reading Wicket Serialization Exception

How to install OpenSessionInViewFilter for Grails

What is OpenSessionInViewFilter? Open Session in View Pattern for Spring and JPA   Solves the error:   failed to lazily initialize a collection of role: ParentDomainClass.children, no session or session was closed 1) Install grails templates so you can edit web.xml directly. See  Grails Persistence with GORM and GSQL     grails install-templates   2) In … Continue reading How to install OpenSessionInViewFilter for Grails

How to inject services using Wicket+Spring

Reason #1 : Instead of directly initializing the service using the "new" keyword as below, you can use Spring to inject the service which allows a lot of flexibility down the line if you want to change the service (See: Injecting Grails service class using Spring) MyService myService = new MyService() Reason #2: Note from … Continue reading How to inject services using Wicket+Spring

How to solve OncePerRequestFilter error when wicket plugin is deployed as WAR file to JBoss 5

I  I was able to solve the problem by using stackoverflow and grails jira It turned out to be a JBoss issue. I'm happy I'm getting closer and closer to building the site... hope this thread helps others trying out the Wicket plugin. Now onto service injection next. All I had to do was follow … Continue reading How to solve OncePerRequestFilter error when wicket plugin is deployed as WAR file to JBoss 5

How to solve the wicket-javadoc error with wicket 1.3.0 snapshot plugin that allows anonymous inner classes

How to solve the wicket-javadoc error with wicket 1.3.0 snapshot  plugin that allows anonymous inner classes Unexpected Runtime Exception WicketMessage: Tag '<DT>' (line 99, column 1) has a mismatched close tag at '</DL>' (line 100, column 1)[markup = jar:file:/home/user1/.ivy2/cache/org.apache.wicket/wicket/javadocs/wicket-1.4.9-javadoc.jar!/org/apache/wicket/markup/html/WebMarkupContainer.html Ok I solved the error with wicket-1.4.9-javadoc.jar by removing it from ivy and commenting it out … Continue reading How to solve the wicket-javadoc error with wicket 1.3.0 snapshot plugin that allows anonymous inner classes