2 Replies Latest reply on Feb 15, 2006 10:08 AM by delkant

    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---

    pedrosacosta

      When i start my jboss 4.0.3 SP1, i get the information that some mbeans are not correctly deployed. Here is the message:

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
       State: NOTYETINSTALLED
       Depends On Me:
       jboss:service=KeyGeneratorFactory,type=HiLo
       jboss.mq:service=StateManager
       jboss.mq:service=PersistenceManager
      
      ObjectName: jboss.har:service=HARDeployer
       State: NOTYETINSTALLED
       Depends On Me:
       jboss.har:service=Hibernate
      


      What can i do to solve tyhis situation, especially for the HARDeployer?

      Thanks,
      Pedro

        • 1. Re: --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
          pedrosacosta

          here are the files that i have:

          hibernate-service.xml

          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE server>
          
          <server>
           <!--
           Forces the deployement of HARDeployer
           Defines the HAR (Hibernate ARchive) deployer service. See the javadocs for
           org.jboss.hibernate.har.HARDeployer for more info.
           -->
          
           <mbean code="org.jboss.hibernate.har.HARDeployer" name="jboss.har:service=HARDeployer">
           <attribute name="ValidateDTDs">false</attribute>
           </mbean>
          
          </server>
          



          jboss-service.xml
          <?xml version="1.0" encoding="UTF-8"?>
          <!DOCTYPE server>
          
          <!-- Generated file - Do not edit! -->
          
          <server>
           <mbean code="org.jboss.hibernate.jmx.Hibernate" name="jboss.har:service=Hibernate">
           <depends>jboss.har:service=HARDeployer</depends>
           <depends>jboss.jca:service=LocalTxCM,name=SigoDS</depends>
           <attribute name="DatasourceName">java:/SigoDS</attribute>
           <attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
           <attribute name="Dialect">org.hibernate.dialect.SQLServerDialect</attribute>
           <attribute name="CacheProviderClass">org.hibernate.cache.HashtableCacheProvider</attribute>
           <attribute name="ShowSqlEnabled">true</attribute>
           </mbean>
          </server>
          


          This files are in the META-INF directory of my hibernate-service.har.

          If i need to put more files in here, please tell me.

          Thanks,
          Pedro

          • 2. Re: --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
            delkant

            hi, looks like you dont have a default datasource. like the one that is included in the deploy directory( $JBOSS_HOME/server/default/deploy ) when you have a new jboss istalation.

            when you put in your META-INF directory this two files, you are saying to the application server that you will use hibernate, but not how you will use this tool, or.. where and what database you'll use. that for we have a datasource-ds.xml file. like this one

            mydstoPostgres-ds.xml

            <?xml version="1.0" encoding="UTF-8"?>
            
            <datasources>
             <local-tx-datasource>
             <jndi-name>postgresDS</jndi-name>
             <connection-url>jdbc:postgresql://localhost/test</connection-url>
             <driver-class>org.postgresql.Driver</driver-class>
             <user-name>me</user-name>
             <password>secret</password>
             </local-tx-datasource>
            </datasources>
            


            this file is deployed also in the deploy directory next to your ear. the <jndi-name>postgresDS</jndi-name> line define how my application(.ear) will find my database,in your case, your application now are searching a datasource with a jndi-name DefaultDS . so you have to provide this service to your application.