Thursday, December 22, 2005

GlassFish and Wicket

Wicket works in GlassFish! (Yay)
But just in case you encounter strange ognl access exception, you have to do do this:

1. Edit ${install_dir}/domain/domain/domain1/config/server.policy
2. Add this permission in:

grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/wicket-examples/WEB-INF/lib/-" {

grant codeBase file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/wicket-examples/WEB-INF/classes/-" {

3. Restart domain1
asadmin stop-domain domain1
asadmin start-domain domain1

And that's it, your wicket application should run fine now.

No comments: