users@glassfish.java.net

Query: JPA Entity Annotation Problems in Glassfish v2 b41

From: <glassfish_at_javadesktop.org>
Date: Fri, 18 May 2007 05:15:25 PDT

Hello,

I am attempting to deploy a web application that makes use of JPA to glassfish v2 b41. Unfortunately, the deployment always fails with the following error (full log at bottom):

***************************************************************************************************************************************************

java.lang.NullPointerException
        at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)

***************************************************************************************************************************************************

I am making use of the following environment:

JDK 1.6.0_01
glassfish v2 b41
glassfish persistence (toplink essentials) v2 b41d
JSF 1.2_04-b10-p01
Trinidad 1.2 build
Facelets 1.1.12

I have a junit test that creates an object and persists it to the database using the following persistence.xml without any problems.

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="ProgEnrolTestPU" transaction-type="RESOURCE_LOCAL">
    <provider>oracle.toplink.essentials.PersistenceProvider</provider>
    <class>au.edu.cqu.cis.web.candidate.Address</class>
    <class>au.edu.cqu.cis.web.candidate.Candidate</class>
    <class>au.edu.cqu.cis.web.candidate.Contact</class>
    <class>au.edu.cqu.cis.web.candidate.Culture</class>
    <class>au.edu.cqu.cis.web.candidate.Education</class>
    <class>au.edu.cqu.cis.web.candidate.Employment</class>
    <class>au.edu.cqu.cis.web.candidate.EnglishProficiency</class>
    <class>au.edu.cqu.cis.web.candidate.TertiaryEducation</class>
    <class>au.edu.cqu.cis.web.marketing.Marketing</class>
    <class>au.edu.cqu.cis.web.application.AdmissionAppl</class>
    <properties>
      <property name="toplink.logging.level" value="INFO"/>
      <property name="toplink.jdbc.user" value="..."/>
      <property name="toplink.jdbc.password" value="..."/>
      <property name="toplink.jdbc.url" value="..."/>
      <property name="toplink.jdbc.driver" value="..."/>
    </properties>
  </persistence-unit>
</persistence>

However, when I deploy to glassfish with the following persistence.xml config and entity annotations in some of the managed session beans, I get the original error outlined above.

<?xml version="1.0" encoding="UTF-8"?>
<persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
  <persistence-unit name="ProgEnrolPU" transaction-type="JTA">
    <provider>
        oracle.toplink.essentials.PersistenceProvider
    </provider>
    <jta-data-source>jdbc/PeopleSoft...</jta-data-source>
    <class>au.edu.cqu.cis.web.candidate.Address</class>
    <class>au.edu.cqu.cis.web.candidate.Candidate</class>
    <class>au.edu.cqu.cis.web.candidate.Contact</class>
    <class>au.edu.cqu.cis.web.candidate.Culture</class>
    <class>au.edu.cqu.cis.web.candidate.Education</class>
    <class>au.edu.cqu.cis.web.candidate.Employment</class>
    <class>au.edu.cqu.cis.web.candidate.EnglishProficiency</class>
    <class>au.edu.cqu.cis.web.candidate.TertiaryEducation</class>
    <class>au.edu.cqu.cis.web.marketing.Marketing</class>
    <class>au.edu.cqu.cis.web.application.AdmissionAppl</class>
    <exclude-unlisted-classes>false</exclude-unlisted-classes>
    <properties>
        <property name="toplink.logging.level" value="INFO"/>
        <property name="toplink.target-server" value="SunAS9"/>
    </properties>
  </persistence-unit>
</persistence>

I have only started to experience this problem with the introduction of annotated JPA entities in the project. Would anyone be able to assist me by pointing me in the right direction with this problem?

Thank you.

Regards,

Graeme.


D:/dev/env/jdk1.6.0\bin\java
-client
-XX:+UnlockDiagnosticVMOptions
-XX:MaxPermSize=192m
-Xmx512m
-XX:NewRatio=2
-XX:+LogVMOutput
-XX:LogFile=D:/dev/env/glassfish-v2-b41/domains/domain1/logs/jvm.log
-Dcom.sun.aas.ClassPathPrefix=
-Dcom.sun.aas.ClassPathSuffix=D:\dev\env\glassfish-v2-b41\addons\accessmanager\amWebServicesProvider.jar
-Dcom.sun.aas.ServerClassPath=
-Dcom.sun.aas.classloader.appserverChainJars.ee=
-Dcom.sun.aas.classloader.appserverChainJars=admin-cli.jar,admin-cli-ee.jar,dbschema.jar,j2ee-svc.jar
-Dcom.sun.aas.classloader.optionalOverrideableChain.ee=
-Dcom.sun.aas.classloader.optionalOverrideableChain=webservices-rt.jar,webservices-tools.jar,commons-logging.jar,commons-launcher.jar
-Dcom.sun.aas.classloader.serverClassPath.ee=%HADB_HOME%/lib/hadbjdbc4.jar,D:/dev/env/glassfish-v2-b41/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbm.jar,%HADB_HOME%/lib/hadbmgt.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.serverClassPath=D:/dev/env/glassfish-v2-b41/lib/install/applications/jmsra/imqjmsra.jar,D:/dev/env/glassfish-v2-b41/imq/lib/jaxm-api.jar,D:/dev/env/glassfish-v2-b41/imq/lib/fscontext.jar,D:/dev/env/glassfish-v2-b41/imq/lib/imqbroker.jar,D:/dev/env/glassfish-v2-b41/imq/lib/imqjmx.jar,D:/dev/env/glassfish-v2-b41/lib/ant/lib/ant.jar,D:/dev/env/glassfish-v2-b41/lib/SUNWjdmk/5.1/lib/jdmkrt.jar
-Dcom.sun.aas.classloader.sharedChainJars.ee=appserv-se.jar,appserv-ee.jar,%HADB_HOME%/lib/dbstate.jar,%HADB_HOME%/lib/hadbjdbc4.jar,jgroups-all.jar,%MFWK_HOME%/lib/mfwk_instrum_tk.jar
-Dcom.sun.aas.classloader.sharedChainJars=javaee.jar,D:/dev/env/jdk1.6.0/lib/tools.jar,install/applications/jmsra/imqjmsra.jar,commons-launcher.jar,D:/dev/env/glassfish-v2-b41/imq/lib/jaxm-api.jar,D:/dev/env/glassfish-v2-b41/imq/lib/fscontext.jar,D:/dev/env/glassfish-v2-b41/imq/lib/imqbroker.jar,D:/dev/env/glassfish-v2-b41/imq/lib/imqjmx.jar,D:/dev/env/glassfish-v2-b41/imq/lib/imqxm.jar,D:/dev/env/glassfish-v2-b41/lib/ant/lib/ant.jar,webservices-rt.jar,webservices-tools.jar,mail.jar,jsf-api.jar,jsf-impl.jar,appserv-jstl.jar,appserv-env.jar,jmxremote_optional.jar,D:/dev/env/glassfish-v2-b41/lib/SUNWjdmk/5.1/lib/jdmkrt.jar,commons-logging.jar,activation.jar,appserv-rt.jar,appserv-admin.jar,appserv-cmp.jar,D:/dev/env/glassfish-v2-b41/updatecenter/lib/updatecenter.jar,D:/dev/env/glassfish-v2-b41/jbi/lib/jbi.jar
-Dcom.sun.aas.configName=server-config
-Dcom.sun.aas.configRoot=D:/dev/env/glassfish-v2-b41/config
-Dcom.sun.aas.defaultLogFile=D:/dev/env/glassfish-v2-b41/domains/domain1/logs/server.log
-Dcom.sun.aas.domainName=domain1
-Dcom.sun.aas.installRoot=D:/dev/env/glassfish-v2-b41
-Dcom.sun.aas.instanceName=server
-Dcom.sun.aas.instanceRoot=D:/dev/env/glassfish-v2-b41/domains/domain1
-Dcom.sun.aas.processLauncher=SE
-Dcom.sun.aas.promptForIdentity=true
-Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
-Dcom.sun.enterprise.overrideablejavaxpackages=javax.help,javax.portlet
-Dcom.sun.enterprise.taglibs=appserv-jstl.jar,jsf-impl.jar
-Dcom.sun.enterprise.taglisteners=jsf-impl.jar
-Dcom.sun.identity.amclientsdk.configpath=D:\dev\env\glassfish-v2-b41\domains\domain1\config
-Dcom.sun.updatecenter.home=D:/dev/env/glassfish-v2-b41/updatecenter
-Ddomain.name=domain1
-Djava.endorsed.dirs=D:/dev/env/glassfish-v2-b41/lib/endorsed
-Djava.ext.dirs=D:/dev/env/jdk1.6.0/lib/ext;D:/dev/env/jdk1.6.0/jre/lib/ext;D:/dev/env/glassfish-v2-b41/domains/domain1/lib/ext;D:/dev/env/glassfish-v2-b41/javadb/lib
-Djava.library.path=D:\dev\env\glassfish-v2-b41\lib;D:\dev\env\glassfish-v2-b41\lib;D:\dev\env\glassfish-v2-b41\bin;D:\dev\env\glassfish-v2-b41\lib
-Djava.security.auth.login.config=D:/dev/env/glassfish-v2-b41/domains/domain1/config/login.conf
-Djava.security.policy=D:/dev/env/glassfish-v2-b41/domains/domain1/config/server.policy
-Djava.util.logging.manager=com.sun.enterprise.server.logging.ServerLogManager
-Djavax.management.builder.initial=com.sun.enterprise.admin.server.core.jmx.AppServerMBeanServerBuilder
-Djavax.net.ssl.keyStore=D:/dev/env/glassfish-v2-b41/domains/domain1/config/keystore.jks
-Djavax.net.ssl.trustStore=D:/dev/env/glassfish-v2-b41/domains/domain1/config/cacerts.jks
-Djdbc.drivers=org.apache.derby.jdbc.ClientDriver
-Djmx.invoke.getters=true
-Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000
-cp
;D:/dev/env/glassfish-v2-b41/lib/appserv-launch.jar
com.sun.enterprise.server.PELaunch
start
18/05/2007 21:41:03 com.sun.enterprise.admin.servermgmt.launch.ASLauncher process
INFO: goodbye
Starting Sun Java System Application Server 9.1 (build b41-beta2) ...
CORE5098: AS Socket Service Initialization has been completed.
CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.6.0_01] from [Sun Microsystems Inc.]
SEC1002: Security Manager is OFF.
ADM0001:MBeanServer initialized successfully
SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
WEB0114: SSO is disabled in virtual server [server]
WEB0114: SSO is disabled in virtual server [__asadmin]
RMIClient.getRMIClient: server
ADM1079: Initialization of AMX MBeans successful
ADM1504: Here is the JMXServiceURL for the Standard JMXConnectorServer: [service:jmx:rmi:///jndi/rmi://xxx:3662/jmxrmi]. This is where the remote administrative clients should connect using the standard JMX connectors
ADM1506: Status of Standard JMX Connector: Active = [true]
Failed to load deployment descriptor files from directory: D:/dev/env/glassfish-v2-b41/domains/domain1\generated\xml\j2ee-modules\ProgEnrol-war. Load them from directory : D:/netbwork/projects/ProgEnrol/ProgEnrol-war/build/web instead.
JBIFW0010: JBI framework ready to accept requests.
WEB0302: Starting Sun-Java-System/Application-Server.
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8081
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 8182
WEB0712: Starting Sun-Java-System/Application-Server HTTP/1.1 on 4849
Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/ProgEnrol'

***************************************************************************************************************************************************

java.lang.NullPointerException
        at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)

***************************************************************************************************************************************************

        at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
        at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:155)
        at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:171)
        at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1566)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1218)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:938)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:317)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
WebModule[/ProgEnrol]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.NullPointerException
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
        at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:155)
        at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:171)
        at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1566)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1218)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:938)
        at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:45)
        at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:283)
        at com.sun.appserv.management.util.misc.RunnableBase.run(RunnableBase.java:317)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
        at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)
        at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
        ... 19 more
PWC1412: WebModule[/ProgEnrol] ServletContext.log():Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
PWC1306: Context startup failed due to previous errors
PWC1412: WebModule[/ProgEnrol] ServletContext.log():Closing Spring root WebApplicationContext
SMGT0007: Self Management Rules service is enabled
INFO: AM configuration already done!
INFO: Access Manager post configuration successful.
Application server startup complete.
deployed with moduleid = ProgEnrol-war
Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/ProgEnrol'
java.lang.NullPointerException
        at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)
        at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:960)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1575)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1216)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:169)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:265)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:951)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:938)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:295)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:210)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
        at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:564)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:608)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:731)
        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.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
        at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
WebModule[/ProgEnrol]PWC1275: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
javax.faces.FacesException: java.lang.NullPointerException
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:408)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:5150)
        at com.sun.enterprise.web.WebModule.start(WebModule.java:308)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:960)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:944)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:671)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1575)
        at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1216)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:169)
        at com.sun.enterprise.server.WebModuleDeployEventListener.moduleDeployed(WebModuleDeployEventListener.java:265)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:951)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:938)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:448)
        at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
        at com.sun.enterprise.admin.server.core.DeploymentNotificationHelper.multicastEvent(DeploymentNotificationHelper.java:295)
        at com.sun.enterprise.deployment.phasing.DeploymentServiceUtils.multicastEvent(DeploymentServiceUtils.java:210)
        at com.sun.enterprise.deployment.phasing.ServerDeploymentTarget.sendStartEvent(ServerDeploymentTarget.java:285)
        at com.sun.enterprise.deployment.phasing.ApplicationStartPhase.runPhase(ApplicationStartPhase.java:119)
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:892)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:564)
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.start(PEDeploymentService.java:608)
        at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.start(ApplicationsConfigMBean.java:731)
        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.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:353)
        at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:336)
        at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:448)
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
        at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
        at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:77)
        at $Proxy1.invoke(Unknown Source)
        at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
        at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
        at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
        at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:725)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:818)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:258)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:189)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:193)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:255)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
        at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
        at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
Caused by: java.lang.NullPointerException
        at com.sun.faces.config.ManagedBeanFactoryImpl.scanForAnnotations(ManagedBeanFactoryImpl.java:1133)
        at com.sun.faces.config.ManagedBeanFactoryImpl.<init>(ManagedBeanFactoryImpl.java:156)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:926)
        at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:507)
        at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
        ... 75 more
PWC1412: WebModule[/ProgEnrol] ServletContext.log():Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
PWC1306: Context startup failed due to previous errors
PWC1412: WebModule[/ProgEnrol] ServletContext.log():Closing Spring root WebApplicationContext
[Message sent by forum member 'steyng' (steyng)]

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