• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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