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 
 

Reply via email to