Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2068

Ejb3DescriptorHandler throws IllegalStateException for singleton session-type configured in ejb-jar.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • EJB3_1 1.0.7
    • EJB3_1 1.0.6
    • core
    • None
    • jboss-ejb3-core:1.3.1

      The Ejb3DescriptorHandler throws IllegalStateException for the following in ejb-jar.xml:

      <session>
      ...
      <session-type>Singleton</session-type>
      </session>

      Caused by: java.lang.IllegalStateException: unknown bean type encountered org.jboss.metadata.ejb.jboss.JBossSessionBean31MetaData@32f54722

      {Calculator}

      at org.jboss.ejb3.Ejb3DescriptorHandler.getEjbType(Ejb3DescriptorHandler.java:380)
      at org.jboss.ejb3.Ejb3DescriptorHandler.populateBaseInfo(Ejb3DescriptorHandler.java:359)
      at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:196)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:720)
      at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:671)
      at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:653)
      at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:616)
      at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:493)
      at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:175)
      ... 49 more

      The Ejb3DescriptorHandler should ignore any types (like the new Singleton bean type) which it can't handle.

              jaikiran Jaikiran Pai (Inactive)
              jaikiran Jaikiran Pai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: