I'm using Tomcat 5.5 with Apache 2 and trying to setup an account under a
CPanel VPS to serve my Java webapps. 

 

I have a public_html directory which will serve static content and I have a
webapps folder at the same level as public_html where .war files get
deployed... the autoDeploy appears to be working and .jsp pages from both
the public_html and webapps folders are working properly, HOWEVER, the
welcome-file-list is not activating and when I browse to
myserver.com/mywebapp I get a directory listing instead of the
welcome-file-list. I'm positive I have the web.xml correct as I've used it
many times before... I'm less clear on the proper setup of Context inside of
server.xml and of the httpd.conf settings but like I said they appear to
work except for the welcome-file-list when someone navigates to
myserver.com/mywebapp... I know that web.xml is getting parsed as I have
servlet parameters which are being read.

 

Note, I'm using JkAutoAlias which I think may be part of the problem...

 

Here's a portion of my relevant httpd.conf:

 

<VirtualHost 99.99.99.99>

ServerAlias myserver.com

ServerAdmin [EMAIL PROTECTED]

DocumentRoot /home/myserver/public_html

JkAutoAlias /home/myserver/webapps

JkMount /*.jsp ajp13

JkMount /*/*.jsp ajp13

JkMount /servlet/* ajp13

JkMount /*/servlet/* ajp13

JkMount /servlets/* ajp13

JkMount /*/servlets/* ajp13

 

      <Host name="www.myserver.com" unpackWARS="true"
xmlNamespaceAware="false" autoDeploy="true" xmlValidation="false"
appBase="/home/myserver/webapps/">

        <Context path=""

                docBase="/home/myserver/public_html"

                debug="0"

                reloadable="true"

                trusted="false"/>

 

      </Host>

 

directory structure

/home/myserver/public_html

  test.jsp

/home/myserver/webapps

  mywebapp.war

  mywebapp/

    test.html

    test.jsp

    WEB-INF/web.xml

    WEB-INF/lib/

    WEB-INF/classes/

 

web.xml relevant contents:

 

    <welcome-file-list>

        <welcome-file>

            test.html

        </welcome-file>

    </welcome-file-list>

    

The owner of the files is 'tomcat' and the group is 'nobody'. Navigating
through a browser to the files works successfully so I know they can be
served.

 

Any ideas?? I don't seem to see any errors in catalina.out but maybe there's
another log I need to look at...

 

Thanks,

Cliff.

Reply via email to