6 Replies Latest reply on Apr 12, 2010 12:44 PM by rdelarosa

    Error: "DEPLOYMENTS MISSING DEPENDENCIES"

    rdelarosa

      Hi !!

       

      I deployed a web application that is inside an ".ear" file.

      When I start JBoss version 5.0.1.GA. the next error appears on the console:

       

      10:34:49,578 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of
      incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

       

      DEPLOYMENTS MISSING DEPENDENCIES:
        Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is m
      issing the following dependencies:
          Dependency "jboss.jdbc:datasource=DefaultDS,service=metadata" (should be in
      state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jdbc:da
      tasource=DefaultDS,service=metadata' **")

       

      I am using JBoss version 5.0.1.GA.

      My OS is Windows XP Service Pack 2

       

      Any help is very appreciated.

       

      Ricardo

        • 1. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
          peterj

          Were there any error earlier in the console log? Is so, please post the first one.

           

          According to the this deployment report, it would appear that the DefaultDS datasource did not deploy correctly. Did you do anything with the server/xxx/deploy/hsqldb-ds.xml file? Did you poerhaps attempt to replace hsqldb with another database?

          1 of 1 people found this helpful
          • 2. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
            rdelarosa

            Thank you for helping me.

             

            I replaced the file "server/default/deploy/hsqldb-ds.xml" with the file named "jbpm-ds.xml",  in the same directory.

            The content of the jbpm-ds.xml file is:

             

            <code>

             

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

             

            <datasources>

             

               <local-tx-datasource>
                  <jndi-name>DefaultDS</jndi-name>
                  <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:xe</connection-url>
                  <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                  <user-name>BPM</user-name>
                  <password>BPM</password>
                  <min-pool-size>1</min-pool-size>
                  <max-pool-size>5</max-pool-size>
                  <idle-timeout-minutes>0</idle-timeout-minutes>
                  <track-statements/>
                  <!--
                  <security-domain>HsqlDbRealm</security-domain>
                  -->
                  <prepared-statement-cache-size>32</prepared-statement-cache-size>
                  <!-- metadata -->
                  <!-- type-mapping>Hypersonic SQL</type-mapping -->
                  <!-- /metadata -->
                  <!-- depends>jboss:service=Hypersonic,database=jbpmDB</depends -->
               </local-tx-datasource>

             

               <!-- mbean code="org.jboss.jdbc.HypersonicDatabase"
                 name="jboss:service=Hypersonic,database=jbpmDB">
                 <attribute name="Database">jbpmDB</attribute>
                 <attribute name="InProcessMode">true</attribute>
               </mbean -->

             

            </datasources>

             

            </code>

             

            Related with the problem, in the log "server.log" the next line was written:

             

            <code>

            INFO  [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'

            </code>

             

            Best regards,

             

            Ricardo

            • 3. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
              peterj

              Replacing HSQLDB with Oracle is not a simple as replacing the hsqldb-ds.xml file. There are a number of additional configuration changes that youy need to make. Do ytou really want to replace HSQLDB with Oracle, or do you just need to access an Oracle database?

               

              Also, your jbpm-ds.xml file is incorrect, it still contains hsqldb articats.

              1 of 1 people found this helpful
              • 4. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
                rdelarosa

                Peter:

                I just need to access an Oracle database.

                Do I need to make additional configurations to access an Oracle database ?

                 

                I improved the content of my jbpm-ds.xml. This content is:

                 

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

                 

                <datasources>

                    <local-tx-datasource>
                      <jndi-name>DefaultDS</jndi-name>
                      <connection-url>jdbc:oracle:thin:@127.0.0.1:1521:xe</connection-url>
                      <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
                      <user-name>BPM</user-name>
                      <password>BPM</password>
                      <min-pool-size>1</min-pool-size>
                      <max-pool-size>5</max-pool-size>
                      <idle-timeout-minutes>0</idle-timeout-minutes>
                      <track-statements/>
                      <prepared-statement-cache-size>32</prepared-statement-cache-size>
                   </local-tx-datasource>

                </datasources>

                ______

                Thank you in advance.

                 

                Ricardo

                • 5. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
                  peterj

                  Restore the original hsqldb-ds.xml. Look in the docs/examples/jca directory, there are several example *-ds.xml files there for many databases, including Oracle. Use that as a guideline. Also, you will have to change the jndi-name to something other than DefaultDS.

                   

                  There is a wiki page that tells how to do all of this but the stupid search engine for this forum can't find it. Finally found it by digging through the wiki:

                  http://community.jboss.org/wiki/SetUpAOracleDatasource

                  • 6. Re: Error: "DEPLOYMENTS MISSING DEPENDENCIES"
                    rdelarosa

                    Thank you Peter,

                     

                    Your response solves my problem.

                     

                    Best regards,

                     

                    Ricardo