tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Watts <...@cliftonfarm.org>
Subject Re: Http Status 404
Date Thu, 06 Feb 2014 15:42:44 GMT
On Thu, 2014-02-06 at 10:32 -0500, Neven Cvetkovic wrote:
> On Feb 6, 2014 4:21 PM, "Shivam Mishra" <shmishra101@gmail.com> wrote:
> >
> > My tomcat and its example application is running but I got an error with
> my
> > own application .My port number is 8080 .I compile my servlet programme in
> > jdk 7 .and my web.xml file is below
> > <?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>MyServlet</servlet-name>
> >     <servlet-class>TestServlet</servlet-class>
> >
> >   </servlet>
> > <servlet-mapping>
> > <servlet-name>MyServlet</servlet-name>
> > <url-pattern>/TestServlet</url-pattern>
> > </servlet-mapping>
> > </web-app>
> > My servlet class name is TestServlet
> >
> >
> 
> Ok, great.
> 
> Now tell us about directory structure of your application, what files,
> where did you put the servlet class file, etc.
> 
> Also what do logs say once you deploy your app?

And just as importantly: What URL are you using to access your app?




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message