0 Replies Latest reply on Jul 7, 2014 11:35 PM by laiyhman

    EJB-2: Unexpected element 'transaction-type' encountered (From JBoss 4.2.3 GA to JBoss 7.1.1 Final)

    laiyhman

      Hi,

       

      I'm upgrading to JBoss 7.1.1 Final from JBoss 4.2.3 GA and the deployment of my ejb is giving out errors that basically says:

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: Exception while parsing ejb-jar.xml:

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[28,7]

      Message: Unexpected element 'transaction-type' encountered

       

      the [row,col] points to the following <transaction-type> element inside the ejb-jar.xml

       

      <session>

            <ejb-name>SnapshotManager</ejb-name>

            <home>com.iumnordic.snapshot.home.SnapshotManagerHome</home>

            <remote>com.iumnordic.snapshot.remote.SnapshotManager</remote>

            <ejb-class>com.iumnordic.snapshot.bean.SnapshotManagerBean</ejb-class>

            <session-type>Stateless</session-type>

            <transaction-type>Container</transaction-type>

          </session>

       

      Can anyone help?