title: The BASEDIR environment variable is not defined correctly
body: <p>While running my tomcat the following error is coming .</p>
  
  <blockquote>
    <p>The BASEDIR environment variable is not defined correctly<br>
    This environment variable is needed to run this program</p>
  </blockquote>
  
  <p>Dec 23, 2009 1:03:22 PM org.apache.jk.server.JkMain start
  INFO: Jk running ID=0 time=1/41  config=null</p>
  
  <p>This is how I set my JAVA_PATH in my bashrc file</p>
  
  <pre><code>export JAVA6_HOME=/home/asharma/Softwares/jdk1.6.0_12
  export JAVA_HOME=$JAVA6_HOME
  
  export JPDA_TRANSPORT=dt_socket
  export JPDA_ADDRESS=9000
  export RESIN_HOME=/home/asharma/Softwares/resin
  
  export PATH JAVA_HOME    
  export GDK_NATIVE_WINDOWS=1
  
  export CATALINA_HOME=/home/asharma/Softwares/apache-tomcat-6.0.20        
  export CATALINA_OPTS="-Dcom.sun.management.jmxremote Dcom.sun.management.jmxremote.port=19000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
  
  export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9998 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
  
  alias tstart="$CATALINA_HOME/bin/catalina.sh jpda start -Xmx2000m -Dcom.sun.management.jmxremote.port=9998 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false ; tail -f $CATALINA_HOME/logs/catalina.out"
  alias tstop="sh $CATALINA_HOME/bin/shutdown.sh"
  
  alias minstall='mvn clean install -Dhttps.proxyHost=monitoring01.hyd.int.untd.com -Dhttps.proxyPort=3128'
  
  alias resin='sh $RESIN_HOME/bin/httpd.sh -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12345 -Dcom.sun.management.jmxremote.port=9999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -verbose -DVPS_HOME=/home/asharma/vps -Xms2000m -Xmx2000m'
  </code></pre>