0 Replies Latest reply on Sep 23, 2016 1:54 PM by bgundubi

    Issue with migrating jboss-5.1.0.GA (jboss.xml) to jboss EAP 6.4.0 (jboss-ejb3.xml)

    bgundubi

      Hi Everyone,

       

      When I am trying to Migrate our application ( contains EJB) from  jboss-5.1.0.GA to jboss EAP 6.4.0, Getting below deployment failure issues. Does anyone has idea on converting jboss.xml file to jboss-ejb3.xml without any issues? Attached code snippet of my jboss.xml & jboss-ejb3.xml files.

       

      Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS014185: Exception while parsing jboss-ejb3.xml: /C:/DEVTOOLS/redhat/EAP6.4.0/bin/content/COE-16.09.04.02.ear/network-ejb-16.02.00.09.jar/META-INF/jboss-ejb3.xml

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

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

        at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]

        ... 5 more

      Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[23,5]

      Message: Unexpected element '{http://java.sun.com/xml/ns/javaee}local' encountered

        at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)

       

      jboss.xml (jboss-5.1.0.GA)

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

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

      <jboss>

        <enterprise-beans>

        <session>

          <ejb-name>ServiceBean</ejb-name>

          <jndi-name>ServiceBean/remote</jndi-name>

          <local-jndi-name>ServiceBean/local</local-jndi-name>

          <port-component>

          <port-component-name>services</port-component-name>

          <port-component-uri>services/*</port-component-uri>

          </port-component>

        </session>

      </enterprise-beans>

      </jboss>

       

      jboss EAP 6.4.0 (jboss-ejb3.xml)

       

      <jboss:ejb-jar xmlns:jboss="http://www.jboss.com/xml/ns/javaee" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:s="urn:security"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  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>ServiceBean</ejb-name>

        <home>HomeServiceBean</home>

        <remote>RemoteServiceBean</remote>

        <local-home>LocalServiceBean</local-home>

        <local>LocalServiceBean</local>

        <ejb-class>com.xyz.services.Service</ejb-class>

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

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

        <ejb-ref>

        <ejb-ref-name>ejb/ServiceBean</ejb-ref-name>

        <ejb-ref-type>Session</ejb-ref-type>

        <local>ServiceBean/local</local>

        <remote>ServiceBean/remote</remote>

        </ejb-ref>

        <port-component>

        <port-component-name>services</port-component-name>

        <port-component-uri>services/*</port-component-uri>

        </port-component>

        </session>

        </enterprise-beans>

        <ejb-client-jar>

        network-ejbClient.jar

        <javaee:ejb-client-jar />

        </ejb-client-jar>

      </jboss:ejb-jar>