Hi,
Looking at the source code based on the stack trace, seems one of
the resource-ref elements does not have a res-type declared. Did you
declare the resource references of that ejb module using deployment
descriptor files? If so, the res-type element is a required element for
resource-ref element. If you declared the resource-ref via annotaion
(@Resource), this is a possibly bug in the appserver since the code
should be able to figure out the res-type using the field/method
information.
- Hong
glassfish_at_javadesktop.org wrote:
>Hello,
>Sun Java System Application Server 9.1 (build b33e-beta)
>
>I have and .ear nad one of EJB modules is causing NPE both in deployment on AS and in verifier. I cannot go forward, the messages are meaningless. The same happens both during deploying/verifying complete EAR or single EJB jar file.
>
>Verifier:
>Error Description : java.lang.NullPointerException
>at com.sun.enterprise.deployment.util.EjbBundleValidator.computeRuntimeDefault(EjbBundleValidator.java:868)
>at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:659)
>at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2077)
>at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:698)
>at com.sun.enterprise.deployment.archivist.EjbArchivist.validate(EjbArchivist.java:177)
>at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:777)
>at com.sun.enterprise.tools.verifier.VerificationHandler.createApplicationDescriptor0(VerificationHandler.java:45
>1)
>at com.sun.enterprise.tools.verifier.VerificationHandler.createApplicationDescriptor(VerificationHandler.java:252
>
>AS deployment:
>[#|2007-03-25T17:44:10.210+0200|SEVERE|sun-appserver9.1|javax.enterprise.system.tools.deployment|_ThreadID=34;_ThreadName=Thread-126;_RequestID=79abcda9-72b4-4500-a11c-ec656e7d06a2;|Exception occured in J2EEC Phase
>com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module [XXXX] -- null
>at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:364)
>at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(ModuleDeployer.java:405)
>at com.sun.enterprise.deployment.backend.EjbModuleDeployer.deploy(EjbModuleDeployer.java:127)
>at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:163)
>at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:174)
>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.deploy(PEDeploymentService.java:266)
>at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:761)
>at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
>at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
>Caused by: java.lang.NullPointerException
>at com.sun.enterprise.deployment.util.EjbBundleValidator.computeRuntimeDefault(EjbBundleValidator.java:868)
>at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:659)
>at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2077)
>at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:698)
>at com.sun.enterprise.deployment.archivist.EjbArchivist.validate(EjbArchivist.java:177)
>at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:777)
>at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(ApplicationArchivist.java:731)
>at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(Deployer.java:329)
>... 10 more
>
>Any help would be apprieciated.
>
>Thanks
>Edek
>[Message sent by forum member 'edek234' (edek234)]
>
>http://forums.java.net/jive/thread.jspa?messageID=209774
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
>