Jboss Wildfly 8.1 CR datasource configuration problem.
boazahijah Mar 9, 2015 1:23 AMHi,
I came across a problem while trying to deploy and run the application in jboss wildfly 8.1.
Here are the things i did,
Im running jboss in domain mode.
Executed ./domain.sh and launched the wildfly console. Here my machine acts as both domain controller and host controller. There are no remote hosts.
Created two server groups.
Created a single server under each server group.
Deployed a ear in the first server group and enabled.
Deployed a different ear in the second server group and enabled.
Created two different datasource with the JNDI name java:/jdbc/DEPWBDS & java:/jdbc/DS1
Restarted the domain.
Launched the console and started the container.
when i tried to start the container one am getting the following error:
[Server:DeploymentServer] 10:46:49,751 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
[Server:DeploymentServer] ("subsystem" => "datasources"),
[Server:DeploymentServer] ("data-source" => "DEPDB")
[Server:DeploymentServer] ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.driver-demander.java:/jdbc/DEPWBDS is missing [jboss.jdbc-driver.db2jcc_jar]"]}
[Server:DeploymentServer] 10:46:49,753 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014613: Operation ("add") failed - address: ([
[Server:DeploymentServer] ("subsystem" => "datasources"),
[Server:DeploymentServer] ("data-source" => "APPDB")
[Server:DeploymentServer] ]) - failure description: {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.driver-demander.java:/jdbc/DS1 is missing [jboss.jdbc-driver.db2jcc_jar]"]}
and the status changed to container started.
When am trying to enable the datasource, the following error pops out.
Unexpected HTTP response: 500
Request
{
"name" => "APPDB",
"user-name" => "etwrms",
"password" => "etwrms",
"security-domain" => "",
"enabled" => false,
"driver-name" => "db2jcc.jar",
"pool-name" => "",
"transaction-isolation" => "",
"new-connection-sql" => "",
"connection-url" => "jdbc:db2://172.16.17.131:50001/mogaledb",
"driver-class" => "com.ibm.db2.jcc.DB2Driver",
"jta" => false,
"use-ccm" => false,
"datasource-class" => "",
"valid-connection-checker-class-name" => "",
"check-valid-connection-sql" => "",
"background-validation" => false,
"background-validation-millis" => -1L,
"validate-on-match" => false,
"stale-connection-checker-class-name" => "",
"exception-sorter-class-name" => "",
"prepared-statements-cache-size" => -1L,
"share-prepared-statements" => false,
"jndi-name" => "java:/jdbc/DS1",
"operation" => "enable",
"address" => [
("profile" => "full"),
("subsystem" => "datasources"),
("data-source" => "APPDB")
]
}
Response
Internal Server Error
{
"outcome" => "failed",
"result" => undefined,
"failure-description" => "JBAS010839: Operation failed or was rolled back on all servers.",
"rolled-back" => true,
"server-groups" => {
"ApplicationServerGroup" => {"host" => {"master" => {"ApplicationCompServer" => {"response" => {
"outcome" => "failed",
"failure-description" => {"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.APPDB",
"jboss.naming.context.java.jdbc.DS1"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.db2jcc_jar"]
}},
"rolled-back" => true
}}}}},
"DeploymentServerGroup" => {"host" => {"master" => {"DeploymentServer" => {"response" => {
"outcome" => "failed",
"failure-description" => {"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.APPDB",
"jboss.naming.context.java.jdbc.DS1"
],
"Services that may be the cause:" => ["jboss.jdbc-driver.db2jcc_jar"]
}},
"rolled-back" => true
}}}}},
"db2Driver" => {"host" => {"master" => {"db2Driver" => {"response" => {
"outcome" => "failed",
"rolled-back" => true
}}}}}
}
}
Please,help to get rid of this problem soon. Thanks.