2 Replies Latest reply on May 20, 2016 12:06 AM by rhuichao

    Error while connecting modeshape sql repository to JBOSS8

    rishianand50

      Configuration for standalone/configuration/standalone-modeshape.xml

       

      <datasource

        jndi-name="java:/mydb" pool-name="my_pool"

        enabled="true" jta="true"

        use-java-context="true" use-ccm="true">

        <connection-url>

        jdbc:mysql://localhost:3306/mydb

        </connection-url>

        <driver>

        mysql

        </driver>

        <security>

        <user-name>

        root

        </user-name>

        <password>

       

        </password>

        </security>

        <statement>

        <prepared-statement-cache-size>

        100

        </prepared-statement-cache-size>

        <share-prepared-statements/>

        </statement>

      </datasource>


      and I am getting below error while I execute "sudo ./standalone.sh -c standalone-modeshape.xml" to run wildfly :


      15:50:18,995 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "modeshape-rest.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.modeshape-rest.modeshape-rest.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]}

      15:50:18,998 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "modeshape-webdav.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.modeshape-webdav.modeshape-webdav.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]}

      15:50:19,000 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "modeshape-cmis.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.modeshape-cmis.modeshape-cmis.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]}

      15:50:19,002 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "modeshape-explorer.war")]) - failure description: {"WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.modeshape-explorer.modeshape-explorer.DefaultDataSource is missing [jboss.naming.context.java.jboss.datasources.ExampleDS]"]}

        • 1. Re: Error while connecting modeshape sql repository to JBOSS8
          hchiorean

          what does your repository configuration look like ? The error message indicates that something is wrong with your server configuration file.

          • 2. Re: Error while connecting modeshape sql repository to JBOSS8
            rhuichao

            Hi, I came across the same errors, and I added the default ExampleDS configuration back, then the problem was solved.

             

                            <datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">

                                <connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>

                                <driver>h2</driver>

                                <security>

                                    <user-name>sa</user-name>

                                    <password>sa</password>

                                </security>

                            </datasource>

             

                            <drivers>

                                <driver name="h2" module="com.h2database.h2">

                                    <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>

                                </driver>

                                <driver name="mysql" module="com.mysql"/>

                            </drivers>