Article:
  Deploying Web Applications to Tomcat
Subject:   Cant get this example to work on later version
Date:   2003-03-16 17:09:43
From:   anonymous2
Duplicated this example to the letter on
tomcat 4.18 it cant find the login servlet
This works fine on 4.0 is there something else
I should be doing for the later versions
thanx in advance


doofusmaximus@hotmail.com
Commander of the legions of the dorks
(lesser known relative of Decimus Maximus
Commander of the Roman army and the legions of the North )

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Cant get this example to work on later version
    2003-05-14 08:18:59  hkubba [View]

    An important addition is to be added here: in the web.xml we must have 2 tags inside the < web-app> tag, those are <servlet> and <servlet-mapping> so when the article says :

    <servlet>
    <servlet-name>login</servlet-name>
    <servlet-class>com.onjava.login</servlet-class>
    </servlet>

    another block should be added:

    <servlet-mapping>
    <servlet-name>login</servlet-name>
    <url-pattern>/login</url-pattern> < !-- note it is /login not login -->
    </servlet-mapping>

    this will make it work