Can't resolve Services with missing/Available dependencies Wildfly 8.1 and MySQL 5.7 JBAS014613: Operation ("add") failed -


i'm trying configure data source in wildfly 8.1 mysql. i'm on local environment on windows , keep getting errors when start server. datasource registered, fails when test it.

enter image description here

i have mysql connector jar file in c:\wildfly\modules\system\layers\base\com\mysql\main

standalone.xml

<subsystem xmlns="urn:jboss:domain:datasources:2.0">             <datasources>                 <datasource jndi-name="java:jboss/datasources/mysqlds" pool-name="mysqlds" enabled="true" use-java-context="true">                     <connection-url>jdbc:mysql://localhost:3306/bookdb</connection-url>                     <driver>mysql</driver>                     <security>                         <user-name>root</user-name>                         <password>*******</password>                     </security>                     <timeout>                           <idle-timeout-minutes>0</idle-timeout-minutes>                           <query-timeout>600</query-timeout>                       </timeout>                                     </datasource>                 <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">                         <driver-class>com.mysql.jdbc.driver</driver-class>                         <xa-datasource-class>com.mysql.jdbc.jdbc2.optional.mysqlxadatasource</xa-datasource-class>                     </driver>                 </drivers>             </datasources>         </subsystem> 

module.xml c:\wildfly\modules\system\layers\base\com\mysql\main

<?xml version="1.0" encoding="utf-8"?> <module xmlns="urn:jboss:module:1.0" name="com.mysql">   <resources>      <resource-root path="mysql-connector-java-5.1.38-bin.jar"/>                 </resources>   <dependencies>      <module name="javax.api"/>      <module name="javax.transaction.api"/>      <module name="javax.servlet.api" optional="true"/>   </dependencies> </module> 

00:46:17,927 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 load module driver [com.mysql]" 00:46:17,912 info [org.jboss.as.connector.deployers.jdbc] (msc service thread 1-4) jbas010417: started driver service driver-name = h2 00:46:18,171 info [org.wildfly.extension.undertow] (msc service thread 1-2) jbas017525: started server default-server. 00:46:18,165 info [org.wildfly.extension.undertow] (serverservice thread pool -- 47) jbas017527: creating file handler path c:\wildfly/welcome-content 00:46:18,498 info [org.wildfly.extension.undertow] (msc service thread 1-1) jbas017531: host default-host starting 00:46:18,558 info [org.jboss.remoting] (msc service thread 1-6) jboss remoting version 4.0.3.final 00:46:18,694 info [org.jboss.as.server.deployment.scanner] (msc service thread 1-3) jbas015012: started filesystemdeploymentservice directory c:\wildfly\standalone\deployments 00:46:18,701 info [org.wildfly.extension.undertow] (msc service thread 1-1) jbas017519: undertow http listener default listening on /127.0.0.1:8080 00:46:18,863 info [org.jboss.as.connector.subsystems.datasources] (msc service thread 1-2) jbas010400: bound data source [java:jboss/datasources/exampleds] 00:46:19,112 info [org.jboss.ws.common.management] (msc service thread 1-7) jbws022052: starting jboss web services - stack cxf server 4.2.4.final 00:46:19,122 error [org.jboss.as.controller.management-operation] (controller boot thread) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("data-source" => "mysqlds") ]) - failure description: {"jbas014771: services missing/unavailable dependencies" => [ "jboss.data-source.java:jboss/datasources/mysqlds missing [jboss.jdbc-driver.mysql]", "jboss.driver-demander.java:jboss/datasources/mysqlds missing [jboss.jdbc-driver.mysql]" ]} 00:46:19,155 error [org.jboss.as.controller.management-operation] (controller boot thread) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("data-source" => "mysqlds") ]) - failure description: { "jbas014771: services missing/unavailable dependencies" => [ "jboss.data-source.java:jboss/datasources/mysqlds missing [jboss.jdbc-driver.mysql]", "jboss.driver-demander.java:jboss/datasources/mysqlds missing [jboss.jdbc-driver.mysql]" ], "jbas014879: 1 or more services unable start due 1 or more indirect dependencies not being available." => { "services unable start:" => [ "jboss.data-source.reference-factory.mysqlds", "jboss.naming.context.java.jboss.datasources.mysqlds" ], "services may cause:" => ["jboss.jdbc-driver.mysql"] } } 00:46:19,254 info [org.jboss.as.controller] (controller boot thread) jbas014774: service status report jbas014775: new missing/unsatisfied dependencies: service jboss.jdbc-driver.mysql (missing) dependents: [service jboss.driver-demander.java:jboss/datasources/mysqlds, service jboss.data-source.java:jboss/datasources/mysqlds]

00:46:19,616 info [org.jboss.as] (controller boot thread) jbas015961: http management interface listening on http://127.0.0.1:9990/management 00:46:19,628 info [org.jboss.as] (controller boot thread) jbas015951: admin console listening on http://127.0.0.1:9990 00:46:19,643 error [org.jboss.as] (controller boot thread) jbas015875: wildfly 8.1.0.final "kenny" started (with errors) in 4876ms - started 185 of 238 services (4 services failed or missing dependencies, 81 services lazy, passive or on-demand) 00:51:40,780 error [org.jboss.as.controller.management-operation] (management-handler-thread - 4) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "mysql-5-driver") ]) - failure description: "jbas010441: failed load module driver [mysql]" 00:51:47,961 error [org.jboss.as.controller.management-operation] (management-handler-thread - 6) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "mysql-5-driver") ]) - failure description: "jbas010441: failed load module driver [mysql]" 00:53:21,929 error [org.jboss.as.controller.management-operation] (management-handler-thread - 8) jbas014613: operation ("add") failed - address: ([ ("subsystem" => "datasources"), ("jdbc-driver" => "mysql-5-driver") ]) - failure description: "jbas010441: failed load module driver [com.mysql]" 01:01:49,324 error [org.jboss.as.controller.management-operation] (xnio-1 task-7) jbas014613: operation ("test-connection-in-pool") failed - address: ([ ("subsystem" => "datasources"), ("data-source" => "mysqlds") ]) - failure description: "jbas010440: failed invoke operation: jbas010442: failed match pool. check jndiname: java:jboss/datasources/mysqlds"

thanks!

uploading mysql connector .jar file via browser console deployment fixed issue.

wildfly console

my data source working in wildfly 10x, don't know if there issue version 8.1.

here's decent video on 3 ways add data source wildfly: https://www.youtube.com/watch?v=xshxmcrsf0a


Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -