java ${user.home} variable in linux -
i have java application (.war) use ${user.home}/${project.build.finalname}/index
(in hibernate.properties) save hibernate index. can deploy in tomcat in windows without problem. when deploy in linux(ubuntu server 14.04) ${user.home} translate /usr/share/tomcat7/
instead of /var/lib/tomcat7
. tomcat home (the webapp folder) in /var/lib/tomcat7/
deployment fail because can't write /usr/share/tomcat7/
which variable should use refer /var/lib/tomcat7
?
thanks
well, there system property set default, called catalina.home
points tomcat installation root. use (i think, in case, it'll set /var/lib/tomcat7 want).
additionally, can set system property during tomcat startup adding catalina_opts environment variable. example:
catalina_opts=-dfoo.bar=/some/path/to/hibernate/index /var/lib/tomcat7/bin/catalina.sh start
(the above meant bash command on single line).
Comments
Post a Comment