[jboss-as7-dev] problem creating datasources

Heiko Braun hbraun at redhat.com
Thu Apr 7 04:16:18 EDT 2011





[localhost:9999 /] /profile=default/subsystem=datasources/jdbc-driver=driver-name:add(driver="driver-parameter")     
{
    "outcome" => "failed",
    "result" => {"server-groups" => {"main-server-group" => {
        "server-one" => {
            "host" => "local",
            "response" => {
                "outcome" => "failed",
                "failure-description" => "Failed to load module for driver [driver-parameter]"
            }
        },
        "server-two" => {
            "host" => "local",
            "response" => {
                "outcome" => "failed",
                "failure-description" => "Failed to load module for driver [driver-parameter]"
            }
        }
    }}},
    "failure-description" => "Operation was not applied successfully to any servers"
}



On Apr 7, 2011, at 10:13 AM, Heiko Braun wrote:

> 
> 
> 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
> }
> 
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

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


More information about the jboss-as7-dev mailing list