基于Grails 2.5.6的应用程序在与Tomcat一起部署时导致布局错误

时间:2018-12-12 00:16:10

标签: tomcat grails deployment grails-2.5 weceem

我的应用程序是用Grails 2.5.6编写的。当我在开发和生产模式(prod run-app)下运行它时,它可以完美工作。我可以毫无问题地访问Weceem内容管理系统。但是,尝试在已部署的Tomcat应用程序上访问Weceem时遇到以下异常。

2018-12-11 23:56:22,110 [http-bio-8080-exec-7] ERROR errors.GrailsExceptionResolver  - NullPointerException occurred when processing request: [GET] /model-repository/wcm-admin/repository/treeTable
Stacktrace follows: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : weceemadmin
    at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:198)
    at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
    at grails.plugin.springsecurity.web.filter.GrailsAnonymousAuthenticationFilter.doFilter(GrailsAnonymousAuthenticationFilter.java:53)
    at grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter.doFilter(MutableLogoutFilter.java:62)
    at grails.plugin.springsecurity.web.SecurityRequestHolderFilter.doFilter(SecurityRequestHolderFilter.java:59)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
Caused by: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: null
    ... 8 more
Caused by: java.lang.NullPointerException
    at java.util.Hashtable.get(Hashtable.java:364)
    at java.util.Properties.getProperty(Properties.java:969)
    at asset.pipeline.grails.AssetProcessorService.getResolvedAssetPath(AssetProcessorService.groovy:57)
    at asset.pipeline.grails.AssetProcessorService.asset(AssetProcessorService.groovy:72)
    at asset.pipeline.grails.CachingLinkGenerator.asset(CachingLinkGenerator.groovy:32)
    at asset.pipeline.grails.CachingLinkGenerator.resource(CachingLinkGenerator.groovy:24)
    at gsp_weceem_layoutsweceemadmin_gsp$_run_closure1.doCall(gsp_weceem_layoutsweceemadmin_gsp.groovy:29)
    at gsp_weceem_layoutsweceemadmin_gsp.run(gsp_weceem_layoutsweceemadmin_gsp.groovy:59)
    ... 8 more

该项目的源代码可以在https://bitbucket.org/ddmore/jummp/branch/upgradingGrails2x中找到。我也发现了我们社区中类似的问题,例如Grails deploy tomcat - Error applying layoutError 500: Error processing GroovyPageView: null。但是,由于根本原因不同,它们都无法帮助我解决问题。

到目前为止,您是否遇到过这样的事件?请给我一个主意。

0 个答案:

没有答案