users@glassfish.java.net

Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener

From: Ryan de Laplante <ryan_at_ijws.com>
Date: Mon, 19 Mar 2007 09:50:00 -0400

Hi,

Recently I noticed that every time I start Sun App Server 9.1 U1 P1 I
get the following exception. Once the server is started, I'm able to
run the web app and there are no issues. Everything works perfectly.
The class it is complaining about is a POJO inside of an EJB module.
It's not a session bean or any type of ejb, just a POJO that implements
Serializable.

I'm wondering if the problem is related to this bug:

https://glassfish.dev.java.net/issues/show_bug.cgi?id=714


I'm running on JDK 1.6.0 b105, Windows XP Pro.


Thanks,
Ryan


WebModule[/ProductNameWeb]Exception sending context initialized event to
listener instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError: Lcom/company/product/domain/Reservation;
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
        at java.lang.Class.getDeclaredFields(Class.java:1743)
        at
com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1118)
        at
com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:151)
        at
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:1038)
        at
com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:600)
        at
com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:496)
        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:924)
        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:794)
        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:831)
        at
com.sun.enterprise.server.AbstractLoader.notifyAppEvent(AbstractLoader.java:837)
        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:597)
        at com.sun.enterprise.server.PELaunch.main(PELaunch.java:272)
Context startup failed due to previous errors