tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pix_siro <flaviosuard...@alice.it>
Subject configure the web.xml file to display the index.jsp page of a web application
Date Tue, 07 Dec 2010 10:43:17 GMT

Hi all,
I'm working on Ubuntu 9.10 where I have installed Tomcat 7. I have a problem
with following web.xml file: the program work fine but when I try to connect
to localhost:8080/OverEncrypt I can not show any page even if I set
index.jsp.

The folder configuration is the following:
$CATALINA_HOME/webapps/OverEncrypt/WEB-INF with classes and lib folder;
$CATALINA_HOME/webapps/OverEncrypt/WEB-INF/web.xml;
$CATALINA_HOME/webapps/OverEncrypt/index.jsp the page that I want show on
the browser;

What should I change to display the page index.jsp?

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee

                      http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

  version="3.0"

  metadata-complete="true">
        <display-name>OverEncrypt</display-name>
        <servlet>
                <servlet-name>milton</servlet-name>
               
<servlet-class>com.bradmcevoy.http.MiltonServlet</servlet-class>
                <init-param>
                       
<param-name>resource.factory.factory.class</param-name>
                       
<param-value>unibg.overencrypt.Initializer</param-value>
                </init-param>
                <init-param>
                       
<param-name>authentication.handler.classes</param-name>
                       
<param-value>com.bradmcevoy.http.http11.auth.BasicAuthHandler</param-value>
                </init-param>
                <init-param>
                        <param-name>not.found.url</param-name>
                        <param-value>/404.jsp</param-value>
                </init-param>
                <init-param>
                        <param-name>filter_0</param-name>
                       
<param-value>com.bradmcevoy.http.DebugFilter</param-value>
                </init-param>
                <load-on-startup>0</load-on-startup>
        </servlet>

        <servlet-mapping>
                <servlet-name>milton</servlet-name>
                <url-pattern>/*</url-pattern>
        </servlet-mapping>

        <session-config>
                <session-timeout>30</session-timeout>
        </session-config>

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

</web-app>
-- 
View this message in context: http://old.nabble.com/configure-the-web.xml-file-to-display-the-index.jsp-page-of-a-web-application-tp30395063p30395063.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message