exec: 48: ./catalina.sh: Permission denied

Today as i was deploying a simple tomcat application on EC2 i encountered a strange problem . I copied my war to the webapps folder and tried to start the server using the standard ./startup.sh from the command line . To my surprise i got this error
” exec: 48: ./catalina.sh: Permission denied” i checked the permission on the script files present in my bin directory and all of them reflected the flags indicating that the execution of catalina.sh file is permissible . I tried using the root privileges just to check the permissions but the problem still persisted . I tried googling it but mostly as expected i got replies doing a “chmod” on the script files .After a few hours for the sake of doing and in a state of desperation i did the “chmod a+x *.sh “on script files in the bin directory . As expected the permission flags still reflected the same state as they were earlier , but to my surprise the server started and deployed the application correctly.
(Still wondering whether i am becoming a zombie or what due to such type of unbelievable experiences that i am getting these days ).

~ by jayeshpowar on June 16, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.