Guest User

Untitled

a guest
Oct 6th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 2) WFLYCTL0013: Operation ("add") failed - address: ([
  2. ("subsystem" => "datasources"),
  3. ("data-source" => "DB2DS1")
  4. ]) - failure description: {
  5. "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.db2"],
  6. "WFLYCTL0180: Services with missing/unavailable dependencies" => [
  7. "org.wildfly.data-source.DB2DS1 is missing [jboss.jdbc-driver.db2]",
  8. "jboss.driver-demander.java:/DB2DS1 is missing [jboss.jdbc-driver.db2]"
  9. ]
  10. }
  11.  
  12. <?xml version="1.0" encoding="UTF-8"?>
  13. <module xmlns="urn:jboss:module:1.5" name="com.ibm.db2">
  14. <properties>
  15. <property name="jboss.api" value="unsupported"/>
  16. </properties>
  17.  
  18. <resources>
  19. <resource-root path="db2jcc.jar"/>
  20. </resources>
  21. <dependencies>
  22. <module name="javax.api"/>
  23. <module name="javax.transaction.api"/>
  24. <module name="javax.servlet.api" optional="true"/>
  25. </dependencies>
  26.  
  27. <drivers>
  28. <driver name="h2" module="com.h2database.h2">
  29. <xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
  30. </driver>
  31. <driver name="db2" module="com.ibm.db2">
  32. <datasource-class>com.ibm.db2.jcc.DB2Driver</datasource-class>
  33. </driver>
  34. </drivers>
  35.  
  36. data-source add --name=DB2DS1--jndi-name=java:/DB2DS1--driver-name=db2 --connection-url=jdbc:db2://localhost:50000/sample
Add Comment
Please, Sign In to add comment