On Feb 6, 2014 4:21 PM, "Shivam Mishra" <[email protected]> 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?
