IntelliJ IDEA之Tomcat启动相关报错:
1.EvnetLog报错:Application Server was not connected before run configuration stop, reason:
Unable to ping server at localhost:1099
out报:/Users/niefei/Programs/apache-tomcat-6.0.45/bin/catalina.sh run
/bin/sh: /Users/niefei/Programs/apache-tomcat-6.0.45/bin/catalina.sh: Permission denied
Disconnected from server
很明显是权限问题,我们修改一下权限即可。
chmod 755 catalina.sh
Unable to ping server at localhost:1099
out报:
The BASEDIR environment variable is not defined correctly
This environment variable is needed to run this program
Disconnected from server
虽然不是很明显是权限问题,但我们修改一下权限即可。Tomcat6存在,Tomcat7不存在该问题。
chmod 777 apache-tomcat-6.0.45/bin/*