Hello all,

I tried both the options:
1. I uninstalled the tomcat and reinstalled so that not it resides 
c:\tomcat1.4
2. I tried changing my URL Patern" 
<url-pattern>/servets/TestServlet</url-pattern>

Now I am able to get the html file correctly and after clicking the show 
button it gives the following error:
"HTTP Status 404 - /testapp/TestServlet" ---servlet not found.


Where i went wrong? Please enlighten....

On 8/18/05, Raghupathy,Gurumoorthy <[EMAIL PROTECTED]> 
wrote:
> 
> Good spotted
> 
> -----Original Message-----
> From: Mark Thomas [mailto:[EMAIL PROTECTED]
> Sent: 18 August 2005 10:00
> To: Tomcat Users List
> Subject: Re: Http-status 500 error in Tomcat 4.1
> 
> 
> Just guessing, but are your servlets in a package? Packageless classes
> do not work. See http://jakarta.apache.org/tomcat/faq/classnotfound.html
> 
> Mark
> 
> subi wrote:
> > Hello All,
> >
> > I am using Tomcat 4.1. I just started working in it,
> >
> > so this asking may be childish, if so, pls don't
> > mistake me.
> >
> > Here is my webapp structure:
> >
> > 1. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\classes
> > -----here i have my servlet classes
> > 2. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\jsp
> > -----here i have a sample.htmfile
> > 3. C:\Program Files\Apache Group\Tomcat 4.1\webapps\testapp\WEB-INF
> > -----here is the web.xml resides
> >
> > my web.xml entry is like this:
> >
> > <!DOCTYPE web-app PUBLIC "-//Sun Microsystems,
> > Inc.//DTD Web Application 2.3//EN"
> > "http://java.sun.com/dtd/web-app_2_3.dtd";>
> > <web-app>
> > <servlet>
> > <servlet-name>TestServlet</servlet-name>
> > <servlet-class>TestServlet</servlet-class>
> > </servlet>
> >
> > <servlet-mapping>
> > <servlet-name>TestServlet</servlet-name>
> >
> > <url-pattern>/TestServlet</url-pattern>
> > </servlet-mapping>
> > </web-app>
> >
> > ------------------
> > the sample.htm has the following entries:
> >
> > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> > Transitional//EN">
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > <meta http-equiv="Content-Type" content="text/html;
> > charset=iso-8859-1">
> > </head>
> >
> > <body>
> > <p><font color="#000099">Hello, Welcome!</font> </p>
> > <form
> > action="http:\\localhost:8080\testapp\TestServlet" method="post"
> > name="form1" target="_self">
> > <input type="submit" name="Submit" value="Click Me">
> > </form>
> > <p>&nbsp; </p>
> > </body>
> > </html>
> >
> > ---------------
> >
> > Here is what I done:
> > 1. I started the Tomcat server
> > 2. opened the IE browser and
> "http://localhost:8080/testapp/jsp/sample.htm";
> > 3. clicked the button which gives the error "HTTP Status 500 -
> > TestServlet is not found"
> >
> > Please tell me what is the problem?
> >
> >
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
ilu,
subi

Reply via email to