Monday, January 11, 2010

Linux: Cannot find ./catalina.sh

Subject: Liferay Development Troubleshooting 1

Problem: Cannot find ./catalina.sh
OS: Ubuntu 9.04

Descritption
Cannot start tomcat sever with error 'Cannot find ./catalina.sh'. Refer to Figure 1 below

Figure 1: Cannot start tomcat server.


Solution

Make sure file permission to all files in bin (../tomcat-6.0.18/bin) directory can be executed.
Default mod: -rw-r--r--; means that the file can be read only.

Back to server directory, command line: cd ../../
Then change the file mode command line: sudo chmod 755 -R tomcat-6.0.18/*