Dear Bryan, Just confirmed that there are "myfaces-api-1.1.4.jar" and "myfaces-impl-1.1.4.jar" in my webapp/web-inf/lib directory..... For the 2nd point, I checked the glassfish/lib directory, I'm not sure if you mean "jsf-impl.jar" or ? Anyway, thanks for your reply. Tony
________________________________ From: Bryan Noll [mailto:[EMAIL PROTECTED] Sent: Friday, December 08, 2006 9:31 PM To: [email protected] Subject: Re: [appfuse-user] Problem with Glassfish. That class, StartupServletContextListener , is in this jar: myfaces-impl-1.1.3.jar. Is that thing not getting bundled into the war that you're deploying for some reason? Another possible common culprit is that the server already has that jar (probably an older version of it) in its 'common/lib' (different dir for each server obviously) location... and that older version doesn't have that exact class in that exact package. Although, it would surprise me if Glassfish distributes bundled with that jar. --Bryan On 12/8/06, YM-ITGS Tony Su 蘇聖貴 <[EMAIL PROTECTED]> wrote: Hi all, I have tried to use AppFuse to generate a project with JSF-Spring-Hibernate, and go thru the tutorials, then deploy on the Tomcat 5.5, it works perfectly. Now I try to deploy the same .war file to the Glassfish V1 Milestone 7 - build 48, and I already setup/modified to use the connection pools...etc. When start the glassfish, in the server log, there is a error message as following: ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Message ID: WebModule[/testAppFuse]Exception sending context initialized event to listener instance of class org.apache.myfaces.webapp.StartupServletContextListener java.lang.NoClassDefFoundError Complete Message org/apache/commons/el/Logger at org.apache.myfaces.shared_impl.util.ClassUtils.<clinit>(ClassUtils.java:41) at org.apache.myfaces.config.FacesConfigurator.feedStandardConfig (FacesConfigurator.java:149) at org.apache.myfaces.config.FacesConfigurator.configure(FacesConfigurator.java:126) at org.apache.myfaces.webapp.StartupServletContextListener .initFaces(StartupServletContextListener.java:69) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized( StartupServletContextListener.java:52) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4236) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4760) at com.sun.enterprise.web.WebModule.start(WebModule.java:292) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1095) at org.apache.catalina.core.StandardHost.start(StandardHost.java:907) at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1095) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:520) at org.apache.catalina.startup.Embedded.start(Embedded.java:920) at com.sun.enterprise.web.WebContainer.start (WebContainer.java:784) at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:722) at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:72) at com.sun.enterprise.server.ondemand.ServiceGroup.startLifecycleServices (ServiceGroup.java:266) at com.sun.enterprise.server.ondemand.WebServiceGroup.startLifecycleServices(WebServiceGroup.java:210) at com.sun.enterprise.server.ondemand.WebServiceGroup.start(WebServiceGroup.java:60) at com.sun.enterprise.server.ondemand.ServiceGroup$1.run(ServiceGroup.java:180) at java.security.AccessController.doPrivileged(Native Method) at com.sun.enterprise.server.ondemand.ServiceGroup.startChildren(ServiceGroup.java :177) at com.sun.enterprise.server.ondemand.MainServiceGroup.start(MainServiceGroup.java:45) at com.sun.enterprise.server.ondemand.ServerEntryListenerImpl.notifyEntry(ServerEntryListenerImpl.java:72) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.sendEvent (ServerEntryHelper.java:62) at com.sun.enterprise.server.ondemand.entry.ServerEntryHelper.generateAppLoaderEntryContext(ServerEntryHelper.java:47) at com.sun.enterprise.server.AbstractLoader.generateEntryContext(AbstractLoader.java :827) at com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:833) at com.sun.enterprise.server.DummyWebModuleLoader.load(DummyWebModuleLoader.java:62) at com.sun.enterprise.server.AbstractManager.load (AbstractManager.java:206) at com.sun.enterprise.server.ApplicationLifecycle.onStartup(ApplicationLifecycle.java:201) at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:326) at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup (OnDemandServer.java:112) at com.sun.enterprise.server.PEMain.run(PEMain.java:326) at com.sun.enterprise.server.PEMain.main(PEMain.java:260) 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:272) ------------------------------------------------------------------------------------------------------------------------------------------------------------------ I tried to search the related information, but unfortunately, none of them can solve this problem. And I also tried to generate another new project from Appfuse with Struts+Spring+Hibernate, and also deploy to glassfish, it's working perfectly. So, I suspect it's the JSF part cause this problem, but I don't have any idea how to deal with it. Maybe some of you face the same or similar problem can help me, Thank you very much. Cheers Tony
