Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Starting Tomcat add-on XAMPP not working

Tags:

xampp

tomcat7

I installed XAMPP 1.7.7, including:

Apache 2.2.21 MySQL 5.5.16 PHP 5.3.8 phpMyAdmin 3.4.5 FileZilla FTP Server 0.9.39 Tomcat 7.0.21 (with mod_proxy_ajp as connector).

My all other services work expect for Tomcat.

Things that I did right now, to fix this: I realized that I did not had java on my computer, as on command prompt there was no path for java. So I installed JAVA 1.7.0 and also set the "Environment path".

But still its not getting started.

Any help would be appreciated.

Regards Zeeshan

like image 776
Zeeshan Rang Avatar asked Oct 14 '11 03:10

Zeeshan Rang


2 Answers

Assuming windows os,

Step 1. Create/edit an environment variable JAVA_HOME with path to jdk (important:- not to \bin but just c:\java\jdk_1_7_0 and dont put semicolon at the end).

step 2. Create/edit an environment variable JRE_HOME with path to jre (important:- again not to \bin but just the folder where bin is located and no semicolon in the end).

step 3. Create/edit an environment variable path that should be added like this,
< all the previous path stuff's >;%JAVA_HOME%/bin;.;

The xampp tomcat looks for %JAVA_HOME% or %JRE_HOME% individually, so just setting the path and classpath variables, up to the bin folder, will not work here. It works for standard Apache tomcat only.

Also, the your version of xampp have disabled the users by default. Enable it by un-commenting the user part in the x:\xampp\tomcat\conf\tomcat-users.xml

like image 134
Abhinav Kulshreshtha Avatar answered Oct 01 '22 13:10

Abhinav Kulshreshtha


You need to execute manually following bat file c:\xampp\catalina_start

or

put

catalina_start , catalina_stop

in XAMPP control panel start up

like image 44
prakash_d22 Avatar answered Oct 01 '22 15:10

prakash_d22