Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-5477

Ejb3Deployer does not create DeploymentScope for DeploymentUnit with no parent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • JBossAS-5.0.0.CR1
    • None
    • EJB
    • None

      Revision 72296:
      http://fisheye.jboss.org/browse/JBossAS/trunk/ejb3/src/main/org/jboss/ejb3/deployers/Ejb3Deployer.java?r1=71162&r2=72296

      ...has made the change that a null scope is passed into the ctor of Ejb3JBoss5Deployment, causing an NPE later down the chain:

      Caused by: java.lang.NullPointerException
      at org.jboss.ejb3.deployers.JBoss5DeploymentScope.getEjbContainer(JBoss5DeploymentScope.java:155)
      at org.jboss.ejb3.Ejb3Deployment.getEjbContainer(Ejb3Deployment.java:388)
      at org.jboss.ejb3.EJBContainer.resolveEjbContainer(EJBContainer.java:1320)
      ...etc

      I'd tried setting:

      scope = new JBoss5DeploymentScope(unit);

      ...in the case that parent==null, but this leads to deployment errors of other services on Startup. Additionally,

      unit.getAttachment(DeploymentScope.class)

      ...returns null.

      To test, run the "service" integration tests from the EJB3 TestSuite.

              starksm64 Scott Stark (Inactive)
              arubinge@redhat.com Andrew Rubinger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: