development environment VS production environment

30 views
Skip to first unread message

Jose Javier

unread,
Mar 22, 2016, 9:34:44 PM3/22/16
to Grails Dev Discuss
I'm trying to use GROBID in a grails application, when i run a simple example I get this error
| Error 2016-03-11 16:50:22,195 [http-bio-8080-exec-4] ERROR errors.GrailsExceptionResolver - OperationNotSupportedException occurred when processing request: [GET] /GROB/grobid Context is read only. Stacktrace follows: Message: Context is read only Line | Method ->> 961 | checkWritable in org.apache.naming.NamingContext - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | 548 | createSubcontext in '' | 574 | createSubcontext in '' | 487 | createSubcontext in org.apache.naming.SelectorContext | 483 | createSubcontext in javax.naming.InitialContext | 37 | setInitialContext in org.grobid.core.mock.MockContext | 76 | setInitialContext in '' | 17 | index in grob.GrobidController | 198 | doFilter . . . . in grails.plugin.cache.web.filter.PageFragmentCachingFilter | 63 | doFilter in grails.plugin.cache.web.filter.AbstractFilter | 1145 | runWorker . . . . in java.util.concurrent.ThreadPoolExecutor | 615 | run in java.util.concurrent.ThreadPoolExecutor$Worker ^ 745 | run . . . . . . . in java.lang.Thread Process finished with exit code 137
but if i create a .war and run it with
grails run-war, Everything works perfect !!!
What's going on here?
What I can change in the development environment to work like production environment ?
Thanks in advance!

Graeme Rocher

unread,
Mar 31, 2016, 3:47:32 AM3/31/16
to grails-de...@googlegroups.com, Grails Dev Discuss
Looks like whatever you are using is trying to use JNDI which is not setup in the dev environment, maybe move this question to Stack Overflow, you would have a better response there

Cheers

Graeme

--
You received this message because you are subscribed to the Google Groups "Grails Dev Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grails-dev-disc...@googlegroups.com.
To post to this group, send email to grails-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grails-dev-discuss/a3673acd-2bd7-48e5-bb16-670f1437d3c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages