Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-3508

org.jboss.test.aop.test.SimpleBeanUnitTestCase fails because "ejb" is not bound

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBossAS-5.0.0.Beta3
    • JBossAS-5.0.0.Beta1
    • Test Suite
    • None

    Description

      org.jboss.test.aop.test.SimpleBeanUnitTestCase fails because "ejb" is not bound, because of missing files in META-INF.
      Solution:
      copy following xml files to:
      testsuite\src\resources\aop\simpleejb\META-INF

      ejb-jar.xml:
      **************************
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">

      <ejb-jar >

      <description><![CDATA[No Description.]]></description>
      <display-name>Generated by XDoclet</display-name>

      <enterprise-beans>

      <!-- Session Beans -->
      <session >
      <description><![CDATA[]]></description>

      <ejb-name>test/Simple</ejb-name>

      <home>org.jboss.test.aop.simpleejb.SimpleHome</home>
      <remote>org.jboss.test.aop.simpleejb.Simple</remote>
      <ejb-class>org.jboss.test.aop.simpleejb.SimpleBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>

      </session>

      <!--
      To add session beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called session-beans.xml that contains
      the <session></session> markup for those beans.
      -->

      <!-- Entity Beans -->
      <!--
      To add entity beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called entity-beans.xml that contains
      the <entity></entity> markup for those beans.
      -->

      <!-- Message Driven Beans -->
      <!--
      To add message driven beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called message-driven-beans.xml that contains
      the <message-driven></message-driven> markup for those beans.
      -->

      </enterprise-beans>

      <!-- Relationships -->

      <!-- Assembly Descriptor -->
      <assembly-descriptor >
      <!--
      To add additional assembly descriptor info here, add a file to your
      XDoclet merge directory called assembly-descriptor.xml that contains
      the <assembly-descriptor></assembly-descriptor> markup.
      -->

      <!-- finder permissions -->

      <!-- transactions -->
      <container-transaction >
      <method >
      <ejb-name>test/Simple</ejb-name>
      <method-name>*</method-name>
      </method>
      <trans-attribute>Required</trans-attribute>
      </container-transaction>

      <!-- finder transactions -->
      </assembly-descriptor>

      </ejb-jar>
      ************************************
      ************************************
      jboss.xml:
      ******************
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

      <jboss>

      <enterprise-beans>

      <!--
      To add beans that you have deployment descriptor info for, add
      a file to your XDoclet merge directory called jboss-beans.xml that contains
      the <session></session>, <entity></entity> and <message-driven></message-driven>
      markup for those beans.
      -->

      <session>
      <ejb-name>test/Simple</ejb-name>
      <jndi-name>ejb/test/Simple</jndi-name>

      </session>

      </enterprise-beans>

      <resource-managers>
      </resource-managers>

      </jboss>

      Attachments

        Activity

          People

            dandread1@redhat.com Dimitrios Andreadis
            jaroslaw.kijanowski Jaroslaw Kijanowski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: