1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Tomcat - docBase=Document Root

Discussion in 'Plesk for Linux - 8.x and Older' started by vm12, Dec 8, 2006.

  1. vm12

    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

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

    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"/>