[jboss-jira] [JBoss JIRA] (WFLY-6200) connection-url is required even when not used

Mickaël Vera (JIRA) issues at jboss.org
Wed Jul 6 12:05:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-6200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262263#comment-13262263 ] 

Mickaël Vera commented on WFLY-6200:
------------------------------------

I reproduce this problem on wildfly-10.0.0.Final with postgresql.

                <datasource jndi-name="java:jboss/datasources/crawlResultDS" pool-name="crawlResultPool" enabled="true" use-java-context="true">
                    <connection-url>jdbc:postgresql://localhost:5432/resultdb</connection-url>
                    <driver>postgresDD</driver>
                    <security>
                        <user-name>postgres</user-name>
                        <password>postgres</password>
                    </security>
                </datasource>
                <drivers>
                    <driver name="postgresDD" module="org.postgresql">
                        <xa-datasource-class>org.postgresql.xa.PGXADataSource</xa-datasource-class>
                        <datasource-class>org.postgresql.ds.PGSimpleDataSource</datasource-class>
                    </driver>
                </drivers>.

I can replace 
<connection-url>jdbc:postgresql://localhost:5432/resultdb</connection-url> 
with 
<connection-url>anything</connection-url>

Wildfly ignores it.

> connection-url is required even when not used
> ---------------------------------------------
>
>                 Key: WFLY-6200
>                 URL: https://issues.jboss.org/browse/WFLY-6200
>             Project: WildFly
>          Issue Type: Bug
>          Components: JCA
>    Affects Versions: 10.0.0.Final
>            Reporter: Rich DiCroce
>            Assignee: Lin Gao
>
> Per the comments on WFLY-6157 and WFLY-6198, connection-url is ignored in a datasource if datasource-class is defined. However, connection-url is currently mandatory. If it is not present, WildFly fails to start:
> {noformat}
> 09:51:18,216 ERROR [org.jboss.as.controller.management-operation] (ServerService Thread Pool -- 8) WFLYCTL0013: Operation ("add") failed - address: ([
>     ("subsystem" => "datasources"),
>     ("data-source" => "GamingPortalDS")
> ]) - failure description: "WFLYCTL0155: connection-url may not be null"
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)



More information about the jboss-jira mailing list