There is a loadonstartup ordering problem with the plugin. load-on-startup should come after the init-param. This causes a problem in strict containers like glassfish.
See:
diff --git a/JaxrsGrailsPlugin.groovy b/JaxrsGrailsPlugin.groovy
index f9ad5ed..3154c9b 100644
--- a/JaxrsGrailsPlugin.groovy
+++ b/JaxrsGrailsPlugin.groovy
@@ -101,11 +101,11 @@ Apache Wink are likely to be added in upcoming versions of the plugin.
'servlet' {
'servlet-name'('grails')
'servlet-class'(GrailsDispatcherServlet.name)
- 'load-on-startup'('1')
'init-param'{
'param-name'('dispatchOptionsRequest')
'param-value'('true')
}
+ 'load-on-startup'('1')
}
}
}