[jboss-as7-dev] datasource driver in standalone-full.xml

ArchangelAurora . archangel.aurora at gmail.com
Thu Jul 3 04:25:28 EDT 2014


Hi all, I'm using jboss-eap 6.2 as 7.4, when I start the server with
default standalone.xml config, it sees my MySQL driver deployd as a
module and I can connect to the datasource. But when I start it with
standalone-full.xml, it says:

ERROR [org.jboss.as.controller.management-operation] (ServerService
Thread Pool -- 31) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "mysql")
]) - failure description: "JBAS010441: Failed to load module for
driver [com.mysql]"


though datasource parts in my standalone and standalone-full.xml files
are exactly the same:

        <subsystem xmlns="urn:jboss:domain:datasources:1.1">
            <datasources>
                <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>
                <datasource jndi-name="java:jboss/datasources/yyDS"
pool-name="yyDS" enabled="true" use-java-context="true">

<connection-url>jdbc:mysql://localhost:3306/yy</connection-url>
                    <driver>mysql</driver>
                    <pool>
                        <min-pool-size>30</min-pool-size>
                        <max-pool-size>400</max-pool-size>
                        <prefill>true</prefill>
                    </pool>
                    <security>
                        <user-name>yy</user-name>
                        <password>yy</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>
            </datasources>
        </subsystem>

Secondly, when I start jboss from the console with standalone.bat, I
can login to management console but when I start it from JBoss
developer studio, it says "However you have not yet added any users to
be able to access the admin console.". What's the difference?


More information about the jboss-as7-dev mailing list