Start of tomcat failed
18,285
Solution 1
You should run from the command line / shell if you can though I realize you want to run from Netbeans in this case.
Also make sure that all your .sh
scripts are executable (do a chmod
) because otherwise they cannot be called.
Lastly, make sure you have the right permissions to run the scripts.
Once you are beyond these checks, you'll possibly get other error messages e.g. your JAVA_HOME
or your CATALINA_HOME
are not set. These will be easy to fix.
EDIT
To run Tomcat from the terminal,
- go to your Tomcat folder (either
TOMCAT_HOME
orTOMCAT_HOME/bin
). - Make sure all
.sh
scripts are executable (chmod a+x *.sh
) - run
startup.sh
: ./startup.sh
orbin/startup.sh
(depending on whether you are insideTOMCAT_HOME
or insideTOMCAT_HOME/bin
)
Solution 2
You can make catalina.sh
runnable by executing following command in terminal
chmod 755 <your tomcat location>/bin/catalina.sh
Author by
Code Hunter
Updated on August 07, 2022Comments
-
Code Hunter over 1 year
I am facing issue to start my tomcat server in netbeans. I am getting error when I click on start button
"Starting of tomact failed, check whether the /Application/NetBeans/apache-tomcat-7.0.52/bin/catalina/sh and related scripts are executable."
For more details please check screenshot
-
Admin about 10 yearsDoes
/Application/NetBeans/apache-tomcat-7.0.52/bin/catalina.sh
exist? -
Code Hunter about 10 yearsYes it is exists. I have checked it.
-
-
Code Hunter about 10 yearsDavid I am not good in scripts but I have tried to follow your instructions. Please have a look below commands which I tried in terminal Chandras-MacBook-Pro:bin chandraprakash$ chmod a+x *.sh Chandras-MacBook-Pro:bin chandraprakash$ startup.sh: ./startup.sh -bash: startup.sh:: command not found Chandras-MacBook-Pro:bin chandraprakash$ run startup.sh: ./startup.sh -bash: run: command not found
-
Code Hunter about 10 yearsOh its working now I have tried sh startup.sh Thanks david. for your kind help.