You don't need to add a / (slash) to the <servlet-class> tag value.
The correct syntax would be :
<servlet-class>
    CHT.Control.CHTcontroller
 </servlet-class>
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com

----- Original Message -----
From: Ivan Handler <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 22, 2001 10:44 PM
Subject: can't find servlets


> I have an application that I am switching to MVC.  I suspect my provider
> has not configured my server correctly, but I have no idea.  If anyone
> has any insight on what I have done wrong or what could be wrong, I
> would greatly appreciate it.
>
> I have a context declared in my server.xml (I am using Tomcat 3.2.x).  I
> declare my servlet in web.xml as follows: (the comment does not exist in
> the original)
> ----------------------------------------
>     <servlet>
>        <servlet-name>
>            CHTcontroller
>        </servlet-name>
>        <display-name>
>          Controller Servlet
>        </display-name>
>        <servlet-class>
>           /CHT.Control.CHTcontroller             <!-- this is the
> complete qualified name  -->
>        </servlet-class>
>    </servlet>
> ----------------------------------------
> I also map the servlet as follows:
> ---------------------------------------
>     <servlet-mapping>
>         <servlet-name>
>             CHTcontroller
>         </servlet-name>
>         <url-pattern>
>            /controller
>         </url-pattern>
>     </servlet-mapping>
> --------------------------------------
> These constructions all work just fine with jsps (at least the ones I
> can get to before the controller is invoked).  I am also not able to get
> through to any of the example servlets, so I think there is a
> configuration error, but I do not know what it could be.  I am also on a
> virtual Linux host.
>
> btw, just to be clear I attempt to link to the servlet as follows
> http://domain-root/context-root/controller
>
> Again, thanks for your time in advance.
> --
> Ivan Handler
> Networking for Democracy
> [EMAIL PROTECTED]
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to