• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

Tomcat - docBase=Document Root

V

vm12

Guest
I have made all changes in vhost.conf, Server.xml, and workers.properties to point my document base to my web application document root. But still I get page not found error on calling a jsp file. This is a very simple 1 jsp file application. Can someone please help. I will return the favor.
Please note that I don;t have any war file to be deployed. It's just a single jsp file in the document root with a supporting small java file and web.xml in web-inf directory. Also, I even tried packing these 3 files in a war and deploying but this did not help.

vhost.conf entry
-----------------
<IfModule mod_jk.c>
JkMount /*.jsp ajp13
JkWorkersFile /etc/httpd/conf/workers.properties
</IfModule>

<Directory /var/www/vhosts/DOMAIN/httpdocs/WEB-INF/>
AllowOverride None
Deny from all
</Directory>

Server.XML (only the service part)
-----------
<Service debug="0" name="PSA">
<Connector port="9008" enableLookups="true" debug="0" protocol="AJP/1.3"/>
<Connector port="9080" maxThreads="75" minSpareThreads="5" maxSpareThreads="75" enableLookups="true" acceptCount="10" debug="0" connectionTimeout="40000" disableUploadTimeout="true"/>
<Engine name="PSA" defaultHost="DOMAIN" debug="0">
<Host name="DOMAIN" debug="0" appBase="/var/www/vhosts/DOMAIN/httpdocs">
<Context crossContext="false" reloadable="false" useNaming="true" debug="0" swallowOutput="false" privileged="true" displayName="Tomcat Manager Application" docBase="/usr/share/tomcat5/server/webapps/manager" cookies="true" path="/manager" cachingAllowed="true"/>
<Context crossContext="false"
reloadable="false" useNaming="true" debug="0" swallowOutput="false"
privileged="true" displayName="Your Application Name"
docBase="/var/www/vhosts/DOMAIN/httpdocs" cookies="true"
path="" cachingAllowed="true"/>
<Realm className="org.apache.catalina.realm.MemoryRealm"/>
<Alias>
DOMAIN
</Alias>
</Host>
</Engine>
</Service>

-----------
 
Back
Top