The eventConfigureTomcat is not invoked in Grails 2.3. How to config tomcat in grails 2.3 development environment?

后端 未结 3 1724
灰色年华
灰色年华 2021-01-24 04:23

I created _Events.groovy in script directory then added code below:

eventConfigureTomcat = {tomcat ->
    println \"Tomcat.......................         


        
相关标签:
3条回答
  • 2021-01-24 04:55

    It appears that you can update the Tomcat plugin in Grails 2.3 to:

    build ":tomcat:7.0.55"

    This includes the fix for the jira issue that @chubbsondubs linked above.
    It also seems to be fixed in the tomcat plugin 8.0.14.

    0 讨论(0)
  • 2021-01-24 05:00

    This is a bug and I'm looking into it. It works if you disable fork mode, which you can disable either by deleting the entire grails.project.fork block in BuildConfig.groovy, or by setting the run configuration to false:

    grails.project.fork = [
       ...
       run: false
       ...
    ]
    
    0 讨论(0)
  • 2021-01-24 05:15

    I tested the issue with Grails 2.3.4 version and still exist. You should disable forked mode to work properly.

    You can check my _Events.groovy file.

    0 讨论(0)
提交回复
热议问题