簡體   English   中英

將Grails 3.1.1部署到Heroku

[英]Deploy Grails 3.1.1 to Heroku

我使用的是3.0.14v Grails,我對heroku進行了一些部署。 一切都運行正常,但我想嘗試使用Grails 3.1.1,現在我遇到了一些錯誤。

我關注這篇文章https://devcenter.heroku.com/articles/deploying-gradle-apps-on-heroku

我克隆了這個https://github.com/kissaten/grails3-example

我認為這是關於tomcat版本但不確定的。

有幫助嗎?

heroku日志

heroku日志

對於編譯' com.github.jsimone:webapp-runner:8.0.30.1 '的麻煩 ,我通過從所有test * import中刪除httpclient模塊來解決這個問題,並且我導入了該模塊的一個很好的版本(僅用於測試) *)。

testCompile ("org.grails.plugins:geb"){
    exclude module: 'httpclient'
}
testCompile ('org.seleniumhq.selenium:selenium-firefox-driver:2.48.2'){
    exclude module: 'httpclient'
}
testCompile 'org.apache.httpcomponents:httpclient:4.3.5'

多虧了這一點,我可以導入“最后一個”webapp-runner(直接作為jar)

compile 'com.github.jsimone:webapp-runner:8.0.30.1@jar'

也許那個版本的webapp-runner將解決問題,但我不確定。 正如我在您的堆棧跟蹤中看到的那樣, org / apache / tomcat / util / descriptor / tld / TldParser存在NoClassDefFoundException

該類由tomcat-embed-core工件提供。 該工件來自spring-boot-starter-tomcat (作為依賴項)。 將“spring-boot-starter-tomcat”從提供更改為編譯或嘗試其他版本(對於Grails 3.0.9,spring-starter-tomcat版本為1.2.6)。

希望能幫助到你 ;)

我不確定具體細節,但看起來Grails 3.1.1需要Tomcat 8.x系列中的一些類。

我找到了一個解決方案,我使用了“compile'c​​om.github.jsimone:webapp-runner:8.0.30.2'”而不是'8.0.30.1',現在它運行良好。

我認為將'8.0.30.1'作為編譯時依賴項存在問題。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM