wildfly-8.2.0.Final Mysql database configuration trauma

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

wildfly-8.2.0.Final Mysql database configuration trauma

hoboy
This post has NOT been accepted by the mailing list yet.
This post was updated on .
Sorry if this is not the right forum.
I am trying to configure wildfly-8.2.0.Final with Mysql database.
One would expect that should be strait forward matter.
I am getting the following errors I have really googled.

firstly my module.xml
?xml version="1.0" encoding="UTF-8"?>  
 
<module xmlns="urn:jboss:module:1.1" name="com.mysql.jdbc">     
    <resources>         
        <resource-root path="mysql-connector-java-5.1.34-bin.jar"/> 
   </resources> 
    <dependencies> 
       <module name="javax.api"/>
       <module name="javax.transaction.api"/>
        <module name="javax.servlet.api" optional="true"/>
    </dependencies> 
</module> 
--------------------------------------------------------------------------------------
12:33:34,937 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 27) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("jdbc-driver" => "mysql")
]) - failure description: "JBAS010441: Failed to load module for driver [com.mysql.jdbc]"
-----------------------------------------------------------------------------------------------------
12:47:07,473 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "TestDS")
]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => [
    "jboss.driver-demander.java:jboss/datasources/TestDS is missing [jboss.jdbc-driver.mysql]",
    "jboss.data-source.java:jboss/datasources/TestDS is missing [jboss.jdbc-driver.mysql]"
]}
12:47:07,476 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
    ("subsystem" => "datasources"),
    ("data-source" => "TestDS")
]) - failure description: {
    "JBAS014771: Services with missing/unavailable dependencies" => [
        "jboss.driver-demander.java:jboss/datasources/TestDS is missing [jboss.jdbc-driver.mysql]",
        "jboss.data-source.java:jboss/datasources/TestDS is missing [jboss.jdbc-driver.mysql]"
    ],
    "JBAS014879: One or more services were unable to start due to one or more indirect dependencies not being available." => {
        "Services that were unable to start:" => [
            "jboss.data-source.reference-factory.TestDS",
            "jboss.naming.context.java.jboss.datasources.TestDS"
        ],
        "Services that may be the cause:" => ["jboss.jdbc-driver.mysql"]
    }
}

-----------------------------------------------------------------------------------------------
I have also checked this one.
[standalone@localhost:9990 /] /subsystem=datasources/jdbc-driver=mysql:add(driver-name=mysql,driver-module-name=com.mysql,driver-class-name=com.mysql.jdbc.Driver)
{
    "outcome" => "failed",
    "failure-description" => "JBAS014803: Duplicate resource [
    (\"subsystem\" => \"datasources\"),
    (\"jdbc-driver\" => \"mysql\")
]",
    "rolled-back" => true
}