thomashan / zkgrails

Automatically exported from code.google.com/p/zkgrails
0 stars 0 forks source link

cannot use zkgrails in a clustered environment #284

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Which version of ZKGrails you're using? On what operating system?
2.0.4

Which version of Grails you're using?
2.0.4

What steps will reproduce the problem?
1. install zkgrails
2. create-zul test.zul
3. deploy application to clustered tomcat
4. zul not found

What is the expected output? What do you see instead?
Once application is deployed to clustered environment zuls should be rendering 
properly. I am getting error setAttribute: Non-serializable attribute 
javax.zkoss.zk.ui.Session (after I installed plugin  serializable-session), 
before I was getting a different error.

Please provide any additional information below. Attaching a test case to
reproduce it is preferable.

The problem is basically in zk.xml. By default the ui-factory-class is:
<system-config><ui-factory-class>org.zkoss.zk.grails.ui.GrailsComposerFactory</u
i-factory-class></system-config>
but for clustered environments I have read that should be:
org.zkoss.zk.ui.http.SerializableUiFactory

If I change it to this Factory then when I try to access any zul under 
grails-app/zul they will not be found.

I have tried installing the plugin serializable-session but did not work either.

Original issue reported on code.google.com by miralo...@gmail.com on 25 Nov 2012 at 9:57

GoogleCodeExporter commented 8 years ago
ZKGrails 2.1 will supply the clustered version of GrailsComposerFactory. Thanks.

Original comment by chanwit on 26 Nov 2012 at 2:03

GoogleCodeExporter commented 8 years ago
Fixed. the Build Snapshot now provides SerializableGrailsComposerFactory.

Original comment by chanwit on 27 Nov 2012 at 4:14

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by miralo...@gmail.com on 28 Nov 2012 at 4:22

GoogleCodeExporter commented 8 years ago
Is the build snapshot available anywhere or do I need to wait until a release 
comes out?. Thanks!

Original comment by miralo...@gmail.com on 28 Nov 2012 at 5:21

GoogleCodeExporter commented 8 years ago
Hi,

It's in the private repo. You are better wait for the next major release by the 
end of December.

Original comment by chanwit on 28 Nov 2012 at 5:41