It fails to get Scanner and hence the NPE below. Any one knows why?
Suggested workarounds/fix?.
Here is the stack trace
[#|2008-03-27T18:08:29.968-0700|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|The
log message is null.
java.lang.NullPointerException
at
com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:427)
at
com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:347)
at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:319)
at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:210)
at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.parseModuleMetaData(JavaEEDeployer.java:219)
at
com.sun.enterprise.web.WebDeployer.parseModuleMetaData(WebDeployer.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:161)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:515)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:266)
at
com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:285)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:206)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:93)
at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:178)
at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:134)
at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
at
com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:106)
at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:78)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
|#]
[#|2008-03-27T18:08:30.078-0700|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Exception
while invoking class com.sun.enterprise.web.WebDeployer prepare method
java.lang.RuntimeException
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:164)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:515)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:266)
at
com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:285)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:206)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:93)
at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:178)
at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:134)
at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
at
com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:106)
at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:78)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
Caused by: java.lang.NullPointerException
at
com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:427)
at
com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:347)
at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:319)
at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:210)
at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.parseModuleMetaData(JavaEEDeployer.java:219)
at
com.sun.enterprise.web.WebDeployer.parseModuleMetaData(WebDeployer.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:161)
... 17 more
|#]
[#|2008-03-27T18:08:30.156-0700|SEVERE|GlassFish10.0|javax.enterprise.system.tools.deployment|_ThreadID=11;_ThreadName=Thread-4;|Exception
while deploying the app
java.lang.RuntimeException
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:164)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.prepare(ApplicationLifecycle.java:515)
at
com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:266)
at
com.sun.enterprise.v3.deployment.DeployCommand.execute(DeployCommand.java:285)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:206)
at
com.sun.enterprise.v3.admin.CommandRunner.doCommand(CommandRunner.java:93)
at
com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:178)
at
com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:134)
at
com.sun.grizzly.http.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:605)
at
com.sun.grizzly.http.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:536)
at
com.sun.grizzly.http.DefaultProcessorTask.process(DefaultProcessorTask.java:785)
at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:130)
at
com.sun.enterprise.v3.services.impl.HttpProtocolFilter.execute(HttpProtocolFilter.java:106)
at
com.sun.enterprise.v3.services.impl.GlassfishProtocolChain.executeProtocolFilter(GlassfishProtocolChain.java:61)
at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:78)
at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.util.WorkerThreadImpl.run(WorkerThreadImpl.java:179)
Caused by: java.lang.NullPointerException
at
com.sun.enterprise.deployment.archivist.Archivist.processAnnotations(Archivist.java:427)
at
com.sun.enterprise.deployment.archivist.Archivist.readAnnotations(Archivist.java:347)
at
com.sun.enterprise.deployment.archivist.Archivist.readDeploymentDescriptors(Archivist.java:319)
at
com.sun.enterprise.deployment.archivist.Archivist.open(Archivist.java:210)
at
com.sun.enterprise.deployment.archivist.ApplicationFactory.openArchive(ApplicationFactory.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.parseModuleMetaData(JavaEEDeployer.java:219)
at
com.sun.enterprise.web.WebDeployer.parseModuleMetaData(WebDeployer.java:138)
at
org.glassfish.javaee.core.deployment.JavaEEDeployer.loadMetaData(JavaEEDeployer.java:161)
... 17 more
|#]