I need to be able to run Tomcat applications from DocumentRoot to access them as www.domainname.com/index.jsp?

Article ID: 902 
Last Review: Oct,6 2008
Author: APPLIES TO:
  • Plesk 7.5.x Reloaded

Resolution

Firstly, you should deploy an application with Plesk then edit the 'path' value for the appropriate application in tomcat4/conf/server.xml:

path="/application_name"

replace with:

path=""

Additionally, you should create domain.tld/conf/vhost.conf and add:

<Ifmodule mod_webapp.c>
WebAppConnection domain_tld_Connection1 warp Server_IP_address:9008
WebAppDeploy "yourapp.war" domain_tld_Connection1 "/"
</IfModule>

next, you should rebuild the apache configuration files with:

# /usr/local/psa/admin/sbin/websrvmng -a -v

and restart tomcat.

Now you can access your application with domain.tld path in browser.


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields