13 Replies Latest reply on Dec 16, 2014 7:30 AM by valsaraj viswanathan

    Issue with migrating jboss.xml to jboss-ejb3.xml

    valsaraj viswanathan Master

      Hi,

      I am getting following error when I migrate jboss.xml to jboss-ejb3.xml to deploy in JBoss-AS-7.1.2.

      2014-12-05 14:55:25,570 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.deployment.subunit."app.ear"."appEJB.jar".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."app.ear"."appEJB.jar".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "appEJB.jar" of deployment "app.ear"

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:123)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811)

        at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)

        at java.lang.Thread.run(Thread.java:722)

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014185: Exception while parsing jboss-ejb3.xml: /D:/jboss-as-7.1.2.Final/bin/content/app.ear/appEJB.jar/META-INF/jboss-ejb3.xml

        at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.parseJBossEjb3Xml(EjbJarParsingDeploymentUnitProcessor.java:291)

        at org.jboss.as.ejb3.deployment.processors.EjbJarParsingDeploymentUnitProcessor.deploy(EjbJarParsingDeploymentUnitProcessor.java:123)

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:116)

        ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[79,4]

      Message: Unexpected element '{http://java.sun.com/xml/ns/javaee}destination-jndi-name' encountered

       

      jboss.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 6.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_6_0.dtd">

      <jboss>

        <security-domain>java:/jaas/appLDAP</security-domain>

        <enterprise-beans>

        <session>

        <ejb-name>InvitationBean</ejb-name>

        <resource-ref>

        <res-ref-name>jms/JmsXA</res-ref-name>

        <jndi-name>java:/JmsXA</jndi-name>

        </resource-ref>

        <message-destination-ref>

        <message-destination-ref-name>queue/invitation</message-destination-ref-name>

        <jndi-name>/queue/invitation</jndi-name>

        </message-destination-ref>

        </session>

        <message-driven>

        <ejb-name>InvitationSender</ejb-name>

        <destination-jndi-name>java:/queue/invitation</destination-jndi-name>

        </message-driven>

        <message-driven>

        <ejb-name>ExportMdb</ejb-name>

        <destination-jndi-name>java:/queue/export</destination-jndi-name>

        <resource-ref>

        <res-ref-name>jms/JmsXA</res-ref-name>

        <jndi-name>java:/JmsXA</jndi-name>

        </resource-ref>

        </message-driven>

        </enterprise-beans>

      </jboss>

       

      jboss-ejb3.xml:

      <?xml version="1.1" encoding="UTF-8"?>

      <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee"

                     xmlns="http://java.sun.com/xml/ns/javaee"

                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

                     xmlns:s="urn:security:1.1"

                     xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss-ejb3-2_0.xsd http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"

                     version="3.1"

                     impl-version="2.0">

        <enterprise-beans>

        <session>

        <ejb-name>InvitationBean</ejb-name>

        <resource-ref>

        <res-ref-name>jms/JmsXA</res-ref-name>

        <jndi-name>java:/JmsXA</jndi-name>

        </resource-ref>

        <message-destination-ref>

        <message-destination-ref-name>queue/invitation</message-destination-ref-name>

        <jndi-name>/queue/invitation</jndi-name>

        </message-destination-ref>

        </session>

        <message-driven>

        <ejb-name>InvitationSender</ejb-name>

      <destination-jndi-name>java:/queue/invitation</destination-jndi-name>

        </message-driven>

        <message-driven>

        <ejb-name>ExportMdb</ejb-name>

      <destination-jndi-name>java:/queue/export</destination-jndi-name>

        <resource-ref>

      <res-ref-name>jms/JmsXA</res-ref-name>

        <jndi-name>java:/JmsXA</jndi-name>

        </resource-ref>

        </message-driven>

        </enterprise-beans>

        <assembly-descriptor>

        <s:security>

                 <s:security-domain>java:/jaas/appLDAP</s:security-domain>

              </s:security>

          </assembly-descriptor>

      </jboss:ejb-jar>

       

      what change will fix this issue?