Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-835

ejb-jar.xml doesn't need to define a session-type

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 7.0.0.CR1
    • Component/s: EJB
    • Labels:
      None

      Description

      session-type in ejb-jar.xml does not need to be specified, the type might come from annotations.

      21:56:21,759 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."ejbembed_vehicle_ejb.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.unit."ejbembed_vehicle_ejb.jar".PARSE: Failed to process phase PARSE of deployment "ejbembed_vehicle_ejb.jar"
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1675)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_20]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_20]
      	at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]
      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Unknown session-type for session bean: EJBContextBean in deployment unit: deployment "ejbembed_vehicle_ejb.jar"
      	at org.jboss.as.ejb3.deployment.processors.dd.SessionBeanXmlDescriptorProcessor.processBeanMetaData(SessionBeanXmlDescriptorProcessor.java:96)
      	at org.jboss.as.ejb3.deployment.processors.dd.SessionBeanXmlDescriptorProcessor.processBeanMetaData(SessionBeanXmlDescriptorProcessor.java:64)
      	at org.jboss.as.ejb3.deployment.processors.dd.AbstractEjbXmlDescriptorProcessor.deploy(AbstractEjbXmlDescriptorProcessor.java:78)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
      	... 4 more
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                wolfc Carlo de Wolf
                Reporter:
                wolfc Carlo de Wolf
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: