4 Replies Latest reply on Dec 19, 2008 12:43 AM by venubabu kurra

    MBeans waiting for other MBeans

    maithili sinha Newbie

      Hi,
      I am stuck with this exception that occurs when I start up my jboss server..
      Could any body please help me with this...

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:ear=proj-ear.ear,jar=proj-biz.jar,unitName=sampledb
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=datasource/sampleDS,service=DataSourceBinding
      Depends On Me:
      jboss.j2ee:ear=proj-ear.ear,jar=proj-biz.jar,name=SampleEjb,service=EJB3

      ObjectName: jboss.j2ee:ear=proj-ear.ear,jar=proj-biz.jar,name=SampleEjb,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:ear=proj-ear.ear,jar=proj-biz.jar,unitName=sampledb

      ObjectName: persistence.units:ear=proj-ear.ear,unitName=sampledb
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=datasource/sampleDS,service=DataSourceBinding

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=datasource/sampleDS,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      persistence.units:ear=proj-ear.ear,jar=proj-biz.jar,unitName=sampledb
      persistence.units:ear=proj-ear.ear,unitName=sampledb

      I have checked for the datasource/sampleDS in the sample-ds.xml and it looks fine to me.

      Can anybody please help me with this.

      thanks...

        • 1. Re:  MBeans waiting for other MBeans
          jaikiran pai Master

          Can you post the persistence.xml and the sample-ds.xml? Looks like in the persistence.xml you are pointing to datasource/sampleDS which is configured through sample-ds.xml. By default, the datasources are bound to java: namespace. So you might have to change the persistence.xml to use java:/datasource/sampleDS

          • 2. Re:  MBeans waiting for other MBeans
            maithili sinha Newbie

            hi,
            my persistence.xml looks like this

            <persistence xmlns="http://java.sun.com/xml/ns/persistence"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
            http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
            version="1.0">
            <persistence-unit name="sampledb">
            org.hibernate.ejb.HibernatePersistence
            <jta-data-source>java:datasource/sampleDS</jta-data-source>
            com.c.p.model.C1
            com.c.p.dvrsched.model.C2




            </persistence-unit>


            and my sample-ds.xml looks like this



            <local-tx-datasource>
            <jndi-name>datasource/sampleDS</jndi-name>
            <connection-url>jdbc:oracle:thin:@127.0.0.l:1521:orcl</connection-url>
            <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
            <user-name>scott</user-name>
            tiger
            <min-pool-size>3</min-pool-size>
            <max-pool-size>25</max-pool-size>

            <type-mapping>Oracle10g</type-mapping>

            </local-tx-datasource>

            <local-tx-datasource>

            <!-- The jndi name of the DataSource, it is prefixed with java:/ -->
            <!-- Datasources are not available outside the virtual machine -->
            <jndi-name>jdbc/TestingDS</jndi-name>
            <!-- For in-process persistent db, saved when jboss stops.
            The org.jboss.jdbc.HypersonicDatabase mbean is required for proper db shutdown
            -->
            <connection-url>jdbc:hsqldb:target/testdb</connection-url>

            <!-- The driver class -->
            <driver-class>org.hsqldb.jdbcDriver</driver-class>

            <!-- The login and password -->
            <user-name>sa</user-name>



            <!-- The minimum connections in a pool/sub-pool. Pools are lazily constructed on first use -->
            <min-pool-size>5</min-pool-size>

            <!-- The maximum connections in a pool/sub-pool -->
            <max-pool-size>20</max-pool-size>

            <!-- The time before an unused connection is destroyed -->
            <!-- NOTE: This is the check period. It will be destroyed somewhere between 1x and 2x this timeout after last use -->
            <!-- TEMPORARY FIX! - Disable idle connection removal, HSQLDB has a problem with not reaping threads on closed connections -->
            <idle-timeout-minutes>0</idle-timeout-minutes>
            <track-statements/>
            <!-- HSQL DB benefits from prepared statement caching -->
            <prepared-statement-cache-size>32</prepared-statement-cache-size>

            <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

            <type-mapping>Hypersonic SQL</type-mapping>


            <!-- When using in-process (standalone) mode -->
            jboss:service=Hypersonic,database=testdb
            </local-tx-datasource>


            <!-- For hsqldb accessed from jboss only, in-process (standalone) mode -->

            testdb
            true





            I appreciate your help..

            thanks..

            • 3. Re:  MBeans waiting for other MBeans
              maithili sinha Newbie

              guys..

              I figured out.. I just needed the sample-ds.xml file in the jboss deploy dir..

              thanks...

              • 4. Re:  MBeans waiting for other MBeans
                venubabu kurra Newbie

                --- MBeans waiting for other MBeans ---
                ObjectName: jboss.j2ee:ear=book.ear,jar=book.jar,name=BookCatalogBean,service=EJB3
                State: NOTYETINSTALLED
                I Depend On:
                persistence.units:unitName=EntityBean

                --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
                ObjectName: persistence.units:unitName=EntityBean
                State: NOTYETINSTALLED
                Depends On Me:
                jboss.j2ee:ear=book.ear,jar=book.jar,name=BookCatalogBean,service=EJB3