3 Replies Latest reply on Jan 30, 2008 1:18 AM by Geetha Adhikeshavalu

    MBeans waiting for other MBeans problem in DataSourceBinding

    Geetha Adhikeshavalu Newbie

      Hi,
      I am using ejb3, MySql 4.1, and JBoss 4.2.2 Ga in my application..
      when i worked i have a problem ie.,

      12:38:10,542 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- Packages waiting for a deployer ---
      org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
      altDD: null
      lastDeployed: 1201590490542
      lastModified: 1201590492000
      mbeans:

      --- Incompletely deployed packages ---
      org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
      deployer: null
      status: null
      state: INIT_WAITING_DEPLOYER
      watch: file:/C:/eswood Project/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
      altDD: null
      lastDeployed: 1201590490542
      lastModified: 1201590492000
      mbeans:

      --- MBeans waiting for other MBeans ---
      ObjectName: persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
      State: NOTYETINSTALLED
      I Depend On:
      jboss.jca:name=MySqlDS,service=DataSourceBinding
      Depends On Me:
      jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
      jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
      jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
      jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3

      ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

      ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

      ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

      ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3
      State: NOTYETINSTALLED
      I Depend On:
      persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:name=MySqlDS,service=DataSourceBinding
      State: NOTYETINSTALLED
      Depends On Me:
      persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU


      12:38:10,651 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
      12:38:10,683 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
      12:38:10,698 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 26s:640ms


      My persistance.xml is.........
      <?xml version="1.0" encoding="UTF-8"?>
      <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="EJBStrutsEJBPU" transaction-type="JTA">
      org.hibernate.ejb.HibernatePersistance
      <jta-data-source>java:/MySqlDS</jta-data-source>







      </persistence-unit>


      and my DataSource is .........
      <?xml version="1.0" encoding="UTF-8"?>

      <!-- $Id: MySqlDS.xml 41016 2006-02-07 14:23:00Z acoliver $ -->
      <!-- Datasource config for MySQL using 3.0.9 available from:
      http://www.mysql.com/downloads/api-jdbc-stable.html
      -->


      <local-tx-datasource>
      <jndi-name>MySqlDS</jndi-name>
      <connection-url>jdbc:mysql://localhost/sampleejb</connection-url>
      <driver-class>com.mysql.jdbc.Driver</driver-class>
      <user-name>root</user-name>
      root


      <type-mapping>mySQL</type-mapping>

      </local-tx-datasource>


      i stored it in Jboss-Home/server/default/deploy..

      My JNDI is ..........
      java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
      java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
      java.naming.provider.url=localhost

      pls, help me.....

        • 1. Re: MBeans waiting for other MBeans problem in DataSourceBin
          Geetha Adhikeshavalu Newbie

          Hi,
          I am using ejb3, MySql 4.1, and JBoss 4.2.2 Ga in my application..
          when i worked i have a problem ie.,

          12:38:10,542 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

          --- Packages waiting for a deployer ---
          org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
          deployer: null
          status: null
          state: INIT_WAITING_DEPLOYER
          watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
          altDD: null
          lastDeployed: 1201590490542
          lastModified: 1201590492000
          mbeans:

          --- Incompletely deployed packages ---
          org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
          deployer: null
          status: null
          state: INIT_WAITING_DEPLOYER
          watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml
          altDD: null
          lastDeployed: 1201590490542
          lastModified: 1201590492000
          mbeans:

          --- MBeans waiting for other MBeans ---
          ObjectName: persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
          State: NOTYETINSTALLED
          I Depend On:
          jboss.jca:name=MySqlDS,service=DataSourceBinding
          Depends On Me:
          jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
          jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
          jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
          jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3

          ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
          State: NOTYETINSTALLED
          I Depend On:
          persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

          ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
          State: NOTYETINSTALLED
          I Depend On:
          persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

          ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
          State: NOTYETINSTALLED
          I Depend On:
          persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

          ObjectName: jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3
          State: NOTYETINSTALLED
          I Depend On:
          persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU

          --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
          ObjectName: jboss.jca:name=MySqlDS,service=DataSourceBinding
          State: NOTYETINSTALLED
          Depends On Me:
          persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU


          12:38:10,651 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
          12:38:10,683 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
          12:38:10,698 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 26s:640ms


          My persistance.xml is.........
          <?xml version="1.0" encoding="UTF-8"?>
          <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="EJBStrutsEJBPU" transaction-type="JTA">
          org.hibernate.ejb.HibernatePersistance
          <jta-data-source>java:/MySqlDS</jta-data-source>







          </persistence-unit>


          and my DataSource is .........
          <?xml version="1.0" encoding="UTF-8"?>

          <!-- $Id: MySqlDS.xml 41016 2006-02-07 14:23:00Z acoliver $ -->
          <!-- Datasource config for MySQL using 3.0.9 available from:
          http://www.mysql.com/downloads/api-jdbc-stable.html
          -->


          <local-tx-datasource>
          <jndi-name>MySqlDS</jndi-name>
          <connection-url>jdbc:mysql://localhost/sampleejb</connection-url>
          <driver-class>com.mysql.jdbc.Driver</driver-class>
          <user-name>root</user-name>
          root


          <type-mapping>mySQL</type-mapping>

          </local-tx-datasource>


          i stored it in Jboss-Home/server/default/deploy..

          My JNDI is ..........
          java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
          java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
          java.naming.provider.url=localhost

          pls, help me.....

          • 2. Re: MBeans waiting for other MBeans problem in DataSourceBin
            jaikiran pai Master

             

            org.jboss.deployment.DeploymentInfo@e234742c { url=file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml }
            deployer: null
            status: null
            state: INIT_WAITING_DEPLOYER
            watch: file:/C:/jboss-4.2.2.GA/server/default/deploy/MySqlDS.xml


            Rename the MySqlDS.xml to MySql-ds.xml. A datasource filename is expected to end with -ds.xml.

            See this for more details http://wiki.jboss.org/wiki/Wiki.jsp?page=DSdotXML

            • 3. Re: MBeans waiting for other MBeans problem in DataSourceBin
              Geetha Adhikeshavalu Newbie

              Hi,

              Thank you i resolved that error .........
              But now i have another error
              ie.,
              javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapping.Column(books)]

              --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
              ObjectName: persistence.units:jar=EJBStrutsEJB.jar,unitName=EJBStrutsEJBPU
              State: FAILED
              Reason: javax.persistence.PersistenceException: org.hibernate.MappingException: Could not determine type for: java.util.List, for columns: [org.hibernate.mapping.Column(books)]
              I Depend On:
              jboss.jca:service=DataSourceBinding,name=MySqlDS
              Depends On Me:
              jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookDAO,service=EJB3
              jboss.j2ee:jar=EJBStrutsEJB.jar,name=CustomerDAO,service=EJB3
              jboss.j2ee:jar=EJBStrutsEJB.jar,name=LibraryCart,service=EJB3
              jboss.j2ee:jar=EJBStrutsEJB.jar,name=BookTest,service=EJB3

              I tried to do the example in http://www.laliluna.de/ejb-3-struts-tutorial-jboss.html b'cause my project is shopping cart project using ejb3 and JBoss.
              I am new to ejb3 and hibernate
              pls help me...
              what have to do now..