help!why my virtualhost can't work?with exception like those
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   He_Jim
Posted On:   Tuesday, August 20, 2002 05:38 AM

2002-08-20 17:00:38 WarpHost[www.tungyung.com]: Installing web application at context path /tungyung from URL file:/webs/tungyung 2002-08-20 17:00:38 WebappLoader[/tungyung]: Deploying class repositories to work directory /tomcat/work/Apache/www.tungyung.com/tungyung 2002-08-20 17:00:38 StandardManager[/tungyung]: Seeding random number generator class java.security.SecureRandom 2002-08-20 17:00:38 StandardManager[/tungyung]: Seeding of random number generator has been completed 2002-08-20 17:00:39 ContextConfig[/tungyung]: Added certificates -> request attribute Valve 2002-08-20 17:00:39 ContextConfig[/tungyung]: Configured an authenticator for method FORM 2002-08-20 17:00:39 StandardContext[/tungyung]: Error confi   More>>

2002-08-20 17:00:38 WarpHost[www.tungyung.com]: Installing web application at context path /tungyung from URL file:/webs/tungyung
2002-08-20 17:00:38 WebappLoader[/tungyung]: Deploying class repositories to work directory /tomcat/work/Apache/www.tungyung.com/tungyung
2002-08-20 17:00:38 StandardManager[/tungyung]: Seeding random number generator class java.security.SecureRandom
2002-08-20 17:00:38 StandardManager[/tungyung]: Seeding of random number generator has been completed
2002-08-20 17:00:39 ContextConfig[/tungyung]: Added certificates -> request attribute Valve
2002-08-20 17:00:39 ContextConfig[/tungyung]: Configured an authenticator for method FORM
2002-08-20 17:00:39 StandardContext[/tungyung]: Error configuring application listener of class listeners.ContextListener
java.lang.ClassNotFoundException: listeners.ContextListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3155)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3404)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-08-20 17:00:39 StandardContext[/tungyung]: Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3155)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3404)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2002-08-20 17:00:39 StandardContext[/tungyung]: Skipped installing application listeners due to previous error(s)
2002-08-20 17:00:39 StandardContext[/tungyung]: Context startup failed due to previous errors
2002-08-20 17:00:41 [org.apache.catalina.connector.warp.WarpConnector] Connection from /176.1.1.14:32772 to /176.1.1.14:8008
.
--------------------------------------------
My apache-tomcat work with connector mod_webapp. it can display 127.0.0.1:8080
but can't display my virtualhost www.mydomain.com
with error:

Apache Tomcat/4.0.4 - HTTP Status 404 - /

------------------------------------------------------------

type Status report

message /

description The requested resource (/) is not available.

-----------------------------------

I think it output that result because top error!

who can give me answer thinks!!

   <<Less

Re: help!why my virtualhost can't work?with exception like those

Posted By:   michael_dean  
Posted On:   Tuesday, August 20, 2002 08:58 PM

It looks like you copied the Tomcat 4.x example web application's deployment descriptor (web.xml) and forgot to remove some of the things you're not using.



The problem is that Tomcat can not find the listener classes you have defined in web.xml. The important lines of the stack trace are:




Error configuring application listener of class listeners.ContextListener
java.lang.ClassNotFoundException: listeners.ContextListener
...
Error configuring application listener of class listeners.SessionListener
java.lang.ClassNotFoundException: listeners.SessionListener


Those classes are part of the Tomcat example web application. To tell Tomcat not to use them, simply delete the appropriate lines (shown below) from the deployment descriptor (web.xml):






listeners.ContextListener


listeners.SessionListener

About | Sitemap | Contact