On Thu, Feb 6, 2014 at 11:02 AM, Shivam Mishra <shmishra...@gmail.com>wrote:

> My directory structure is C:\Program Files\Apache Software
> Foundation\Tomcat 8.0\webapps\name\WEB-INF\Classes for .class file of
> Servlet
>

That should probably be lowercase "classes", e.g.

C:\Program Files\Apache Software Foundation\Tomcat
8.0\webapps\name\WEB-INF\classes\MyServlet.class



> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory C:\Program Files\Apache Software Foundation\Tomcat
> 8.0\webapps\docs
> 06-Feb-2014 14:50:36.370 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory C:\Program Files\Apache Software Foundation\Tomcat
> 8.0\webapps\examples
> 06-Feb-2014 14:50:37.825 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory C:\Program Files\Apache Software Foundation\Tomcat
> 8.0\webapps\manager
> 06-Feb-2014 14:50:37.936 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory C:\Program Files\Apache Software Foundation\Tomcat
> 8.0\webapps\name
> 06-Feb-2014 14:50:38.023 INFO [localhost-startStop-1]
> org.apache.catalina.startup.HostConfig.deployDirectory Deploying web
> application directory C:\Program Files\Apache Software Foundation\Tomcat
> 8.0\webapps\ROOT
>

Here you can see all the apps that were successfully deployed: docs,
example, manager, name (your app), ROOT (default application with "/"
context)


[ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
> 06-Feb-2014 15:07:38.489 INFO
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.core.StandardContext.reload Reloading Context with name
> [/name] has started
> 06-Feb-2014 15:07:38.928 INFO
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.core.StandardContext.reload Reloading Context with name
> [/name] is completed
> 06-Feb-2014 15:07:48.932 INFO
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.startup.HostConfig.reload Reloading context [/name]
> 06-Feb-2014 15:07:48.932 INFO
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.core.StandardContext.reload Reloading Context with name
> [/name] has started
> 06-Feb-2014 15:07:49.401 INFO
> [ContainerBackgroundProcessor[StandardEngine[Catalina]]]
> org.apache.catalina.core.StandardContext.reload Reloading Context with name
> [/name] is completed
>
>
How did you test your servlet?

Based on your configuration, it is probably something like:
http://localhost:8080/name/TestServlet

Does that work? What is the error message you get?

Reply via email to