• 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.

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