tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diana Fu <diana...@nexsi.com>
Subject url mapping problem
Date Tue, 15 Aug 2000 23:02:15 GMT
i'm learning to run the hello app that was used in the "Developing
Application with Tomcat" doc,
and am running into url mapping problems.

in usr/tomcat/conf/tomcat.conf, i added:
ApJServMount /myapp /root
<Location /myapp/WEB-INF/ >
        AllowOverride None
        deny from all
</Location>

in usr/tomcat/conf/server.xml, i added:
        <Context path="/myapp" docBase="webapps/myapp" debug="0"
reloadable="true">
        </Context>

in usr/tomcat/webapps/myapp/WEB-INF/web.xml, i have:

    <servlet>
        <servlet-name>HelloServlet</servlet-name>
        <servlet-class>Hello</servlet-class>
    </servlet>

    <servlet-mapping>
        <servlet-name>HelloServlet</servlet-name>
        <url-pattern>/hello</url-pattern>
    </servlet-mapping>

i can get to the servlet by going to
http://localhost/myapp/servlet/Hello as expected.
however, http://localhost/myapp/hello returns:
Not Found
The requested URL /myapp/hello was not found on this server.

it appears that the servlet url mapping isn't working.  what did i do
wrong?

thanks,

diana


Mime
View raw message