Grails PermGem error

前端 未结 4 1973
执念已碎
执念已碎 2021-01-01 04:34

I need help with this problem. I need someone to explain to me why is this happening and how to prevent or avoid it.

Exception in thread \"Thread-747\" java.         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-01-01 04:44

    If you are using Servlet Version 3.0 then even increasing your memory won't be of any help since it's a problem with the groovy compiler. The new version 1.8.2/1.9 (?) which will be released soon will resolve this issue. In the meantime you can change the servlet version back to "2.5" (in BuildConfig.groovy) which will resolve this issue.

    The drawback of changing the servlet version to 2.5 is that it cannot be deployed to Glassfish application server so the ugly workaround is change to 2.5 and use "run-app". When you want to deploy to glassfish change the servlet version to "3.0" in BuildConfig.groovy, run "war" and then deploy the war to Glassfish. Change it back to "2.5" to run on local dev machine again.

提交回复
热议问题