webtier@glassfish.java.net

problem in running the project?

From: <webtier_at_javadesktop.org>
Date: Tue, 26 Aug 2008 04:26:20 PDT

Hello everybody,
I am new to glassFish. So, I am testing a new web project in glassFish-v2ur2 with NetBeans 6.1 and using JDK 1.5. I create new project and place few swing components in page1.jsp to test. After that I added listener in web.xml as:
<listener>
        <listener-class> org.apache.myfaces.webapp.StartupServletContextListener
       </listener-class>
</listener>

When I build and run the project error occurs:

WebModule[/Testweb]PWC1257: Error configuring application listener of class org.apache.myfaces.webapp.StartupServletContextListener
java.lang.ClassNotFoundException: org.apache.myfaces.webapp.StartupServletContextListener
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1498)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4466)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5184)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:326)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
        at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
        at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1672)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:955)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
        at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
        at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
        at com.sun.enterprise.web.EmbeddedWebContainer$WebEngine.startChildren(EmbeddedWebContainer.java:453)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1231)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:533)
        at org.apache.catalina.startup.Embedded.start(Embedded.java:936)
        at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
        at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:790)
        at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:84)
        at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:442)
        at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:120)
        at com.sun.enterprise.server.PEMain.run(PEMain.java:411)
        at com.sun.enterprise.server.PEMain.main(PEMain.java:338)
        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 com.sun.enterprise.server.PELaunch.main(PELaunch.java:412)


Why is it happening ? Was I did any wrong in the code?
Can anyone suggest me to solve the problem.....
Thank you.
[Message sent by forum member 'nicenepal' (nicenepal)]

http://forums.java.net/jive/thread.jspa?messageID=295339