Hi,

This is the first time I have tried to integrate Apache 2.0.43 with Tomcat
(actually Jboss3.0.4 with integrated Tomcat 4.1.12) so bear with me. I am
having a few problems:

1) I have managed to get Apache2 and Tomcat 4.1.12 talking to each other
using the JK2 connecter.  However when I try to access the first page all my
static content is not loaded i.e. Pictures, javascript, CSS.  However if I
do a page reload in the browser it displays correctly.  How do I get around
this?

I am guessing these problems have something to do with my
workers2.properties file in $APACHE_HOME/conf:

[uri:/mywebapp]
info=mywebapp in the default context.
context=/mywebapp
debug=0

# for JSPs
[uri:/mywebapp/*.jsp]
info=Extension mapping

# for struts .do
[uri:/mywebapp/*.do]
info=Extension mapping

2) When I access my webapp root e.g. http://localhost/mywebapp/ it displays
the list of static content in my htdocs/mywebapp directory instead of going
to the index.jsp page or a "Not authorized" type page even though I have
specified display listings as false in tomcat's web.xml file and specified
index.jsp in the welcome list (I want it like this for all applications).  I
am thinking this problem is related to 1).

The relevant portions of my web.xml looks like the following:

    <servlet>
        <servlet-name>default</servlet-name>
        <servlet-class>
          org.apache.catalina.servlets.DefaultServlet
        </servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>0</param-value>
        </init-param>
        <init-param>
            <param-name>listings</param-name>
            <param-value>false</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>

    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>

3) This is more of a question really. In this situation which mime-type gets
sent to the browser? My assumption is that content put in my Apache htdocs
directory will use the Apache mime-types list, content returned by a file
download servlet would use the Tomcat ones?

Thanks in advance,

Khamsouk 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to