development environment VS production environment

已查看 30 次
跳至第一个未读帖子

Jose Javier

未读,
2016年3月22日 21:34:442016/3/22
收件人 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

未读,
2016年3月31日 03:47:322016/3/31
收件人 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.
回复全部
回复作者
转发
0 个新帖子