Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to set up Tomcat for remote debugging, following these instructions.

After having done the complete process, I get this error when I try to run my startup.sh script:

-bash: ./startup.sh: /bin/sh: bad interpreter: Operation not permitted

Let's notice that before doing that, I could start my Tomcat server correctly. Does someone have an idea about where I could have made a mistake?

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

It actually seems like the problem comes from Mac OS. When I unlocked the startup.sh file in order to write the export command, it seems like the OS put the file in quarantine. The command xattr -d com.apple.quarantine test.sh solve the issue.

And each time I modify the concerned file, the problem arises. So I have to use the command every time.

share|improve this answer
add comment

Have you tried launching using the Catalina instead of startup.sh? Have ran into similar problems before. Looks like in the guide you need to use Catalina to fire up the server.

share|improve this answer
1  
Thanks bill, it actually seems like the problem comes from Mac OS. When I unlocked the startup.sh file in order to write the export command, it seems like the OS put the file in quarantine. The command xattr -d com.apple.quarantine test.sh saved me. –  Aurelien Porte Jun 8 '12 at 11:51
    
No bother good to hear its working –  William Fleming Jun 8 '12 at 11:55
1  
ok but I can't because I don't have enough reputations to do so after 2 hours ;) –  Aurelien Porte Jun 8 '12 at 12:28
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.