Fixed loadonstartup ordering bug

6 views
Skip to first unread message

Jason Rowland

unread,
May 16, 2013, 3:21:44 PM5/16/13
to grails-jax...@googlegroups.com
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')
                        }
                }
     }

Noam Tenne

unread,
May 16, 2013, 4:24:02 PM5/16/13
to grails-jax...@googlegroups.com
Again, thanks; Can you please open a pull request for this too? 

Cheers,
Noam



--
You received this message because you are subscribed to the Google Groups "grails-jaxrs-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-jaxrs-dis...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Noam Tenne

unread,
Jun 12, 2013, 8:19:16 AM6/12/13
to grails-jax...@googlegroups.com
No pull request was opened, so I've pushed this fix directly to the master
Reply all
Reply to author
Forward
0 new messages