Hai,
I am using tomcat for learning servlets and jsp.I am using tomcat 5.0.25.
I was developing a small webapplication.
I have put in a file called form.html under ~/tomcat5.0/webpps/Beer-v1(root directory of my application)/ and other classes and web.xml in respective directories (ie servlet and model classes in webapps/Beer-v1/WEB-INF/classes and web.xml in WEB-INF) and
when i am using the below url
http://localhost:8000/Beer-v1/form.html in the browser
(at the time of installation i have changed the port to 8000 instead of 8080,thats y i used the port 8000) i am getting the following error in the browser:-
HTTP Status 404 - /Beer-v1/form.html
type Status report
message /Beer-v1/form.html
description The requested resource (/Beer-v1/form.html) is not available.
and i have found the following error in logfile:-
2006-12-18 16:11:07 StandardContext[/Beer-v1]Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener
And the most confusing thing is when i am using war file and Tomcat Manager for deploying ,its working fine,even when i copied my entire directory structure except the
Beer-v1 directory(root directory of myapplication) to ~/ webapps/Root/ the form is getting displayed in the browser,but when i am trying to put the same directory structure separately in ~tomcat5.0/webapps/ its not working.
please help me solving this error bcoz i am stuck here and not able to run any application on Tomcat5.0. using the above method
logfile:-
2006-12-18 16:40:18 StandardContext[/Beer-v1]Error configuring application listener of class listeners.ContextListener
java.lang.ClassNotFoundException: listeners.ContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3753)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4321)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:683)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:432)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:964)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
at org.apache.catalina.core.StandardService.start(StandardService.java:476)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2298)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:284)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:422)
Please somebody help,Thanks in advance.