How to run tomcat and lampp/xampp together using jakarta-tomcat-connector or mod_jk module on Linux?

This Comment will be submitted for moderation and will not be accessible to other users until it has been approved.


After having spend almost 48 hours on the system and not finding a satisfactory answer, I could solve the problem and I decided to post the solution for people who might have the same problem.

1. Download xampp-linux-1.4.11.tar.gz. Unzip as follows:

tar zxvf xampp-linux-1.4.11.tar.gz -C /opt

Note, I tried integrating tomcat with the latest xamp, but with utter failure. Later I could figure out that I needed apache-2.0 to make mod_jk.so module work. I tried compiling mod_jk from source, but it did not compile and gave all kinds of errors.

2. Download tomcat-connectors-1.2.22-src.tar.gz from link. This connector has already compiled mod_jk.so module that wors with apache 2.0 (and not apache 2.2.x) and also sets all configuration files.

3. Execute: tar zxvf tomcat-connectors-1.2.22-src.tar.gz -C /opt

4. Add following line to /opt/lampp/etc/httpd.conf

Include etc/tomcat.conf

5. Run lampp:

/opt/lampp/lampp start

6. Run tomat:

/opt/lampp/bin/startup.sh

Check that you following link opens in browser:

http://your-domain.com:8080/jsp-examples/

7. To check if the conector is working correctly,

http://your-domain.com/jsp-examples/

should open.

If this works fine, Congratulations you have succueeded in making lampp/xampp and apache work with tomcat.

 

                                     
-8 points

sir could u pls give details windows platform,iam trying to connect tomacat add on in xampp finally i recognized it is a failure .
thanking u sir ,ur wonderful information regarding the issue.

Anonymous's picture
Created by Anonymous
7 points

1. Downlad XAMPP for Windows Add-ons Tomcat xxx the exe version from http://www.apachefriends.org/en/xampp-windows.html
2. Extract at xampp\
3. Run (from command prompt) xampp\tomcat_start.bat
4. Run (from command prompt) xampp\xampp_start.bat
5. Make shortcut of xampp starter on the desktop if necessary.
6. Save your jsp files at localhost:8080/examples/
7. Access the jsp file from the web browser.

* This entry assumes that you have already installed xampp successfully.

Lood luck!

Anonymous's picture
Created by Anonymous
-15 points

Thank you for this! Not sure what I would've done without it.

I have a couple of updates:

in step 6, run /opt/tomcat/bin/startup.sh

and in step 7, latest versions have changed to localhost:8080/examples/jsp

Anonymous's picture
Created by Anonymous

Post Comment

  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <php>, <python>, <ruby>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.