XAMPP 1.8.1: Cannot start Tomcat server using XAMPP Control Panel

My situation is that I was installing XAMPP 1.8.1 in Windows 8 Professional. After finished the installation, I used XAMPP Control Panel to successfully start Apache Server, MySQL Server, and Tomcat Server, respectively.

The problem was that after I stopped all those services and tried to restart them again using XAMPP Control Panel, the Tomcat server could not be started.

Problem: there is an error in the catalina_start.bat in the $XAMPP_HOME directory. So, the script cannot find the CATALINA_HOME. There are two alternative ways to fix this problem.

Fix #1: Use a text editor to edit the catalina_start.bat in the $XAMPP_HOME directory. Search for:

echo.
echo [XAMPP]: Using JDK
set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%\tomcat"

and change it to

echo.
echo [XAMPP]: Using JDK
cd..
set "CURRENT_DIR=%cd%"
set "CATALINA_HOME=%CURRENT_DIR%\tomcat"

Fix #2: Change the path in the Start In properties of the XAMPP Control Panel shortcut icon on the Desktop.

  1. Right click on the XAMPP Control Panel shortcut icon on the Desktop to open a context menu
  2. Click on Properties
  3. Change the Start in path from d:\myxampp\tmp\ to d:\myxampp\
  4. Click Apply and OK buttons

http://mrtextminer.wordpress.com/2012/11/16/xampp-1-8-1-cannot-start-tomcat-server-using-xampp-control-panel/

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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: