Does EJB 3.1 applications require both annotations and ejb-jar.xml to deploy correctly in JBoss EAP 6?

Solution In Progress - Updated -

Issue

  • Does EJB 3.1 applications require annotations as well as ejb-jar.xml to deploy correctly in JBoss EAP 6. In my case I have to use both to run project. In my project when I don't use ejb-jar .xml, then it shows the below error :
16:49:42,459 ERROR  [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014612: Operation ("full-replace-deployment") failed- address: ([]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"ejb3.1.ear\".\"ejb3.1.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"ejb3.1.ear\".\"ejb3.1.jar\".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment
\"ejb3.1.jar\" of deployment \"ejb3.1.ear\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014551: <session-type> not specified for ejb ejb3.1. This must be present in ejb-jar.xml"}}

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.