${Env.CATALINA_HOME} does not exit in openshift

698 views Asked by At

I have a question which is related to openshift online and I am using a Tomcat7 cartridge,Mysql5.5 and Ant Cartridge 0.1.And I am trying to deploy OpenGTS project to openshift but when I open a SSH session and I try to run this command "ant all" it shows that "BUILD FAILED /var/lib/openshift/568e35812d52717d1f000122/app-root/runtime/repo/build.xml:66: /var/lib/openshift/568e35812d52717d1f000122/app-root/runtime/repo/${Env.CATALINA_HOME} does not exit" I am worry about that,I deleted the tomcat application and created again but it is showing same error.please help me.thanks.

1

There are 1 answers

10
Rao On

Make sure <property environment="env"/> is present at the top of the script.

Also CATALINA_HOME environment variable is defined in the system.

Use ${env.CATALINA_HOME} instead of ${Env.CATALINA_HOME}.