I am working on the "Creating an Enterprise Application Using Maven" tutorial on netbeans.org, and am manually deploying an EAR file for the first time. In deploying to Glassfish I get the below error. I would appreciate any advice on how to go about fixing the errror.

Thanks!




WARNING: RAR8501: Exception during endpoint activation for ra [ jmsra ], activationSpecClass [ com.sun.messaging.jms.ra.ActivationSpec ] : java.lang.NullPointerException
SEVERE: MDB00017: [NewMessage]: Exception in creating message-driven bean container: [java.lang.Exception]
SEVERE: java.lang.Exception
java.lang.Exception
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:233)
at com.sun.ejb.containers.MessageBeanContainer.<init> (MessageBeanContainer.java:204)
at com.sun.ejb.containers.ContainerFactoryImpl.create Container(ContainerFactoryImpl.java:121)
at org.glassfish.ejb.startup.EjbApplication.loadConta iners(EjbApplication.java:234)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:290)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:101)
at org.glassfish.internal.data.ModuleInfo.load(Module Info.java:186)
at org.glassfish.internal.data.ApplicationInfo.load(A pplicationInfo.java:249)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:460)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execu te(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand (AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(A dminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnectionId(DirectConnectionFactory.java:42 4)
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnection(DirectConnectionFactory.java:522)
at com.sun.messaging.jms.ra.EndpointConsumer.createDi rectMessageConsumer(EndpointConsumer.java:752)
at com.sun.messaging.jms.ra.EndpointConsumer._init(En dpointConsumer.java:306)
at com.sun.messaging.jms.ra.EndpointConsumer.<init>(E ndpointConsumer.java:185)
at com.sun.messaging.jms.ra.ResourceAdapter.endpointA ctivation(ResourceAdapter.java:475)
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:225)
... 35 more

SEVERE: Exception while invoking class org.glassfish.ejb.startup.EjbDeployer load method
java.lang.RuntimeException: EJB Container initialization error
at org.glassfish.ejb.startup.EjbApplication.loadConta iners(EjbApplication.java:246)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:290)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:101)
at org.glassfish.internal.data.ModuleInfo.load(Module Info.java:186)
at org.glassfish.internal.data.ApplicationInfo.load(A pplicationInfo.java:249)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:460)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execu te(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand (AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(A dminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.Exception
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:233)
at com.sun.ejb.containers.MessageBeanContainer.<init> (MessageBeanContainer.java:204)
at com.sun.ejb.containers.ContainerFactoryImpl.create Container(ContainerFactoryImpl.java:121)
at org.glassfish.ejb.startup.EjbApplication.loadConta iners(EjbApplication.java:234)
... 32 more
Caused by: java.lang.NullPointerException
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnectionId(DirectConnectionFactory.java:42 4)
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnection(DirectConnectionFactory.java:522)
at com.sun.messaging.jms.ra.EndpointConsumer.createDi rectMessageConsumer(EndpointConsumer.java:752)
at com.sun.messaging.jms.ra.EndpointConsumer._init(En dpointConsumer.java:306)
at com.sun.messaging.jms.ra.EndpointConsumer.<init>(E ndpointConsumer.java:185)
at com.sun.messaging.jms.ra.ResourceAdapter.endpointA ctivation(ResourceAdapter.java:475)
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:225)
... 35 more

SEVERE: Exception while loading the app
INFO: file:/C:/Users/Ken/Documents/NetBeansProjects/MavenEnterpriseApp/MavenEnterpriseApp-ear/target/gfdeploy/com.mycompany_MavenEnterpriseApp-ear_ear_1.0-SNAPSHOT/MavenEnterpriseApp-ejb-1.0-SNAPSHOT_jar/_com.mycompany_MavenEnterpriseApp-ejb_ejb_1.0-SNAPSHOTPU logout successful
SEVERE: Exception while loading the app : EJB Container initialization error
java.lang.Exception
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:233)
at com.sun.ejb.containers.MessageBeanContainer.<init> (MessageBeanContainer.java:204)
at com.sun.ejb.containers.ContainerFactoryImpl.create Container(ContainerFactoryImpl.java:121)
at org.glassfish.ejb.startup.EjbApplication.loadConta iners(EjbApplication.java:234)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:290)
at org.glassfish.ejb.startup.EjbDeployer.load(EjbDepl oyer.java:101)
at org.glassfish.internal.data.ModuleInfo.load(Module Info.java:186)
at org.glassfish.internal.data.ApplicationInfo.load(A pplicationInfo.java:249)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:460)
at com.sun.enterprise.v3.server.ApplicationLifecycle. deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execu te(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.ex ecute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCo mmand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.acce ss$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$Exec utionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand (AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(A dminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service( GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath (HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMappe r.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(P rocessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(Proce ssorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(Process orTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute (DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtoc olFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(Defau ltProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(Htt pProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(Pr otocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(Selec tionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:7 1)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doW ork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run (AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnectionId(DirectConnectionFactory.java:42 4)
at com.sun.messaging.jms.ra.DirectConnectionFactory._ createConnection(DirectConnectionFactory.java:522)
at com.sun.messaging.jms.ra.EndpointConsumer.createDi rectMessageConsumer(EndpointConsumer.java:752)
at com.sun.messaging.jms.ra.EndpointConsumer._init(En dpointConsumer.java:306)
at com.sun.messaging.jms.ra.EndpointConsumer.<init>(E ndpointConsumer.java:185)
at com.sun.messaging.jms.ra.ResourceAdapter.endpointA ctivation(ResourceAdapter.java:475)
at com.sun.enterprise.connectors.inbound.ConnectorMes sageBeanClient.setup(ConnectorMessageBeanClient.ja va:225)
... 35 more