grails3 - Grails 2.5.1 application sporadically loses context root -
we have handful of applications deploying same tomcat server (currently working on upgrading grails 3, may obe in next few months, it's been plaguing quite time now) , 2 of applications lose relative context root path.
let's have "app1" , "app2" deploy server:port/app1
, server:port/app2
.
app1 works fine, app2 (~20% of time, maybe) deploy , <g:link/>
links (or other generated links, such asset locations) generate relative server root... application correctly deployed under /app2
, links point bad locations.
e.g., <g:link controller='hello' action='index'/>
generate link /hello/index
rather /app2/hello/index
.
i don't know relevant code post is, we've compared our other applications , have found nothing noticeably different in 2 exhibiting behavior. it's these 2 (out of dozen) applications ever break in manner.
any ideas on causing or appreciated.
edit: plugins in use:
compile "org.springframework.boot:spring-boot-starter-logging" compile "org.springframework.boot:spring-boot-autoconfigure" compile "org.grails:grails-core" compile "org.springframework.boot:spring-boot-starter-actuator" provided "org.springframework.boot:spring-boot-starter-tomcat" compile "org.grails:grails-dependencies" compile "org.grails:grails-web-boot" compile 'org.grails.plugins:cache:4.0.0.m2' compile 'org.grails.plugins:cache-ehcache:3.0.0.m1' compile "org.grails.plugins:scaffolding" compile "org.grails.plugins:hibernate4" compile "org.hibernate:hibernate-core:4.3.10.final" compile "org.hibernate:hibernate-ehcache:4.3.10.final" console "org.grails:grails-console" profile "org.grails.profiles:web" runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.14.1" runtime "com.h2database:h2" testcompile "org.grails:grails-plugin-testing" testcompile "org.grails.plugins:geb" testruntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" testruntime "net.sourceforge.htmlunit:htmlunit:2.18"
Comments
Post a Comment