Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start of tomcat failed

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 enter image description here

like image 271
Code Hunter Avatar asked Apr 15 '14 10:04

Code Hunter


People also ask

How do you fix the start of Tomcat failed the server port 8080 is already in use?

Change your Tomcat port address to 8084 and Shut Down Port to 8025 . This will resolve your problem.

Why Tomcat server at localhost failed to start?

Problem Occurred:- ‘Starting Tomcat Server at localhost’ has encountered a problem. Server Tomcat v10.0 Server at localhost failed to start. The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.

How to fix the Tomcat server configuration file is not working?

This is how you can go about fixing the issue: 1. Go to server tab and double click on the Tomcat server, the configuration file for Tomcat will open and look like this: 2.

Why can't I run Tomcat in Eclipse?

The issue typically arises from either the Eclipse or Tomcat process crash or being stuck. This is how you can go about fixing the issue: 1. Go to server tab and double click on the Tomcat server, the configuration file for Tomcat will open and look like this:

How to start Tomcat from NetBeans when it fails?

Solución al error "Starting of Tomcat failed" (Inicio de Tomcat fallido) en NetBeans. rem Change catalina.bat file in tomcat bin directory. rem Find the bellow configuration in your catalina.bat file. rem Now save and start your tomcat from NetBeans. rem It works in apache-tomcat-7.0.56 and apache-tomcat-8.0.14.


2 Answers

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 or TOMCAT_HOME/bin).
  • Make sure all .sh scripts are executable (chmod a+x *.sh)
  • run startup.sh: ./startup.sh or bin/startup.sh (depending on whether you are inside TOMCAT_HOME or inside TOMCAT_HOME/bin)
like image 118
David Brossard Avatar answered Oct 17 '22 07:10

David Brossard


You can make catalina.sh runnable by executing following command in terminal

chmod 755 <your tomcat location>/bin/catalina.sh
like image 44
Sandy Avatar answered Oct 17 '22 08:10

Sandy