[jboss-as7-dev] problem creating datasources

Heiko Braun hbraun at redhat.com
Thu Apr 7 04:13:24 EDT 2011



Please see the following sequence of commands. It seems that the driver is created, also the second operation returns a "failed" status.

[localhost:9999 /] /profile=default/subsystem=datasources/jdbc-driver=hypersonic:add(driver="com.h2database.h2")
{
    "outcome" => "failed",
    "result" => {"server-groups" => {"main-server-group" => {
        "server-one" => {
            "host" => "local",
            "response" => {
                "outcome" => "failed",
                "failure-description" => "org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.\"org.h2.Driver\".1.2 is already registered"
            }
        },
        "server-two" => {
            "host" => "local",
            "response" => {
                "outcome" => "failed",
                "failure-description" => "org.jboss.msc.service.DuplicateServiceException: Service jboss.jdbc-driver.\"org.h2.Driver\".1.2 is already registered"
            }
        }
    }}},
    "failure-description" => "Operation was not applied successfully to any servers"
}


[localhost:9999 /] /profile=default/subsystem=datasources/jdbc-driver=hypersonic:add(driver="hypersonic-jdbc-driver")
{
    "outcome" => "failed",
    "result" => {"domain-failure-description" => [("java.lang.IllegalStateException" => "Resource at address [
    (\"profile\" => \"default\"),
    (\"subsystem\" => \"datasources\"),
    (\"jdbc-driver\" => \"hypersonic\")
] already exists")]}
}


[localhost:9999 /] /profile=default/subsystem=datasources:read-children-names(child-type=jdbc-driver)
{
    "outcome" => "success",
    "result" => [
        "com.h2database.h2",
        "hypersonic"
    ],
    "compensating-operation" => undefined
}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110407/22c4c499/attachment.html 


More information about the jboss-as7-dev mailing list