tomcat-Error The BASEDIR environment variable is not defined correctly

Source: Internet
Author: User

<span style= "FONT-SIZE:18PX;" >the BASEDIR environment variable is not defined correctly</span> start tomcat times wrong <strong>the BASEDIR EnviR Onment variable is isn't defined correctly this environment variable are needed to run this program</strong> the pit Daddy middleware I've been doing it for half a day. Start troubleshooting environment variables by prompting the following are the JDK and tomcat environment variables [[email protected] bin]# more/etc/profile Java_home=/usr/lo Cal/src/jdk1.6.0_32 jre_home= $JAVA _home/jre classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _ Home/jre/lib/rt.jar Export Java_home CLASSPATH catalina_1_base=/apache-tomcat-6.0.35/catalina_1_home=/ Apache-tomcat-6.0.35/export catalina_1_base catalina_1_home Nothing wrong, this hurt my passive ah, accidentally hit a LS life suddenly dawned [[email protecte  D] bin]# ls-al total 688 d-w-------2 root root 4096 02-22 14:53.  Drwxr-xr-x 9 root root 4096 02-22 14:53.. --w-------1 root root 22705 11-28 18:20 Bootstrap.jar--w-------1 root root 11830 11-28 18:20 catalina.bat--w------ -1 root root 17708 11-28 18:20 catalina.sh--w-------1 root root 2374 11-28 18:20 catalina-tasks.xml--w-------1 root root 24172 11-28   18:20 Commons-daemon.jar--w-------1 root root 199623 11-28 18:20 commons-daemon-native.tar.gz--w-------1 root root 1342 11-28 18:20 Cpappend.bat--w-------1 root root 2108 11-28 18:20 digest.bat--w-------1 root root 1689 11-28 18:20 digest.sh--w-------1 root root 55828 02-22 16:13 nohup.out--w-------1 root root 3150 11-28 18:20 Setclasspa  Th.bat--w-------1 root root 4114 11-28 18:20 setclasspath.sh--w-------1 root root 2108 11-28 18:20 shutdown.bat --w-------1 root root 1628 11-28 18:20 shutdown.sh--w-------1 root root 2109 11-28 18:20 startup.bat--w------- 1 root root 2023 11-28 18:20 startup.sh--w-------1 root root 32277 11-28 18:20 Tomcat-juli.jar--w-------1 root ro OT 249259 11-28 18:20 tomcat-native.tar.gz--w-------1 root root 3479 11-28 18:20 tool-wrapper.bat--w-------1 root Root 3472 11-28 18:20Tool-wrapper.sh--w-------1 root root 2113 11-28 18:20 version.bat--w-------1 root root 1632 11-28 18:20 version.   SH All do not execute permissions, hurriedly assign permissions # chmod 777-r bin/[[email protected] bin]# nohup sh catalina.sh run & [1] 19004   [[email protected] bin]# nohup:appending output to "nohup.out" [[email protected] bin]# tail-f nohup.out 2012-2-22 16:26:47 org.apache.catalina.startup.HostConfig deploydirectory Info: Deploying Web application Directory Examp Les 2012-2-22 16:26:47 org.apache.coyote.http11.Http11Protocol start info: Starting Coyote http/1.1 on http-8080 2012-2-2 2 16:26:47 org.apache.jk.common.ChannelSocket init info: jk:ajp13 listening on/0.0.0.0:8009 2012-2-22 16:26:47 Org.apach E.jk.server.jkmain Start info: JK Running id=0 time=0/15 config=null 2012-2-22 16:26:47 org.apache.catalina.startup.Catal   Ina Start information: Server startup in 466 m OK, Tomcat finally got up, pit daddy ah next upload must pay attention to the permissions!

  

tomcat-Error The BASEDIR environment variable is not defined correctly

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.