• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Integrating external Tomcat 6 with plesk

R

RobinO

Guest
Hi

Is there anyway to integrate an external version (not installed through plesk) of Tomcat so that requests to port 80 are redirected to port 8080 (i.e. if I went to www.example.com I would see the same content as www.example.com:8080)?

I have tried using mod_jk with our apache files but this doesn't seem to work when plesk is installed.

We also can't locate proxy_ajp.conf (I think this is because we are now using Ubuntu 8.04 server instead of Centos) and hence we are unable to use <location> tags to redirect as well.

Our version of plesk panel is 9.2.1

We have tried editing the http.conf file but it is either ignored or causes an 'Invalid server configuration(500)' error.

(Also our setup of the mod_jk is working correctly with our dev server which runs ubuntu 8.10 so I don't think it's a incorrect mod_jk setup that is causing the issue)

Thanks

Robin
 
Hi Robin,

Could you please explain how you achieved that? I'm having trouble with Plesk's Tomcat behaviour regarding unpacking of .war files and am considering switching to an external Tomcat. A short summary of necessary steps would be much appreciated!

Cheers,

Ron
 
Hi Ron

The following walkthrough will only really work on ubuntu but may be useful as a reference to other setups.

We installed tomcat first (not through the repository) into a directory of our choice. The following link should tell you how to do this:

http://www.howtogeek.com/howto/linux/installing-tomcat-6-on-ubuntu/


We setup a standard mod_jk connection between apache and tomcat. The link below has details on how to do this:

http://wbruschi.blogspot.com/2009/01/install-tomcat-6-on-ubuntu-intrepid.html

(read the section on installing tomcat behind apache, if you want to install tomcat from the repository it also shows you how to do this as well.)

You will need to make sure that the virtual host is setup correctly for the domain name in plesk (this was done by our hosting provider).

Apart from that all you need to do is add the last piece of the mod_jk code into required .conf file. One thing to note is that link above mentions adding the last part of the mod_jk code to the /etc/apache2/sites-available/default file. We found that adding it to the http.conf file instead worked. You can find the post that mentions this here (step 5):

http://www.smithproject.org/doc_preinstall.cfm#step5

If you do have further issues it most likely based on the final mod_jk code being added to the wrong file for your setup.

Simply try to add it to the local conf file (i.e. the one for you virtual domain).


Hope this helps

Robin
 
Hi,

Can you please suggest how to handle the same case for windows 2008 server.
"how to integrate an external version (not installed through plesk) of Tomcat so that requests to port 80 are redirected to port 8080".

Sarva
 
Back
Top