tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From INTEGRITY Ügyfélszolgálat <off...@integrity.hu>
Subject I can not set the web.xml of a new conext in jakarta-tomcat-4.0-b1
Date Wed, 31 Jan 2001 19:03:43 GMT
I don't known why don't work cause I tried to copy examples context
 to an another name, but it not worked.
I tried to create a context in tomcat 3.2.1 (it works), and copy
 to tomcat 4.0b1 (it doesn't work, is is the owntest context).

Anybody knows why?

Here my owntest (It works in 3.2.1 but it doesn't in 4.0b1!):

I create a new context in server.xml:
        <Context path="/owntest" 
                 docBase="owntest" 
                 crossContext="false"
                 debug="0" 
                 reloadable="true" >
        </Context>

I set webapps/owntest/:

Web-inf/
 classes/SnoopServlet.class
 web.xml

web.xml:

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
    "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

<web-app>
    <servlet>
        <servlet-name>
            snoop
        </servlet-name>
        <servlet-class>
            SnoopServlet
        </servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>
            snoop
        </servlet-name>
        <url-pattern>
            /snoop
        </url-pattern>
    </servlet-mapping>
</web-app>



Mime
View raw message