[jboss-jira] [JBoss JIRA] (WFLY-11221) Agroal datasource cannot be used as DefaultDataSource without connector subsystem

Martin Simka (Jira) issues at jboss.org
Mon Oct 22 06:51:00 EDT 2018


Martin Simka created WFLY-11221:
-----------------------------------

             Summary: Agroal datasource cannot be used as DefaultDataSource without connector subsystem
                 Key: WFLY-11221
                 URL: https://issues.jboss.org/browse/WFLY-11221
             Project: WildFly
          Issue Type: Bug
          Components: Agroal, EE, JCA
    Affects Versions: 14.0.0.Final
            Reporter: Martin Simka
            Assignee: Stefano Maestri


If {{datasources}} subsystem is removed and {{Example}} datasource is created in {{datasources-agroal}} subsystem it is expected that Example datasource ({{java:jboss/datasources/ExampleDS}}) is bound to {{java:comp/DefaultDataSource}}, but it is not. 

{noformat}
12:33:17,605 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("deploy") failed - address: ([("deployment" => "testwebapplication.war")]) - failure description: {
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.naming.context.java.module.testwebapplication.testwebapplication.DefaultDataSource"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.testwebapplication.testwebapplication.env.\"org.jboss.qa.msimka.testwebapp.TestBean\".myDS is missing [jboss.naming.context.java.module.testwebapplication.testwebapplication.DefaultDataSource]"]
}
{noformat}

JNDI of datasource that should be bound to default datasource can be defined in [ee subsystem|http://wildscribe.github.io/WildFly/14.0/subsystem/ee/service/default-bindings/index.html]

Datasources subsystem is currently responsible for DefaultDatasource [binding|https://github.com/wildfly/wildfly/blob/master/connector/src/main/java/org/jboss/as/connector/deployers/datasource/DefaultDataSourceBindingProcessor.java]. 



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jboss-jira mailing list